Is there a code to measure the candle's body?
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]);
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