need code for RSI .if RSI>20 means SELL and RSI

 

hi frnds,

am new to mt4.

nw i need a EA code for RSI

my condition is,

RSI>40 means SELL

and

RSI<20 means BUy

can u anybody help for me.

am waiting for ur replay frnds.thank u

 
Please do not triple post.
 
ram:

hi frnds,

am new to mt4.

nw i need a EA code for RSI

my condition is,

RSI>40 means SELL

and

RSI<20 means BUy

can u anybody help for me.

am waiting for ur replay frnds.thank u


Something to start with....
//+------------------------------------------------------------------+
//|                                                       RSI EA.mq4 |
//|                                            Copyright © 2012, RAM |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2012, RAM"
#property link      ""

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
 
deVries:

Something to start with....

I must say, deinit() is optional. In fact, all 3 are optional, but you probably need at least one, or two.

But my real reason for posting is the incorrect rule:

If 20 is the correct BUY, 80 must be the correct SELL.

RSI>80 means SELL

and

RSI<20 means BUy

 
blogzr3:

I must say, deinit() is optional. In fact, all 3 are optional, but you probably need at least one, or two.

But my real reason for posting is the incorrect rule:

If 20 is the correct BUY, 80 must be the correct SELL.


Ofcours it is.... This is not my topic

But if RAM is wanting some help then he has to show what he tried. Are we coding the whole EA ? For sure not for free....

 
deVries:


Ofcours it is.... This is not my topic

But if RAM is wanting some help then he has to show what he tried. Are we coding the whole EA ? For sure not for free....

Sure. Posting the code template as a response is actually a refreshing change.

I was just pointing out (to the OP) it should be 20-80, not 20-40. ;)

Reason: