Invalid price 95.0830000 for Order Close

 

This is an error I'm getting in the jornal for a USD/JPY backtest, can I use Normalize Double on the Bid or Ask to get around this error and have a normal quote (95.08). Any other suggestions?

Thanks,

FXPC

 
FXpipclash wrote >>

can I use Normalize Double on the Bid or Ask to get around this error and have a normal quote (95.08)

Yep, that's the way to fix it.

 

Looks to me that you are using data in the history centre which you've obtained from a 3/5 decimal place broker and you're attempting a test with parameters in strategy tester which have got set to the latest broker you've connected that instance of the platform to.

If you don't want to amend your code, you could try connecting that platform instance to a 3/5 decimal place broker account and then running your test again.


Let me know how this works out.


CB

Reason: