var Flag=0; function main(){ if(isLastBarOnChart() && Flag==0){ var Date_5 = new Date(getValue("rawtime", -5, getSymbol()+", D")*1000);//the "-5" is the daily bar's index debugPrintln("4: Date_5: "+Date_5); Flag=1; } }
Comment