My variable "bo" shows correct value at 9:17 but after that it shows "0", I want to retain the value of the variable for the day after it is set. Also, I don't want to use loops, is there a way to acheive it?
bo=0;
time = TimeNum()/100==0917;
if(time[BarCount-1])
{
SetForeign("BANKNIFTY");
bo=O;
RestorePriceArrays();
}