Topics

Forum Topics not found

Replies

gabriel.rabhi
28 Feb 2025, 10:43 ( Updated at: 10 Mar 2025, 08:48 )

Do simulation in Ticks !


@gabriel.rabhi

gabriel.rabhi
28 Feb 2025, 10:33 ( Updated at: 10 Mar 2025, 08:48 )

TICK !

Hi,

Your problem is this one :

  • In Backtesting, Tick() method is called every minute, on close bar because you do not choose “Tick data from Server”.
  • In Real, the Tick() method is called many times per seconds, each time the price is changing.

 

Your bot is working using minute call frequency Tick() !

You have fall in the trap of the “read the futur” of bar based backtesting. The real thing is : you win because the non Tick based backtesting is wrong !

ADVICE : never use limit orders, TakeProfit and StopLoss if you develop a bot without Ticks !!!


@gabriel.rabhi