Latest Forum Posts
Posts
PanagiotisCharalampous 22 Jun 2020, 16:32
cTrader Desktop
Different backtesting results with 1m bars from server (open prices) when using OnTick() and OnBar()
Hi Timo, If you are backtesting on the hourly timeframe then of course it will. OnBar() is triggered on every hour and OnTick() on every minute....PanagiotisCharalampous 22 Jun 2020, 16:09
cTrader Desktop
Different backtesting results with 1m bars from server (open prices) when using OnTick() and OnBar()
Hi Timo, Which timeframe do you use for backtesting? Can you share your code so that we can reproduce what you see? Best Regards, Panagiotis&...timo.kolthoff 22 Jun 2020, 16:05
cTrader Desktop
Different backtesting results with 1m bars from server (open prices) when using OnTick() and OnBar()
So when running a piece of code, I speed up the testing by using 1m bars from server. When using OnTick() for this test I get a result which...PanagiotisCharalampous 22 Jun 2020, 14:03
whis.gg 23 Jun 2020, 00:33
cTrader Algo
Daily Starting Account.Balance
Hi, try this: History.Any() ? History.Last(x => x.ClosingTime.Date < Time.Date).Balance : Account.Balance