Description
This is a sample trend robot
This code is a cAlgo API sample.
The "Sample Trend Robot" will buy when fast period moving average crosses the slow period moving average and sell when
the fast period moving average crosses the slow period moving average. The orders are closed when an opposite signal
is generated. There can only by one Buy or Sell order at any time.
/
alexk
Joined on 30.09.2011
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Trend Robot.algo
- Rating: 2.5
- Installs: 8001
- Modified: 13/10/2021 09:54
Comments
Why cannot is the code not visible?
Interesting bot
This is a good effort, halfway there, i agree with Kittu, then add a stop loss as protection and default, this will protect losses. Can it be done then it will be a good usable robot
Hi,
This algo opens positions as soon as the "fast MA" crosses the "slow MA". This creates some unnecessary trades. whats better is once the moving average cross confirmed then to open the position on the next candle open price. Is there a way to modify like that to reduce some false trades?
Can you add a switch to this bot, trade only buy or only sell! then you will get a very good bot!