hi
i meet a problem,i make an EA basing on RSX,but the EA gives many orders. maybe the code is wrong. this is the code:
RSX0=iCustom(Symbol(),0,"RSX",0,i+2);
RSX1=iCustom(Symbol(),0,"RSX",0,i+1);
RSX2=iCustom(Symbol(),0,"RSX",0,i);
string BUY="false";string SELL="false";
if((RSX1<RSX0)&&(RSX2>RSX1))BUY="true";
if((RSX1>RSX0)&&(RSX2<RSX1))SELL="true";
hope someone can help me.thank you very much.
yourspace
i meet a problem,i make an EA basing on RSX,but the EA gives many orders. maybe the code is wrong. this is the code:
RSX0=iCustom(Symbol(),0,"RSX",0,i+2);
RSX1=iCustom(Symbol(),0,"RSX",0,i+1);
RSX2=iCustom(Symbol(),0,"RSX",0,i);
string BUY="false";string SELL="false";
if((RSX1<RSX0)&&(RSX2>RSX1))BUY="true";
if((RSX1>RSX0)&&(RSX2<RSX1))SELL="true";
hope someone can help me.thank you very much.
yourspace