[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 442
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Question: do I understand correctly:
a) the definition of a file pointer;
b) the meaning of the phrase"if the specified check (the last 2 lines in block 5-6) is removed, an extra object will be created during program execution. And only after that the while loop's end condition will trigger and control will be passed to block 8-9".
a) even if misunderstood, does it prevent you from making correct programs?
b) did you check? and how, was an extra object created?
but the chart can't draw just one bar (a slice of the screen) when updating.
it updates the whole window at once.
Perhaps I didn't express myself correctly, when any bar is removed from the chart using HistoryBarsEditor, then with a new tick, that bar no longer appears. I understand that only the last bar is drawn; when I do the same on an offline chart and cut any bar from the chart, with the arrival of the tick all the bars return, i.e. the whole chart is redrawn, right?
So maybe it's not the redraw that should be looked at, but the offline data file? Maybe it's being restored again on a new tick?
So maybe it's not the redraw that should be looked at, but the offline data file? Maybe it's being restored again on a new tick?
Author's synbar writes data in history - tool+period9. But such a history from quotes archive cannot be edited, that's why I changed period from M9 to 1 month, that's the only way it can be edited. Of course, I didn't tear off the online version of monthly chart to avoid confusion of the history. The point is that when a bar is deleted from the chart, it is also deleted from the history. Or the bar is not deleted when deleting from the quote archive? There is simply no other place for it to come from.
Or does deleting from the quote archive not actually delete the bar?
You add a variable to the condition:
Thank you!!!
Do you know a function where you can set the trading time, i.e. EA trades only from 11:00 till 19:00, after 19:00 it closes a position or places a stop and does not open a position till next morning at 09:00
Thank you
Thank you!!!
maybe you know a function where you can set the time of trade, i.e. advisor trades only from 11:00 to 19:00 after 19:00 it closes the position or places a stop and does not open a position again until the next morning 09:00
Thank you
https://forum.mql4.com/ru/21325
check, I don't know how, with what and where you delete.
Deleted manually from the quote archive, apparently that's the story, different from the terminal one. Thanks for the help.
I'll give my advice - don't read the tutorial, usethe Documentation, it describes everything clearly.