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[1]<0)=n and adx[14]>adxmin
cs = indicator crosses under 0 and summation[n](indicator[1]>0)=n and adx[14]>adxmin
if cs then
sellshort 2 contract at market
endif
if cl then
buy 2 contract at market
endif
set target pprofit profitti
set stop ploss perdite
You must be logged in to post a comment.
DId some tests using MACD validations on higher timeframes using MTF functionality and unfortunately couldn't get improved results without tweaking other parameters (i.e. SL and TP) as well. Leading me to believe that either higher timeframe validations on MACD are not beneficial or the TP and SL parameters are too optimized. Either way, I like the simplicity of the strategy.
Hi, no I didnt try with ADXr but you are more than welcome to post some results of your ideas based on my strategies. Thank you
Hi do you know how have and entry after the second cross? There is crosses below 0 and crosse about 0 I am looking to have an entry when we have a cross below and after about