Request for a filter in RMO code?

#1
though it has given a ribbon as a filter, the RMO indicator gives loads of signals even on a smaller TF.

can any1 help in filtering it in such a way that it gives only BUY when green ribbon and SELL when red ribbon! though practically it wont be any change but visually u wud see only up and down arrows corresponding to ribbon!

thks in adv.

_SECTION_BEGIN("RMO");
SwingTrd1 = 100 * (Close - ((MA(C,2)+
MA(MA(C,2),2)+
MA(MA(MA(C,2),2),2) +
MA(MA(MA(MA(C,2),2),2),2) +
MA(MA(MA(MA(MA(C,2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2), 2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2), 2),2),2),2))/10))/(HHV(C,10)-LLV(C,10));
SwingTrd2=EMA(SwingTrd1,30);
SwingTrd3=EMA(SwingTrd2,30);
RMO= EMA(SwingTrd1,81);
Buy=Cross(SwingTrd2,SwingTrd3);
Sell=Cross(SwingTrd3,SwingTrd2);
Bull_Trend=EMA(SwingTrd1,81)>0;
Bear_Trend=EMA(SwingTrd1,81)<0;
Ribbon_kol=IIf(Bull_Trend,colorGreen, IIf(Bear_Trend,colorRed, colorBlack));
Plot(4, "ribbon", Ribbon_kol, styleOwnScale|styleArea|styleNoLabel, -0.5,100);
Impulse_UP= EMA(SwingTrd1,30) > 0;
Impulse_Down= EMA(SwingTrd1,81) < 0;
bar_kol=IIf(impulse_UP, colorBlue, IIf(impulse_Down, colorRed,IIf(Bull_Trend, colorRed, colorBlue)));
Plot(Close,"Close",bar_kol,styleBar | styleThick );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorBlue, colorRed ),0, IIf( Buy, Low, High ) );
_SECTION_END();
 

sr114

Well-Known Member
#2
though it has given a ribbon as a filter, the RMO indicator gives loads of signals even on a smaller TF.

can any1 help in filtering it in such a way that it gives only BUY when green ribbon and SELL when red ribbon! though practically it wont be any change but visually u wud see only up and down arrows corresponding to ribbon!

thks in adv.
RMO chart


revised RMO chart


is the 2nd 1 is correct as per ur requirement?

rgds
subroto
 

RDutt

Active Member
#4
@ Subroto Sir,
if i could understand Malgo's requirement properly,
he wants RMO signals on the chart and wherever RMO signals do not match with Ribbon, they should not appear.

In Chart 2, signals seems matching with Ribbon appearance only.
i may be wrong also (as RMO BUY signals appearing on chart-1 are not there in chart-2, inspite of Ribbon being Green). please consider.
 
#5
thks subroto bro1 u actually made me think more! 2nd image is correct as u have ignored other signals. but with a changed requirement, i have given the screenshot for ur understanding.

btw cn u add sound alerts when BUY/SELL happens. are pop ups possible in amibroker with sound alerts just like metatrader!

i hope i am not asking for too much! else u cn give the simple code also pointing wt i have mentioned!



rgds
subroto[/QUOTE]
 
#6
RMO chart


revised RMO chart


is the 2nd 1 is correct as per ur requirement?

rgds
subroto

Hello Subroto,

You did a gr8 work in 2nd chart..But signals according to Ribbon.

If u could do this..

If Ribbon is Green ..

Once Buy arrow comes..it should be buy arrow till next Sell arrow appears but Sell arrow should be in RED RIBBON ZONE.


If Ribbon is Red...

Once Sell arrow comes.. It should continue to be Sell arrow till next Buy arrow appears but Buy arrows should be in Green RIBBON ZONE.


Hope u got me...

Thanx you for ur efforts.
 

sr114

Well-Known Member
#7
thks subroto bro1 u actually made me think more! 2nd image is correct as u have ignored other signals. but with a changed requirement, i have given the screenshot for ur understanding.

btw cn u add sound alerts when BUY/SELL happens. are pop ups possible in amibroker with sound alerts just like metatrader!

i hope i am not asking for too much! else u cn give the simple code also pointing wt i have mentioned!



rgds
subroto
[/QUOTE]

follow this link
http://www.marketcalls.in/amibroker/text-to-speech-based-buy-or-sell-alert-in-amibroker.html

u will get the sound alert ( here ur sound alert will be the bull_tren and bear_trend)

lastly , what u want is to change the afl completely and then it will not be RMO - so if u want to use RMO stick with this afl aor otherwise - specify ur criteria

rgds
subroto
 

sr114

Well-Known Member
#8
thks subroto bro1 u actually made me think more! 2nd image is correct as u have ignored other signals. but with a changed requirement, i have given the screenshot for ur understanding.

btw cn u add sound alerts when BUY/SELL happens. are pop ups possible in amibroker with sound alerts just like metatrader!

i hope i am not asking for too much! else u cn give the simple code also pointing wt i have mentioned!



lastly if i can recolloect Ford7 can help with the sound alert - as he has done an extensive research on it.
please Ford come on to help us on this sound alert


rgds
subroto
[/QUOTE]

follow this link
http://www.marketcalls.in/amibroker/text-to-speech-based-buy-or-sell-alert-in-amibroker.html

u will get the sound alert ( here ur sound alert will be the bull_tren and bear_trend)

lastly , what u want is to change the afl condition then it will not be RMO - so if u want to use RMO stick with this afl aor otherwise - specify ur criteria

rgds
subroto
 
#9
okie sir! nt a prob! u can post the 2nd image related afl!
also, is it possible that u let the all the buy signals remain as it is once the BUY is generated with ribbon and vice versa!
thks a lot!
 
Last edited:

ocil

Well-Known Member
#10
Test this AFL on Nifty 15m Chart & see the performance:-
SetChartOptions(0,chartShowArrows|chartShowDates|chartWrapTitle);

_SECTION_BEGIN("RMO");
SwingTrd1 = 100 * (Close - ((MA(C,2)+
MA(MA(C,2),2)+
MA(MA(MA(C,2),2),2) +
MA(MA(MA(MA(C,2),2),2),2) +
MA(MA(MA(MA(MA(C,2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2) +
MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2), 2),2)+
MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2), 2),2),2),2))/10))/(HHV(C,10)-LLV(C,10));
SwingTrd2=EMA(SwingTrd1,30);
SwingTrd3=EMA(SwingTrd2,30);
RMO= EMA(SwingTrd1,81);
Bull_Trend=EMA(SwingTrd1,81)>0;
Bear_Trend=EMA(SwingTrd1,81)<0;
B=Bull_trend;
S=Bear_trend;
Ribbon_kol=IIf(Bull_Trend,colorGreen, IIf(Bear_Trend,colorRed, colorBlack));
Plot(4, "ribbon", Ribbon_kol, styleOwnScale|styleArea|styleNoLabel, -0.5,100);
Impulse_UP= EMA(SwingTrd1,30) > 0;
Impulse_Down= EMA(SwingTrd1,81) < 0;
bar_kol=IIf(impulse_UP, colorBlue, IIf(impulse_Down, colorRed,IIf(Bull_Trend, colorRed, colorBlue)));
Plot(Close,"Close",bar_kol,styleBar | styleThick );
Buy= Cross (B,S) AND EMA(SwingTrd1,30) > 0;
Sell=Cross (S,B) AND EMA(SwingTrd1,81) < 0;
Cover=Buy;
Short=Sell;
Filter = Buy OR Sell;
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Short = ExRem( Short, Cover );
Cover = ExRem( Cover, Short );

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorBlue, colorRed ),0, IIf( Buy, Low, High ) );

dist = 2.5*ATR(20);
for( i = 5; i < BarCount; i++ )
{
if( Buy ) PlotText( "Buy\n" + C[ i ], i, L[ i ]-dist, colorBlue );
if( Sell ) PlotText( "Sell\n" + C[ i ], i, H[ i ]+dist, colorBlack );
}
_SECTION_END();


SL 20 point or Exit signal Target 250 point or exit signal....
 
Last edited:

Similar threads