two data series, two time templates
Posted: 21 Jan 2014
I'm having a problem here regarding calling data from data2 and I'd like to know if is a code issue or a MC issue and how multiple session templates are managed.
Like I said, I have two data series in which one plots the RTH session and the other the ETH session.
The idea here is to plot on the RTH session the high and low of the ETH.
Historically speaking, the code seems to do what is meant do to but for some reason, it does not plot the last ETH session.
Any help?
What am I'm missing?
Like I said, I have two data series in which one plots the RTH session and the other the ETH session.
The idea here is to plot on the RTH session the high and low of the ETH.
Historically speaking, the code seems to do what is meant do to but for some reason, it does not plot the last ETH session.
Any help?
What am I'm missing?
Code: Select all
variables:
sessHi (0, data2),
sessLo (0, data2),
CurrentSess (0, data2);
CurrentSess = CurrentSession(0) of data2;
if CurrentSess <> CurrentSess[1] then begin
sessHi = -999999;
sessLo = +999999;
end;
if High of data2 > SessHi then
SessHi = High of data2;
if Low of data2 < SessLo then
SessLo = Low of data2;
plot1(SessHi,"Session High");
plot2(SessLo,"Session Low");