I am testing a strategy. Typically I include the following code piece in my strategy and set 1 for backtests, and 0 for live trading so I don't get historical order fills.
if (DoBacktest == 1)
{
// do something
}
else
{
if (Historical)
return;
}
Thank you
whotookmynickname

Comment