how to get the previous value of indicator like "prev" in Metastock? - EasyLanguage Programming | futures io social day trading
futures io futures trading


how to get the previous value of indicator like "prev" in Metastock?
Updated: Views / Replies:2,934 / 4
Created: by duzers Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

how to get the previous value of indicator like "prev" in Metastock?

  #1 (permalink)
Just starting out...
Poland
 
Futures Experience: Beginner
Platform: MultiCharts
 
Posts: 2 since Sep 2010
Thanks: 0 given, 0 received

how to get the previous value of indicator like "prev" in Metastock?

Metastock:

d:=If(C>Ref(H,-1), Min(L,Ref(L,-3)) , If(C<Ref(L,-1), Max((H,Ref(H,-3)) ,PREV));


,and what I do in Multicharts:
 
Code
vars: war1(0);
vars: war2(0);

war1=minlist(L,L[3]);
war2=maxlist(H,H[3]);

if C>H[1] then 
    begin
    Plot1( war1, "A" ) ;
    end
else begin
if C<L[1] then
    begin
    plot1(war2,"A");
    end
else (previous?)
THX

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Trading Apprentice
Willowbrook, IL
 
Futures Experience: None
Platform: Windows 7, Android
Favorite Futures: Mouse and Keyboard
 
tarantino's Avatar
 
Posts: 32 since Sep 2010
Thanks: 71 given, 39 received


Something like this:

 
Code
Value.Set(CurrentBar == 0 ? Median[0] : Close[0] <  Low[1] ? MAX(High, 3)[0] : Close[0] > High[1] ? MIN(Low, 3)[0] : Value[1]);

Reply With Quote
 
  #4 (permalink)
Just starting out...
Poland
 
Futures Experience: Beginner
Platform: MultiCharts
 
Posts: 2 since Sep 2010
Thanks: 0 given, 0 received

But, it's not syntax of Multicharts, right?

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Willowbrook, IL
 
Futures Experience: None
Platform: Windows 7, Android
Favorite Futures: Mouse and Keyboard
 
tarantino's Avatar
 
Posts: 32 since Sep 2010
Thanks: 71 given, 39 received


duzers View Post
But, it's not syntax of Multicharts, right?

Oh, sorry, haven't noticed this is about MultiCharts. - Thought it's Ninja question

Reply With Quote

Reply



futures io > > > > > how to get the previous value of indicator like "prev" in Metastock?




Upcoming Webinars and Events (4:30PM ET unless noted)

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recreate "Precision Divergence Finder Indicator"? tdaman Traders Hideout 28 December 16th, 2014 06:10 PM
can anybody code/find the indicator "VOLUMe PRESSURE" from i mystiq NinjaTrader 9 February 19th, 2014 11:32 AM
The VMA Zones indicator. The "Kill Zone"?? Tiberius Traders Hideout 6 October 5th, 2013 08:56 PM
dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" jmejedi NinjaTrader Programming 4 May 23rd, 2011 09:33 AM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 05:01 PM


All times are GMT -4. The time now is 03:51 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-09-22 in 0.09 seconds with 14 queries on phoenix