Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 834
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
Good afternoon!
Could you please tell me how I can briefly write an expression that rounds an integer (number of points) to a given precision, e.g. 5.
I understand that if I want to round to 10, I use NormalizeDouble(point_val, 4) / Point = NormalizeDouble(0.00175, 4) = 0.0018 / 0.0001 = 180.
How do I round to the nearest 5 points?
Good afternoon!
Could you please tell me how I can briefly write an expression that rounds an integer (number of points) to a given precision, e.g. 5.
I understand that if I want to round to 10, I use NormalizeDouble(point_val, 4) / Point = NormalizeDouble(0.00175, 4) = 0.0018 / 0.0001 = 180.
How do I round to the nearest 5 points?
In whole points MathRound(X/5)*5, if necessary, then multiply by Point.
How can you find the highs, lows of the previous day on a five-minute chart without using a daily chart?
iHigh() - iLow() with appropriate parameters.
But, this is only possible with the daily chart data.
With iHighest(),iLowest(), how many M5 bars in a day is known, the offset to the end of the previous day, I think, can also be calculated.
Also, as an option in case there may be no bars, sh and P from the post above can be calculated by applying the number of seconds in a day. For example, something like this. From the attached outline version of the code, in general, the principle should be clear.
There is a link to a very good article in that post.