Comment on Code your Technical Analysis strategy

Nithin Kamath commented on 30 Apr 2013, 01:32 PM

Sorry for the delay Atul,

Here is the code below and calculated on 14 candles. You can change it to any you want.

Buy expression:

SET R= RSI(Close,14)

SET N=R – (MINOF(MIN(R,13), REF(R,14)))

SET D= (MAXOF(MAX(R,13), REF(R,14))) – (MINOF(MIN(R,13), REF(R,14)))

SET STOCHRSI= N/D

WPR(14)>-50 AND STOCHRSI>0.50

SELL EXPRESSION:

SET R= RSI(Close,14)

SET N=R – (MINOF(MIN(R,13), REF(R,14)))

SET D= (MAXOF(MAX(R,13), REF(R,14))) – (MINOF(MIN(R,13), REF(R,14)))

SET STOCHRSI= N/D

WPR(14)<-50 AND STOCHRSI<0.50

View the full comment thread »