//RSI(14) ON MONTHLY CHARTS MUST Cross 3 YRS High AND ALSO if CROSSES 69.10 THEN SUPER BULLISH +
R = RSI(14);
Cond_01a = R > Ref(HHV(R,36),-1); // Current Monthly RSI is > Previous 36 Months
Cond_01b = R > 69.01;
Cond_01 = Cond_01a OR Cond_01b;
// [MACD(12,26,9) OR MACD(5,8,3) ] EITHER OF 2 MACD ABOVE MUST BE IN BUY MODE
Cond_02a = Signal(12,26,9) > MACD(12,26); // Buy 01 on Monthly MACD
Cond_02b = Signal( 5, 8,3) > MACD( 5, 8); // Buy 02 on Monthly MACD
Cond_02 = Cond_02a OR Cond_02b;
UP = Cond_01 AND Cond_02;
Filter = UP;
AddColumn(R, "RSI");
AddColumn(Signal(12,26,9),"SGNL_01");
AddColumn(MACD(12,26),"MACD_01");
AddColumn(Signal(5,8,3),"SGNL_02");
AddColumn(MACD(5,8),"MACD_02");
//RSI(14) ON MONTHLY CHARTS MUST Cross 3 YRS High AND ALSO if CROSSES 69.10 THEN SUPER BULLISH +
R = RSI(14);
Cond_01a = R > Ref(HHV(R,36),-1); // Current Monthly RSI is > Previous 36 Months
Cond_01b = R > 69.01;
Cond_01 = Cond_01a OR Cond_01b;
// [MACD(12,26,9) OR MACD(5,8,3) ] EITHER OF 2 MACD ABOVE MUST BE IN BUY MODE
Cond_02a = Signal(12,26,9) > MACD(12,26); // Buy 01 on Monthly MACD
Cond_02b = Signal( 5, 8,3) > MACD( 5, 8); // Buy 02 on Monthly MACD
Cond_02 = Cond_02a OR Cond_02b;
UP = Cond_01 AND Cond_02;
Filter = UP;
AddColumn(R, "RSI");
AddColumn(Signal(12,26,9),"SGNL_01");
AddColumn(MACD(12,26),"MACD_01");
AddColumn(Signal(5,8,3),"SGNL_02");
AddColumn(MACD(5,8),"MACD_02");
R = RSI(14); R36 = HHV(R,36);
M1 = MACD(12,26); M2 = MACD(5,8);
S1 = Signal(12,26,9); S2 = Signal(5,8,3);
Filter = R > Ref(R36,-1) AND (S1 > M1 OR S2 > M2);
AddColumn(R,"MONTHLY_RSI",1.2,colorDefault,IIf(R >= 69.01,colorRed,colorLightGrey));
AddColumn(S1,"SIGNAL_01",1.2,colorDefault,IIf(S1 > M1,colorBlueGrey,colorLightGrey));
AddColumn(M1,"MACD_01",1.2,colorDefault,IIf(S1 > M1,colorBlueGrey,colorLightGrey));
AddColumn(S2,"SIGNAL_02",1.2,colorDefault,IIf(S2 > M2,colorBlueGrey,colorLightGrey));
AddColumn(M2,"MACD_02",1.2,colorDefault,IIf(S2 > M2,colorBlueGrey,colorLightGrey));
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
B | Today's Sky rocket Stocks to Buy | General Trading & Investing Chat | 0 | |
M | it is not rocket science. please write AFL for amibroker | AmiBroker | 20 | |
L | Rocket Jet - AFL Amibroker | AmiBroker | 2 | |
Rocket jet afl | AmiBroker | 35 | ||
C | sensex: skyrocketted to 21000...nosedive 16000. india inc poised? | Introductions | 0 |