You may use such a code or do the variation that suits you ...
if(Open[1] > Close[1]) Body = Open[1] - Close[1]; else Body = Close[1] - Open[1];
Of course, this code is the simplest ... You need to change the result from x.xxxxx representation to Pips or Points by multiplying the result by 1/Point value.
Osama Shaban:
You may use such a code or do the variation that suits you ...
Of course, this code is the simplest ... You need to change the result from x.xxxxx representation to Pips or Points by multiplying the result by 1/Point value.
Simplest code would be:
double Body=fabs(Close[1]-Open[1]);
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
Is there a code to measure the candle's body similar to iHighest() or iLowest()?
iBody() ?
iBuy() - Code to place buy orders
iSell() - Code to place sell orders