Comment on Managing your Script

Hanan commented on 26 Aug 2013, 09:46 AM

This is what we used to offer as a sample strategy:
RELSTR WITH MACD
Your Buy Alert Expression:

SET MACDSIG = MACDSignal(13,26, 9, SIMPLE)
SET MACDCOND = MACD(13, 26, 9,SIMPLE)
SET COND_1 = MACDCOND > MACDSIG AND REF(MACDCOND,1) < REF(MACDSIG,1)
SET COND_2 = RSI(CLOSE,14) >50
SET COND_3 = RSI(CLOSE,14) < 30
COND_1 AND (COND_2 OR COND_3)

Your Sell Alert Expression:

SET MACDSIG = MACDSignal(13,26, 9, SIMPLE)§SET MACDCOND = MACD(13, 26, 9,SIMPLE)
SET COND_1 = MACDCOND < MACDSIG AND REF(MACDCOND,1) > REF(MACDSIG,1)
SET COND_2 = RSI(CLOSE,14) < 50
SET COND_3 = RSI(CLOSE,14) > 70
COND_1 AND (COND_2 OR COND_3)

Your Buy Exit Alert Expression:

SET COND_1 = CLOSE < REF(CLOSE,1) AND REF(CLOSE,1) < REF(CLOSE,3) AND REF(CLOSE,3) < REF(CLOSE,5)
SET COND_2 =LOW < REF(Min(CLOSE,7),1) and Close < Open
COND_1 OR COND_2

Your Sell Exit Alert Expression:
SET COND_1 = CLOSE > REF(CLOSE,1) AND REF(CLOSE,1) > REF(CLOSE,3) AND REF(CLOSE,3) > REF(CLOSE,5)
SET COND_2 = HIGH > REF(Max(CLOSE,7),1)
COND_1 OR COND_2

About losing strategy data…

View the full comment thread »