Topics
24 Apr 2023, 01:24
 1
 1276
 2
Replies

mauriziolobello
25 Feb 2021, 18:51 ( Updated at: 21 Dec 2023, 09:22 )

RE: BarOpened

PanagiotisCharalampous said:

Hi Anton,

Is this the complete cBot code you are using? Because I cannot reproduce such a behavior

Seems to work fine for me

Best Regards,

Panagiotis 

Join us on Telegram

 

I've got this same behavior (multiple events when should happen once for each period) with actual version 3.8, TF is H1.


@mauriziolobello

mauriziolobello
23 Feb 2020, 17:13

RE:

PanagiotisCharalampous said:

Hi PureForm,

This is by design. Since in backtesting you can choose from where to start you can load as many bars as you want. If your indicator needs more bars, just start the backtesting from an earlier date so that the bars are loaded.

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi Panagiotis, yes we can start backtesting from an earlier date and the bars are loaded. Just for example, let's suppose I need an EMA 300 periods for a TF of 4H, so I have to go back 50 days (2 months more or less) of backtesting to have some meaningful data, and I have to wait 300 periods to have my code checked. Frankly, it's a huge waste of time... really, huge!

I understand that the process of loading so much data from your servers is an optimization problem, I'm writing this note waiting for the backtesting to get to the point (I have "View Mode" on), and just a month has passed by at full speed (100000x, sic...), debugging this way becomes really too long of a process (yes, I have some log, indeed). So I hope you find another solution, one that allows us to get the data we want, and at the same time won't slow down your servers to their knees...

Thanks for your attention

Best Regards

Maurizio

 


@mauriziolobello

mauriziolobello
02 Nov 2019, 20:16

Thx it worked:-)

 


@mauriziolobello