Replies

gyoy
28 Apr 2024, 05:09

RE: RE: Backtest (visual vs non-visual mode): different results

alexandre.abconcept said: 

ncel01 said: 

Dear cTrader Team,

There is no “my case”.

As you might have noticed, the code sample provided above was only intended to report an issue.

My question was obviously generic.

Thanks for clarifying the community on this by providing an effective answer. It would be also of value to see documentation on this available.

 

 

Hello is there news on this ? I have the same issue.. When I backtest in Visual mode it is not the same results than in not visual..

Hi, any news? I have the same issue. I don't know how reliable my code is. The visual mode shows a fairly large negative value, while the silent mode shows positive value of the same magnitude.


@gyoy

gyoy
07 Apr 2024, 23:24 ( Updated at: 08 Apr 2024, 05:23 )

RE: No result found by backtesting my code

gbg561 said: 

Hi

I had a similar problem during testing on US500 and in the log for back testing it indicated “Bad Volume” Error. So I increased the volume to 1, that got it working then it was just a case of calculating the correct amount of lots required.

Hope that helps.

Gary

Hi Gary,

Thanks, yes I've figured it out that the volume needs to be adjusted properly. I have made another code which does the same thing but a bit easier to understand and works fine.

GyO


@gyoy