rvi

2 June 2017, 14:52
jatinpruthvi
0
30
double mypricearray0[];
double mypricearray1[];

int RVIDef = iRVI(_SYMBOL,_PERIOD,10);
 ArraySetAsSeries(mypricearray0,true);
 ArraySetAsSeries(mypricearray1,true);
 CopyBuffer(RVIDef,0,0,3,mypricearray0)
 CopyBuffer(RVIDef,1,0,3,mypricearray1)
 
 double rVal0 = NormalizeDouble(mypricearray0[0],3);
 double rVal1 = NormalizeDouble(mypricearray1[0],3);
 
 if(rVal0<rVal1 && (rVal1<0))
//sell
 if(rVal0>rVal1 && (rVal0>0))
//up
 
 
 if(rVal0<rVal1 && (rVal0>0))
//sell
 if(rVal0>rVal1 && (rVal1<0))
//up correction
Share it with friends: