Questions from Beginners MQL5 MT5 MetaTrader 5 - page 702
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
What does trailing stop, from the standard library in mt5 return(-1); ?
Go to your product settings, then the "Management" tab, then "Moderator comments" and write a request for deletion.
About number of seconds and timeframes:
PeriodSecondsDocumentation | 2015.12.03 13:33
You are like an official, if he does not know what to answer, he pours water - I have seen the reference. The question is how to calculate how many bars of the upper TF can be built from the bars of the current TF.
The question is: why? :). What kind of task is it when the condition is reversed through the head?
The task is to determine the boundaries of the graphical object. You need to know where the beginning and the end (including the future one) of the bar of the upper TF is at the current timeframe.
Have you already drawn the graphical object itself on the current timeframe?
Have you already drawn the graphical object itself on the current timeframe?
Yes. The borders can be well defined if the current timeframe is less than one hour, and then everything moves off...
If you have already drawn a graphical object, that's it. It will be drawn on all timeframes.
In the example of the rectangle - you have set coordinates for two points (time1,price1) and (time2,price2). And based on these coordinates, the rectangle will be drawn at any timeframe.
The task is to determine the boundaries of a graphical object. It is necessary to know where the beginning and the end (including the future one) of the bar of the upper TF is located in the current TF.
If you have already drawn a graphical object, that's it. It will be drawn on all timeframes.
In the example of the rectangle - you have set coordinates for two points (time1,price1) and (time2,price2). And by these coordinates, the rectangle will be drawn at any timeframe.
Maybe I'm not explaining myself very well... I draw the object with time, i.e. the first point is the beginning of the day and the second is the beginning of the next day.
I need to find out for any upper TF:
1. How many objects may be drawn in total on the current TF, taking into account that one object per one bar of the upper TF
2. Where the object starts and ends
In this article Dmitry has the solution to your question. (CopyTime() to help)
Yes, I've studied it, but it's too long to use CopyTime() - is there no simpler option?
Analogue of iTime() is needed.