Help on script(?) that return the length of body of bars, upper & lower wick

 
Hi
Anyone can help me write or maybe help me where I can find a
script that return the length of body of bars, upper & lower wick,
it is so tedious to calculate by hand.

thank u
 
golady9:
Hi
Anyone can help me write or maybe help me where I can find a
script that return the length of body of bars, upper & lower wick,
it is so tedious to calculate by hand.

thank u

Hi, I'm not sure which bar you are talking about but I'm gonna suppose you mean the first bar or bar number one.

int init()
{
double BarLength=Mathabs(High[1]-Low[1]),
       BarBody=mathabs(Close[1]-Open[1]),
       UpperWick,LowerWick;
if (Close[1]>Open[1])
{
UpperWick=High[1]-Close[1];
LowerWick=Open[1]-Low[1];
}else
{
UpperWick=High[1]-Open[1];
LowerWick=Close[1]-Low[1];
}
Alert("Length of bar:",BarLength,"Length of body:",BarBody,"Length of upperwick:"
,UpperWick,"Length of lower wick:",LowerWick);
}
Reason: