Intraorder bar indicator evaluation in Easylanguage

Questions about MultiCharts and user contributed studies.
Erik Pepping
Posts: 66
Joined: 25 Aug 2007
Been thanked: 4 times

Intraorder bar indicator evaluation in Easylanguage

Postby Erik Pepping » 28 Jul 2009

When i have intrabartrading=True on a 15 mini bar chart and I have:
Variables: Trend;
Trend=Xaverage(Close,3);

is Trend[1] then the previous trend on the 15 minutes or is it the trend from the last 3 ticks ?

I suspect it is the trend from the last 3 ticks. If so, how can i get it from the last bar interval ?

User avatar
TJ
Posts: 6551
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 965 times
Been thanked: 1892 times

Postby TJ » 28 Jul 2009

intrabarordergeneration is for orders only.


[1] is a reference for prev bar.

you can varify this by using a print statement:

e.g.
print( text(computerdatetime), text( trend[1] ) );


this will post the value of trend[1] to the output log, along with your computer's time stamp.


Return to “MultiCharts”