The easiest way is to use ObjectsDeleteAll(EMPTY,OBJ_ARROW). My indicator draws arrows for a day and at the end of the working session at 16:45 they are to be deleted (ObjectsDeleteAll(EMPTY,OBJ_ARROW)), the line moves as planned to the end of the day (16:45), you can delete arrows by time (16:45) but there is an unpleasant detail as an unfinished chart on holidays for example, and may not be a candle at 16:45 and then the line itself will move to the latest candle of the day even if the candle has a different time (no more than 16:45) for example 14:00, but here is a reason arrows will be removed only if some_time1 = 16:45.
string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
int shift - is it the parameter we can change on the chart, i.e. shift?
or index of the value obtained from the indicator buffer (shift relative to the current bar by the specified number of periods back). I.e. I need to know the MA value 56 bars ago - hence int shift =56??? If not, how do I do it?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
For the beauty of the solution it is necessary to refer to the MA,
you need to calculate the period of the MA...
i.e. from a specific function result find the MA period used in that function? for that you need to see the function
Nope... The function is a flag and uses the MA period as an internal parameter...
In order not to remember the period of the MA because it varies - the period of the MA needs to be defined within the function...
just use Object delete ///
Another question...
int shift - is it the parameter we can change on the chart, i.e. shift?
or index of the value obtained from the indicator buffer (shift relative to the current bar by the specified number of periods back). I.e. I need to know the MA value 56 bars ago - hence int shift =56??? If not, how do I do it?
Hi all, has anyone come across a script for transferring trades from a trade history file ("Save as detailed report") of the terminal to a chart...?
The scripts:fromRepOnGraph204.mq4 and fromHistoryInFile.mq4 are not suitable.
Nope... The function is a flag and uses the MA period as an internal parameter...
To avoid remembering the MA period because it varies - the MA period needs to be defined within the function...
Where does it change? Where does it change, that's where you see it.
Thanks for that! If you don't mind... I need to know the MA value 56 bars back - hence int shift =56??? If not, how do I do it?
yes
Thank you!