Comment on Code your Technical Analysis strategy

sangi commented on 06 May 2013, 05:22 AM

Hi,

This is my strategy for reversal. I have coded and it works in odin , but not in algoz. Can u tell me why it is not working in algoz and pl rectify the mistake.

Buy:abv the high of the positive reversal(PR) candle.SL is the low of the PR. closing the 50% buy posn at 1:1 and rest at 1.618 fibo extn(diff between high and low of th PR * 1.618 added to the high of the PR.
Sell: blow the low of the negative reversal candle. NR is just opposite of PR definition.

Definition of positive rev can:

Low of the current candle should be more than the low of the previous candle.
close of the current candle should be more than previous candles close and open of the current candle.
high of the current candle should be less than the high of the previous cndl.

RSI of the current candle should be more than 30 and RSI of the previous candle should be less than 30.

Code:
SET A = HIGH
SET B = REF(HIGH,1)
SET C = CLOSE
SET D = OPEN
SET E =REF(CLOSE,1)
SET F = RSI(CLOSE,14)
SET G = REF(F,1)
SET H = LOW
SET I = REF (LOW,1)
A > B AND C < D AND C < E AND H > I AND E > 70 AND G < 70
Please help me in this regard. If you find that this is not coded properly, pls give me the correct code.
Thanking you in advance.

View the full comment thread »