Hi all,
I wrote a script that uses the last 20 days DAILY highs & lows on an intraday chart. I retrieve them as
(for i=0 to 19 loop) DH[i]=high(-i,getSymbol()+",D");
However when the new day begins I have to update the DH array so I run the same function at the first tick of the new day i.e.
if (TimeofDay>1030) then....(for i=0 to 19 loop)... DH[i]=high(-i,getSymbol()+",D");
But I can not retrieve the new days high & low if I don't reload the script manually. Although the new days high & low is registered I keep getting yesterday's high and low in DH[0] and DL[0].
Can anyone tell what must I do?
thank you
I wrote a script that uses the last 20 days DAILY highs & lows on an intraday chart. I retrieve them as
(for i=0 to 19 loop) DH[i]=high(-i,getSymbol()+",D");
However when the new day begins I have to update the DH array so I run the same function at the first tick of the new day i.e.
if (TimeofDay>1030) then....(for i=0 to 19 loop)... DH[i]=high(-i,getSymbol()+",D");
But I can not retrieve the new days high & low if I don't reload the script manually. Although the new days high & low is registered I keep getting yesterday's high and low in DH[0] and DL[0].
Can anyone tell what must I do?
thank you
Comment