Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: soleymanihas
About
User Name: soleymanihas
Groups: Member
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Gender:
Statistics
Joined: Tuesday, August 6, 2013
Last Visit: Tuesday, August 6, 2013 3:18:19 PM
Number of Posts: 1
[0.00% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: PCF Formula Descriptions
Posted: Tuesday, August 6, 2013 3:09:01 PM

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