backtesting help
Created at 27 Jul 2020, 21:41
LU
backtesting help
27 Jul 2020, 21:41
Hi I have a question.
why if in my bot I put the function System.Threading.Thread.Sleep (); does backtesting wait for real and non-virtual time?
or why if I put a similar logic
while ((Mv.Result.LastValue - Mv.Result.Last(30)) < Symbol.PipSize * 60)
{
Print("waiting for triger");
}
ExecuteOrder(position.Quantity * 2, TradeType.Buy);
the backtesting dosn't work?
should i change settings?
thanks
PanagiotisCharalampous
31 Jul 2020, 08:07
Hi Luca,
Sleep() method is a .Net method, it suspends the execution of the thread for the specified timespan. It has nothing to do with backtesting.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous