within a custom backtest I iterate through all bars:
SetCustomBacktestProc("");
if( Status("action") == actionPortfolio ) {
bo = GetBacktesterObject();
bo.PreProcess();
for (i = 0; i < BarCount; i++) {
for (sig = bo.GetFirstSignal(i); sig; sig = bo.GetNextSignal(i)) {
if (sig.IsEntry()) {
currentEntryDateTime = sig.EntryDateTime;
How can I get the DateTime of the bar?
sig.EntryDateTime causes the error:
Error 20.
COM method/function EntryDateTime does not exist