Comment on Code your Technical Analysis strategy

Nithin Kamath commented on 26 Apr 2013, 05:05 PM

Your description for the quote is not very clear, so ensure you backtest and see if it is performing the way you want to :

Buy Expression:
CLOSE > REF(HIGH,1) AND ADX(14) > 25 AND REF(ADX(14),1) < 25 AND MACD(26,12,9,EXPONENTIAL) > 0 AND CLOSE < REF(CLOSE,-1) AND REF(CLOSE,-1) < REF(CLOSE,-2) AND REF(CLOSE,-2) < REF(CLOSE,-3)

Buy exit: 0

Sell Expression:
CLOSE < REF(LOW,1) AND ADX(14) > 25 AND REF(ADX(14),1) < 25 AND MACD(26,12,9,EXPONENTIAL) < 0 AND CLOSE > REF(CLOSE,-1) AND REF(CLOSE,-1) > REF(CLOSE,-2) AND REF(CLOSE,-2) > REF(CLOSE,-3)

Sell exit: 0

View the full comment thread »