How can I make it so that when a colour is changed in the input parameters, this colour is in"indicator_color1" ? Right now, no matter how you change it, it's the original
How can I make it so that when a colour is changed in the input parameters, this colour is in"indicator_color1" ? Right now, no matter how you change it, it's the original one.
How in custom indicator to get data from OnCalculate() only minute time series, on any timeframe? I'm using CopyRates(sym,PERIOD_M1,...), what's the best way, what do you advise?
How to get data in a custom indicator from OnCalculate() of minute time series only, for any timeframe? I use CopyRates(sym,PERIOD_M1,...), whats the best way, whats your advice?
If you need multiple bars at once, you won't find anything better. And I think it's better to receive values of one bar by means of CopyRates
Vladimir M.: On the other hand, you cannot remove OnCalculate() from the indicator because it is not needed. It turns out that you get the same data twice?
Well, if you don't need it, you can use the second variant
intOnCalculate (constint rates_total, // размер массива price[] constint prev_calculated, // обработано баров на предыдущем вызове constint begin, // откуда начинаются значимые данные constdouble& price[] // массив для расчета
);
Is it possible to do without it if OnTick() is present?
I doubt it's possible, but I won't try it anymore. And the documentation says:
"...The NewTick event is generated only for Expert Advisors when a new tick is received for a symbol, to the chart of which the Expert Advisor is attached. It's useless to define the OnTick() function in a custom indicator or script, as the NewTick event is not generated for them ...".
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.
Has this ever worked, or not?
How can I make it so that when a colour is changed in the input parameters, this colour is in"indicator_color1" ? Right now, no matter how you change it, it's the original
How about this?
How about this?
Has this ever worked, or not?
How can I make it so that when a colour is changed in the input parameters, this colour is in"indicator_color1" ? Right now, no matter how you change it, it's the original one.
Something can be traced like this:
Something can be traced like this:
Great, here we go:PlotIndexGetInteger(0,PLOT_LINE_COLOR,0)
Thank you!
How in custom indicator to get data from OnCalculate() only minute time series, on any timeframe? I'm using CopyRates(sym,PERIOD_M1,...), what's the best way, what do you advise?
How to get data in a custom indicator from OnCalculate() of minute time series only, for any timeframe? I use CopyRates(sym,PERIOD_M1,...), whats the best way, whats your advice?
If you need multiple bars at once, you won't find anything better. And I think it's better to receive values of one bar by means of CopyRates
If you need multiple bars at once, you won't find anything better. And in my opinion it's better to get the values of a single bar via CopyRates
OnCalculate() cannot be removed from the indicator as it is not needed. It turns out that you get the same data twice?
Is it possible to do without it if OnTick() is present?
On the other hand, you cannot remove OnCalculate() from the indicator because it is not needed. It turns out that you get the same data twice?
Well, if you don't need it, you can use the second variant
Is it possible to do without it if OnTick() is present?
I doubt it's possible, but I won't try it anymore. And the documentation says:
"...The NewTick event is generated only for Expert Advisors when a new tick is received for a symbol, to the chart of which the Expert Advisor is attached. It's useless to define the OnTick() function in a custom indicator or script, as the NewTick event is not generated for them ...".