Replies

deeganpope
16 Feb 2023, 08:21

RE: Same issue of backtest and optimization not starting on brand new win11 build

Spotware said:

Dear trader,

Unfortunately the troubleshooting did not help us reproducing this behavior. Does this still happen in 4.5.1? If yes, can you send us the log?

Best regards,

cTrader Team

 

I just built a brand new machine tonight.  Loaded windows 11 and then ctrader.  I imported by bots and indicators.   They build, but they do nothing.

If you press the play button it acts like its going to run the backtest but does not.  Optimization loads threads but never does anything either.

 

System is Ryzen 9 7900X w 32GB DDR5, 2TB NVME, windows 11 pro.


@deeganpope

deeganpope
05 Feb 2023, 07:48

RE:

firemyst said:

You're missing a screen capture showing us an example of where you think your bot has gotten in late.

That would be helpful

Here's another example of the trade initiating 1-2 bars after the trigger conditions are met.

 


@deeganpope

deeganpope
05 Feb 2023, 07:44 ( Updated at: 21 Dec 2023, 09:23 )


@deeganpope

deeganpope
24 Jan 2023, 17:39 ( Updated at: 21 Dec 2023, 09:23 )

RE: cTrader ClosePrices.last

I am using closeprices.last(0) and still have it trading 2 bars late.  Did you ever figure this out?

 

 

ctid1820873 said:

Hi, I have searched all over and can´t find what I need.

If I use OnBar and Bars.ClosePrices.Last(1) or Bars.LastBar.Close it seems the execution is "On Bar Close" and not "On Bar Open" so as you see on my image the trigger here is the candle close under the line so next candle should execute but it is always the next after that which is too late.

If I use OnTick it triggers as soon as the low goes under the line but it might not close under anyway so that is too soon.

 

How would I go about triggering on the next open after closing under the line?

 

I

Thanks

 


@deeganpope