Wick size

 

Hi

i am making an expert adviser in which i need to calculate wick size (upper and lower both) of last candle/bar . How can i calculate these wick sizes?


Thanks

 
bugs09:

Hi

i am making an expert adviser in which i need to calculate wick size (upper and lower both) of last candle/bar . How can i calculate these wick sizes?

High - MathMax(Open, Close);
MathMin(Open, Close) - Low;
 
bugs09: How can i calculate these wick sizes?
How do you think you do?
double bodyTop = MathMax( Open[i], Close[i] ),
       bodyBot = MathMin( Open[i], Close[i] ),
       upper   = High[i] - bodyTop,
       bottom  = botdyBot - Low[i];  // Was that so hard?