Download MetaTrader 5

iRSI doesn't work well

To add comments, please log in or register
Launch your trading signal and add account monitoring!
sadas asfasd
16
sadas asfasd 2015.09.04 17:14 

BuyPoint:20 and SellPoint:80 for EURCHF

 when the rsi touches the buypoint or sellpoint, order is opened. however, when this opened order is closed, although rsi doesn't touches the buypoint or sellpoint, immediately another order is opened for eurchf

how can i fix it

parameter 

   extern int       AppliedPrice=4;

 bar checks

   double RSInow=iRSI(NULL,0,RSIperiod,AppliedPrice,0);
   double RSIlast=iRSI(NULL,0,RSIperiod,AppliedPrice,1);
   double RSIprev=iRSI(NULL,0,RSIperiod,AppliedPrice,2);

 opening criteria

// Open buy
   if((RSInow>BuyPoint) && (RSIlast<BuyPoint) && (RSIprev<BuyPoint) && (halt1!=1) && (TradeTimeOk==1))
     {
      int openbuy=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"RSI Trader Buy Order",MagicNumber1,0,Blue);
      if(CloseOnOpposite==true)closesell=1;
     }

// Open sell
   if((RSInow<SellPoint) && (RSIlast>SellPoint) && (RSIprev>SellPoint) && (halt2!=1) && (TradeTimeOk==1))
     {
      int opensell=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,0,0,"RSI Trader Sell Order",MagicNumber2,0,Green);
      if(CloseOnOpposite==true)closebuy=1;
     }
Teck Hua Chew
497
Teck Hua Chew 2015.09.07 19:34  
You can fix this by limiting the number of orders.
Check the number of orders that is opened.
Teck Hua Chew
497
Teck Hua Chew 2015.09.07 19:37  
Just additional suggestion. you should check different time frame RSI. at least 2 RSI settings.

e.g. RSI from 15 min and RSI from 1 HR. or RSI from 4HR
Siti Latifah
6451
Siti Latifah 2015.09.08 17:13  
I think the RSIperiod is too fast, try biiger for RSIperiod.

or you can chnge like below


double RSInow=iRSI(NULL,0,RSIperiod,AppliedPrice,1);
   double RSIlast=iRSI(NULL,0,RSIperiod,AppliedPrice,2);
   double RSIprev=iRSI(NULL,0,RSIperiod,AppliedPrice,3);
ADRIAN MATUSIAK
1158
ADRIAN MATUSIAK 2015.09.08 18:36  
Siti Latifah:
I think the RSIperiod is too fast, try biiger for RSIperiod.

or you can chnge like below


Yes, this might be solution I think.
To add comments, please log in or register