Comment on Managing your Script

Nithin Kamath commented on 16 Sep 2013, 07:09 AM

Balu,

There are many queries on strategies answered on this blog.

Buy : Stochastic % K period 14, % k slowing 3 and % D period 3 with % K Crossing % D above 30
SOPK (14, 3, 3, EXPONENTIAL) > SOPD (14, 3, 3, EXPONENTIAL) AND SOPD (14, 3, 3, EXPONENTIAL) > 30

Sell: Stochastic % K period 14, % k slowing 3 and % D period 3 with % D Crossing % K below 80
SOPK (14, 3, 3, EXPONENTIAL) < SOPD (14, 3, 3, EXPONENTIAL) AND SOPD (14, 3, 3, EXPONENTIAL) < 80

Please give me the algoz code for below strategy
Buy: RSI crossing 30 from below
RSI (CLOSE, 14) > 30 AND REF (RSI (CLOSE, 14), 1) < 30
Sell: RSI Crossing 70 from above
RSI (CLOSE, 14) < 70 AND REF (RSI (CLOSE, 14), 1) > 70
Please give me the algoz code for MACD Histogram with signal line (12,26,9).
SET HIST = MACD (26, 12, 9, EXPONENTIAL) – MACDSIGNAL (26, 12, 9, EXPONENTIAL)
HIST > 0

View the full comment thread »