Can any one help:RSI-MACD dynamic strategy

#1
Dear Friends,

Can any one write the AFL for the below specifications:

Buy when RSI move up from 30
and 5 min MA crosses up 20 min MA from below with stoploss of nearest low,

Sell when when RSI down from 70
and 5 min MA crosses down 20 min MA from above with stoploss of nearest high,

This works good on trading range bound days

I request seniors to add your ideas and improve the strategy and also advice how to trade this on trending days.
 

Attachments

#2
//begin RSI and MA crossover.
//strategy formula

condition1=Cross(RSI(),30) AND Cross(EMA(C,5),EMA(C,20));
condition2=Cross(RSI(),70) AND Cross(EMA(C,20),EMA(C,5));

Buy= Condition1;
Sell= Condition2;

//Plot the conditions on the chart

Plot(C,"",colorBlue,styleCandle);
PlotShapes( condition1 * shapeUpArrow, colorGreen, 0, H, -20 );
PlotShapes( condition2 * shapeDownArrow, colorRed, 0, L, -20 );

//end
 
#3
Dear Friends,

Can any one write the AFL for the below specifications:

Buy when RSI move up from 30
and 5 min MA crosses up 20 min MA from below with stoploss of nearest low,

Sell when when RSI down from 70
and 5 min MA crosses down 20 min MA from above with stoploss of nearest high,

This works good on trading range bound days

I request seniors to add your ideas and improve the strategy and also advice how to trade this on trending days.
Is that 5 min MA crossing over 20 min MA or 5 period MA crossing over 20 period MA?
Amit
 

Similar threads