Sample trend cBot

Created at 06 Jul 2014, 05:48
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
10

1023881

Joined 06.07.2014

Sample trend cBot
06 Jul 2014, 05:48


I'm new to all of this coding cAlgo Algorithms. I'm try to experiment the Sample trend cBot with a couple of modifications into it. Which they are TP, ITS and SL values. The parameters are set as follow: TP = 70, ITS = 15, SL = 30.  Everything seems fine, however, every time I run backtesting the profit and stop loss values are all over the place. Can someone help to figure this out. Also, I like to know how to code exactly when to trigger the trade when there is a crossover and on the reverse side how to stop the trade when crosses the opposite direction. Say for example, when MA  4 crosses above MA 21 buy and when MA 21 crosses below 4 stop. Any help please.

 

 

    


@1023881