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: 7722
Comments
Log in to add a comment.
YO
yomtlv · 5 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 · 8 months 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?