Experts: LB & SB using RSI & Momentum

 

LB & SB using RSI & Momentum:

The same EA's as previously released. The additional code allows the user to set parameters on RSI and Momentum.

Author: Patrick Burns

 

The only thing that needs to be amended for more accurate measurement of the indicators is below.

 


//Published as this

extern int         RSI_Period        = 14;
extern int         RSI_Buy_Restrict  = 1.;
extern int         RSI_Sell_Restrict = 1.;
extern int    Momentum_Period        = 14;      
extern int    Momentum_Buy_Restrict  = 1.;
extern int    Momentum_Sell_Restrict = 1.;

//Change to this

extern int            RSI_Period        = 14;
extern double         RSI_Buy_Restrict  = 1.;
extern double         RSI_Sell_Restrict = 1.;
extern int       Momentum_Period        = 14;      
extern double    Momentum_Buy_Restrict  = 1.;
extern double    Momentum_Sell_Restrict = 1.;
 
Hi. 
I've used this robot. It works very well, but, starting in December 2.016, it starts to enter into constant losses. Do you know why this happens? 
I've tried it in a five minute time frame. 
Greetings and congratulations for your work.
 
OFFICUS:
Hi. 
I've used this robot. It works very well, but, starting in December 2.016, it starts to enter into constant losses. Do you know why this happens? 
I've tried it in a five minute time frame. 
Greetings and congratulations for your work.
The testing with the best results (optimized using tick data) is on H4 or D1 timeframes. The best results appear to be without using the indicators, so I use the LB & SB EA's instead.
 
What should i set the RSİ and MOMEMTUM to ?
 
Cem Sak:
What should i set the RSİ and MOMEMTUM to ?
Good question. Do optimized tests on H4 and D1. Also open an offline chart on the MT4, add the indicators and have a look at their values and compare to price movement.
 

Hi. 
I'm using this robot. It works very well in strategy tester, But when i'm using it in live account it's opeing the trade then directly going to close in the same time, Can you help please ? 

Note: I'm didn't change any of the parameter

Email: csq8q8@gmail.com 

 
csq8q8:

Hi. 
I'm using this robot. It works very well in strategy tester, But when i'm using it in live account it's opeing the trade then directly going to close in the same time, Can you help please ? 

Note: I'm didn't change any of the parameter

Email: csq8q8@gmail.com 

Check that the Stop/Limit Order distance is not within your brokers stop/freeze level. This may be causing error. It should come up as an alert. Please let me know how you get on.
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
{
   if (MagicNumber < 0)
   {
     sub_magicnumber();
   }
  
   if(MarketInfo(Symbol(), MODE_STOPLEVEL)>StopOrderDistance)
   Alert("StopOrderDistance.Pips is not set correctly!");
  
 
2018.07.07 14:10:22.944 2017.01.03 12:05:00  SRMB EURUSD,M5: OrderDelete error 145


Hi i keep receiving this error, any updates for this?

Reason: