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
Warning! Running cBots downloaded from this section may lead to financial losses. Use them at your own risk.
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
DA
Hi. how does one go about to add a TP and SL to this?
PH
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
Hi, is it possible to change the SMA to another type of moving average?