I need to react and detect only and only the last bar on a chart. Problem is when I load my chart, the condition is detected and a process is execute
Code: Select all
If barstatus[1]= 2 and LastBarOnChart then begin // this is the begining of a new bar
Print (lastbaronchart);
BarCompleted = "BC";
The fact that lastbaronchart is detected while the chart is initialized cause some data to be sent to Excel. This process is very slow and create an error
Hope I'm clear enough
Martin