how to recognize that it is the last bar of the entire chart in historical backtesting (real time is obvious to me) on a chart in strategy code ? For example if it is the last bar I would like to print some statistics, but only if it is the last bar so that the computer would not eat up resources without purpose making the running even slower.
best regards
Kittyan
Comment