Category Trend  Published on 18/12/2013

Trend Robot

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.


/

AL
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
Log in to add a comment.
YO
yomtlv · 10 months ago

Can you add a switch to this bot, trade only buy or only sell! then you will get a very good bot!

DE
dejonge4 · 1 year ago

Why cannot is the code not visible?

FE
fernatom08 · 2 years ago

Interesting bot

GE
germoc · 4 years ago

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

PR
Prasanna · 4 years ago

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?