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



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


Discussion in EasyLanguage Programming

Updated by tarantino
    1. trending_up 3,612 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

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

(login for full post details)
  #1 (permalink)
Poland
 
 
Posts: 2 since Sep 2010
Thanks: 0 given, 0 received

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

Can you help answer these questions
from other members on futures io?
Horizontal Line Indicator
Platforms and Indicators
PASPro won't show on a chart for certain combinations of ticks per bar and currencies
NinjaTrader
Need a near crosses scan help for TOS
ThinkOrSwim
How to place NT8 indicator output into a grid, under each bar?
NinjaTrader
EQIX - Digital REITs - any experiences?
Stocks and ETFs
 
 
(login for full post details)
  #3 (permalink)
Willowbrook, IL
 
 
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
 
(login for full post details)
  #4 (permalink)
Poland
 
 
Posts: 2 since Sep 2010
Thanks: 0 given, 0 received

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

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Willowbrook, IL
 
 
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


futures io Trading Community Platforms and Indicators EasyLanguage Programming > how to get the previous value of indicator like "prev" in Metastock?


October 1, 2010


Upcoming Webinars and Events
     



Copyright © 2020 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