Category Trend  Published on 14/09/2012

SMA 252

Description

Opens a Long position when sma crosses below the trend bars and a short position if it crosses above.

One position open at a time. 

Works best with Timeframes H1 and above.

Good Luck!


u

DA
daemon

Joined on 30.08.2012

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Sma252.algo
  • Rating: 0
  • Installs: 5240
  • Modified: 13/10/2021 09:55
Comments
Log in to add a comment.
OM
Omega · 3 years ago

Hi, is it possible to change the SMA to another type of moving average?

DA
davidp13 · 10 years ago

Hi. how does one go about to add a TP and SL to this?

PH
phamvanthanh · 12 years ago
Hi, please help me with these codes if (_position == null || _position.TradeType == TradeType.Sell) { Trade.Close(_position) } these codes close short position of any position I intend to close short or long axactly but I am not sure thanks