Something strange is happening and I can't understand where the problem is.
The same indicator, applied on the same symbol, one on a chart, the other on the scanner, and the end result is a different open price
Another thing that I've noticed is the open price that the scanner have plot a complete different price
Below is the study and the images.
Regards,
Fernando
Code: Select all
variables:
stDate (false),
sessHi (0),
sessLo (0),
sessOp (0),
dayOpen (false);
if Date <> Date[1] then begin
stDate = true;
sessHi = -999999;
sessLo = +999999;
dayOpen = false;
end;
if stDate then begin
if High > SessHi then
SessHi = High;
if Low < SessLo then
SessLo = Low;
if dayOpen = false then begin
dayOpen = true;
sessOp = Open;
end;
end;
if SessHi<> 0 then
plot1(SessHi,"Session High");
if SessLo<> 0 then
plot2(SessLo,"Session Low");
if sessOp <> 0 then
plot3(sessOp,"Session Open");