help with TrendCatcher code

 

Hi guys,


I'm new to coding, I found this code on internet and would like to re-optimise it/forward test it, but before doing so I notice that it creates various errors in strategy tester. Thus I don't want to go through the optimisation process and prepare it for live, if I can't rely on the results (I need there to be no errors).

I added RefreshRates() functions before order execution, but this didn't solve anything (maybe i need to add them elsewhere as well). Need help. As i'm total newbie to mql please be as explanatory as possible :)


Typical errors:

2009.11.11 09:19:36 2009.09.09 06:00 NHF Live TrendCapture (Modified) v103 EURUSD,M30: OrderSend error 4107
2009.11.11 09:19:36 2009.09.09 06:00 NHF Live TrendCapture (Modified) v103 EURUSD,M30: invalid price 1.44997000 for OrderSend function
2009.11.11 09:19:36 2009.09.09 05:30 NHF Live TrendCapture (Modified) v103 EURUSD,M30: invalid price parameter for trade function
2009.11.11 09:19:36 2009.09.09 05:30 NHF Live TrendCapture (Modified) v103 EURUSD,M30: OrderSend error 4107
2009.11.11 09:19:36 2009.09.09 05:30 NHF Live TrendCapture (Modified) v103 EURUSD,M30: invalid price 1.44907000 for OrderSend function


The system is attached :)


Thank you!

nick

 
Hello gurus of the forum, any help with the above problem? :)
 

slippage is to low

increase slippage

 
Thank you meikel! :)