Download MetaTrader 5

Gator error

To add comments, please log in or register
Michael
703
Michael  

Can someone please tell me why this:

void OnStart()
  {
   double LipsCurrent=iGator(Symbol(),0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_GATORLIPS,4);
   double TeethCurrent=iGator(Symbol(),0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_GATORTEETH,4);
   double JawsCurrent=iGator(Symbol(),0,13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN,MODE_GATORJAW,4);
   double LipsCurrentMA=iMA(Symbol(),0,5,3,MODE_SMMA,PRICE_MEDIAN,4);
   double TeethCurrentMA=iMA(Symbol(),0,8,5,MODE_SMMA,PRICE_MEDIAN,4);
   double JawsCurrentMA=iMA(Symbol(),0,13,8,MODE_SMMA,PRICE_MEDIAN,4);
   Print("LipsCurrent:",LipsCurrent," LipsCurrentMA:",LipsCurrentMA);
   Print("TeethCurrent:",TeethCurrent," TeethCurrentMA:",TeethCurrentMA);
   Print("JawsCurrent:",JawsCurrent," JawsCurrentMA:",JawsCurrentMA);
  }

Produces this:

I mean, the values should be the same, shouldn't they?

Fernando Carreiro
2279
Fernando Carreiro  
No, they are not the same! "iGator()" is the Gator Oscillator. You should be using "iAlligator()" if you want the Alligator Indicator with its 3 moving averages.
Michael
703
Michael  
FMIC:
No, they are not the same! "iGator()" is the Gator Oscillator. You should be using "iAlligator()" if you want the Alligator Indicator with its 3 moving averages.
CARP!  I didn't even see that!  Thanks!!!!!!!!!
To add comments, please log in or register