|
Taiwan
Experience: Intermediate
Platform: MC
Posts: 77 since Jun 2010
Thanks Given: 8
Thanks Received: 17
|
I am trying to print the PM session's HIGH and LOW and in turn find out the volatility of the PM session.
but the HIGH i got includes the HIGH in the AM session. Is there a shortcut keyword to get the PM session HIGH/LOW ?
If not, how could I modify my codes to get the PM HIGH/LOW in order to print the volatility for the PM session ?
many thanks...
vars:
myHigh (0),
myLow (0),
myPMvol (0);
if time > 1430 AND time <1630 then begin
if H > myHigh then myHigh = H;
if L < myLow then myLow = L;
myPMVol = myHigh-myLow;
end;
if time = 1615 then begin
Print("date: ", date, " time: ", time, " myHigh ", myHigh, " myLow ", myLow, " myPMvol ", myPMvol);
end;
|