Help with iAlligator function in EA

 
Wrote the iAlligator function with the following parameters in my EA.
My issue is when I am testing this with EURUSD 1H fort the month of May 2018, the values are not matching with what I see on the chart. Could any one help me to understand why I see a difference in Jaws.

Candle : May 30, 2018 10:00:00
When th Alligator is added to the chart I get the following.
Jaws : 1.15776
Teeth : 1.15762

When I check the values in EA, I get the following.
Jaws : 1.15764
Teeth : 1.15762



   double curr_open_jaw= iAlligator( NULL,0,20,0,20,1,20,0,MODE_SMMA,PRICE_CLOSE,MODE_GATORJAW,0);

   double curr_open_teeth= iAlligator( NULL,0,20,0,20,1,20,0,MODE_SMMA,PRICE_CLOSE,MODE_GATORTEETH,0);


 
don per:

   double curr_open_jaw= iAlligator( NULL,0,20,0,20,1,20,0,MODE_SMMA,PRICE_CLOSE,MODE_GATORJAW,0);

   double curr_open_teeth= iAlligator( NULL,0,20,0,20,1,20,0,MODE_SMMA,PRICE_CLOSE,MODE_GATORTEETH,0);


you are comparing values for the current bar, this is constantly changing.