hi i am hassan and i am writting an expert.
please help me.
i wrote function to find candle stick patterns and return those code to program.
my problem is:
//----------}}}}} Test for Bullish RISING THREE METHODS pattern.
double AVGH21_4=iMA(Active_Symbol,0,21,0,MODE_SMA,PRICE_HIGH,4);
double AVGL21_4=iMA(Active_Symbol,0,21,0,MODE_SMA,PRICE_LOW,4);
double AVGH21_0=iMA(Active_Symbol,0,21,0,MODE_SMA,PRICE_HIGH,0);
double AVGL21_0=iMA(Active_Symbol,0,21,0,MODE_SMA,PRICE_LOW,0);
if ((C4>O4) && (H4_-L4)>(AVGH21_4-AVGL21_4) && C2<C3 && C1<C2 && C3<H4_
&& C3>L4 && C2<H4_ && C2>L4 && C1<H4_ && C1>L4 && MathAbs(C3-O3)<=MathAbs(C4-O4)*0.75
&& MathAbs(C2-O2)<= MathAbs(C4-O4)*0.75 && MathAbs(C2-O2)<= MathAbs(C4-O4)*0.75 && C>O &&
(H_-L)>(AVGH21_0-AVGL21_0) && C>C4)
{
code=853;
}
is my code correct ?
i use ima to calculate AVGx pcs in mq4 , is this correct?
please help me.
tnx yo a lot.
hassan
|