Get the time of the object. get the shift from the time. test.
WHRoeder:
Get the time of the object. get the shift from the time. test.
Get the time of the object. get the shift from the time. test.
WhRoeder I get that your trying to teach me to fish (appreciate that). I am not quite following yet. Are you referring to below? Would you mind elaborating a bit more to get me off an running?
iBarShift
Search for a bar by its time. The function returns the index of the bar which covers the specified time.
int iBarShift( |
ObjectGetTimeByValue
The function returns the time value for the specified price value of the specified object.
datetime ObjectGetTimeByValue( |
- ObjectGetTimeByValue - MQL4 Documentation is used (on all the object types listed) because they have multiple times (Trendline start/end.) and you need a time between them.
- If you just need the start time/end time why would you need that?

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 everyone, I have been searching with no luck for a way to clear a chart from "x" bars back. So for example any objects that are older than 50 bars get deleted. I am thinking this code could be modified to do that, it clears the whole chart in it's current state.
Would anyone have any ideas on what to change here?
Thanks for any help!
SD