Need help from seniors

#1
Hello seniors,

i need help to plot exploration ...


BUY CONDITION
1) EMA 20 CROSSOVER FROM BELOW EMA 50 (Price to close above 20 EMA)
2) RSI (14,9) CROSSOVER FROM BOTTOM
3) MACD ( 9,9,24) CROSSOVER FROM BOTTOM
(All conditions to satisfy at a time then = BUY)

SELL CONDITION
1) EMA 20 CROSSOVER FROM ABOVE EMA 50(Price to close below 20 EMA)
2) RSI (14,9) CROSSOVER FROM TOP
3) MACD (9,9,24) CROSSOVER FROM TOP
(All conditions to satisfy at a time then = Sell)

Thanx you in advance
 

jagankris

Well-Known Member
#2
Hello seniors,

i need help to plot exploration ...


BUY CONDITION
1) EMA 20 CROSSOVER FROM BELOW EMA 50 (Price to close above 20 EMA)
2) RSI (14,9) CROSSOVER FROM BOTTOM
3) MACD ( 9,9,24) CROSSOVER FROM BOTTOM
(All conditions to satisfy at a time then = BUY)

SELL CONDITION
1) EMA 20 CROSSOVER FROM ABOVE EMA 50(Price to close below 20 EMA)
2) RSI (14,9) CROSSOVER FROM TOP
3) MACD (9,9,24) CROSSOVER FROM TOP
(All conditions to satisfy at a time then = Sell)

Thanx you in advance
Re check your conditions for explorations.

MACD - Slow and fast avg both cannot be 9.
I.e 9,9,24 wont give any macd.

RSI - is an oscillator and MA crossover is a trend indicator and lagging.

It is unlikely for RSI to move from oversold region while bullish cross over happened. and vice versa for bearish MA cross over.

Hence by the time say bullish MA cross over happens - RSI is most likely to be above 50 or near the over bought region.
 
#3
Re check your conditions for explorations.

MACD - Slow and fast avg both cannot be 9.
I.e 9,9,24 wont give any macd.

RSI - is an oscillator and MA crossover is a trend indicator and lagging.

It is unlikely for RSI to move from oversold region while bullish cross over happened. and vice versa for bearish MA cross over.

Hence by the time say bullish MA cross over happens - RSI is most likely to be above 50 or near the over bought region.


I will look at my conditions again sir.

Thanx you
 
#4
Hello jagankris sir,

Need one more help to plot small exploration ...

Ref. Post no 3513 in "Simple Code help - No promise"

Query asked by Prodigy06

Originally Posted by prodigy06
Hi Everyone,

Sorry for this newbie question but I am quite new to Amibroker and I am trying to create a simple filter that will list all stocks that has:

- DMI positive crossover today

AND

- RSI above 30

Both Conditions must be satisfied and the columns are:

Stock Code, "+DI minus -DI value" and RSI Value.

Your help is really appreciated as I can go and continue making adjustments as I go along so I really need to start with the basics. Thanks!


Replied by Mastermind sir..

HTML:
p = Param("Period",10,10,20,1);
Filter = Cross(PDI(p),MDI(p)) & (RSI(p) > 30);

AddColumn(PDI(p), "+DI");
AddColumn(MDI(p), "-DI");
AddColumn(RSI(p), "RSI");

Above Exploration is for BUY CONDITION..

I want for sell condition too

" DMI NEGATIVE CROSSOVER

RSI FALLING BELOW 70"

(all conditions to satisfy)

Please help me...

Thanx you
 

jagankris

Well-Known Member
#5
Hello jagankris sir,

Need one more help to plot small exploration ...








Replied by Mastermind sir..

HTML:
p = Param("Period",10,10,20,1);
Filter = Cross(PDI(p),MDI(p)) & (RSI(p) > 30);

AddColumn(PDI(p), "+DI");
AddColumn(MDI(p), "-DI");
AddColumn(RSI(p), "RSI");
p = Param("Period",10,10,20,1);

BUY = Cross(PDI(p),MDI(p)) & (RSI(p) > 30);
SELL = Cross(MDI(p),PDI(p)) & (RSI(p) < 70);

Filter = Buy or Sell:

AddColumn(PDI(p), "+DI");
AddColumn(MDI(p), "-DI");
AddColumn(RSI(p), "RSI");

Above Exploration is for BUY CONDITION..

I want for sell condition too

" DMI NEGATIVE CROSSOVER

RSI FALLING BELOW 70"

(all conditions to satisfy)

Please help me...

Thanx you
p = Param("Period",10,10,20,1);

Buy = Cross(PDI(p),MDI(p)) AND (RSI(p) > 30);
Sell = Cross(MDI(p),PDI(p)) AND (RSI(p) < 70);

Filter = Buy OR Sell;
AddColumn(IIf( Buy,66,IIf(Sell,83,32) ),"A", formatChar, colorWhite, bkcolor =IIf(Buy, colorGreen,IIf( Sell,colorRed, colorDefault) ));//Action Trade buy or sell
AddColumn( IIf(Buy,C,IIf(Sell,-L,Null)) ,"PRICE",1.2,colorWhite,IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)));
AddColumn(PDI(p), "+DI");
AddColumn(MDI(p), "-DI");
AddColumn(RSI(p), "RSI");
 
#6
p = Param("Period",10,10,20,1);

Buy = Cross(PDI(p),MDI(p)) AND (RSI(p) > 30);
Sell = Cross(MDI(p),PDI(p)) AND (RSI(p) < 70);

Filter = Buy OR Sell;
AddColumn(IIf( Buy,66,IIf(Sell,83,32) ),"A", formatChar, colorWhite, bkcolor =IIf(Buy, colorGreen,IIf( Sell,colorRed, colorDefault) ));//Action Trade buy or sell
AddColumn( IIf(Buy,C,IIf(Sell,-L,Null)) ,"PRICE",1.2,colorWhite,IIf(Buy,colorGreen,IIf(Sell,colorRed,colorBlack)));
AddColumn(PDI(p), "+DI");
AddColumn(MDI(p), "-DI");
AddColumn(RSI(p), "RSI");

When tried to explore the AFL..

After scanning -

Sell values are (Low of the day)

While Previous one by mastermind sir..

Buy values are ( Current price )

(If possible pls make it Current price )
 
Last edited:

Similar threads