A simple trend following strategy built with MACD default settings and ADX.
Orders are launched when the MACD cross the 0 level line and with ADX minimal value condition.
Orders have stoploss and takeprofit.
defparam cumulateorders = false
indicator = macd[12,26,9]
n = 1
adxmin = 5
profitti = 70
perdite = 60
cl = indicator crosses over 0 and summation[n](indicator<0)=n and adx>adxmin
cs = indicator crosses under 0 and summation[n](indicator>0)=n and adx>adxmin
if cs then
sellshort 2 contract at market
if cl then
buy 2 contract at market
set target pprofit profitti
set stop ploss perdite
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :