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
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); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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