FxTrader_:
What is the formula used for that.?
Thank for any help.
Hi All,
How can I find the distance between moving average and current low?
What is the formula used for that.?
Thank for any help.
iMA(NULL, 0,14,0,MODE_SMA,PRICE_CLOSE,0)-Low[0];
You just need to modify the output to show the desired precision:
double diff=iMA(NULL, 0,14,0,MODE_SMA,PRICE_CLOSE,0)-Low[0]; Print(DoubleToStr(diff,Digits));
Thank your for your assistance,
But I'm not able to show it in the screen,
Print statements will only appear in the log - I just used it as an example.
If you need it somewhere else (e.g. in a text or label), the logic remains the same: use StringFormat or DoubleToStr to define the precision.
You haven't posted your code so we're all shooting blind here...
Thank you so much

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
Hi All,
How can I find the distance between moving average and current low?
What is the formula used for that.?
Thank for any help.