- There is no subwindow without an indicator on it.
- EAs have no eyes. They don't need visible indicators. So no. Just get the value(s) of the indicator(s) into EA/indicator (using iCustom) and do what you want with it.
(MT4) Detailed explanation of iCustom - MQL4 programming forum (2017)
- There is no subwindow without an indicator on it.
- EAs have no eyes. They don't need visible indicators. So no. Just get the value(s) of the indicator(s) into EA/indicator (using iCustom) and do what you want with it.
(MT4) Detailed explanation of iCustom - MQL4 programming forum (2017)
well
i have created a dummy subwindow to be able to attach my EA dashboard controls inside it , the problem when i switch to other TF another Subwindow is open again , so there is no indicator on it to get a value
everything is working as it should its just when i look into chart indicators i see few subwindows in the list .
well
i have created a dummy subwindow to be able to attach my EA dashboard controls inside it , the problem when i switch to other TF another Subwindow is open again , so there is no indicator on it to get a value
everything is working as it should its just when i look into chart indicators i see few subwindows in the list .
How are you creating a subwindow without an indicator ?
Your issue is not clear. Please show your code if you need coding help.
How are you creating a subwindow without an indicator ?
Your issue is not clear. Please show your code if you need coding help.
#property indicator_separate_window int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { return(rates_total); }
thats it and calling this from EA using
handle2=iCustom(_Symbol,_Period,"subwindow");
ChartIndicatorAdd(0,1,handle2);
thats it and calling this from EA using
handle2=iCustom(_Symbol,_Period,"subwindow");
ChartIndicatorAdd(0,1,handle2);
Ok so you are well using an indicator.
Forum on trading, automated trading systems and testing trading strategies
Duplicate indicator at timeframe change - MQL5
RedTaurus, 2023.03.24 19:33
On Init() indicatoreHandle = iCustom(_Symbol, TimeFrame, ".\PathUsata\indicatore.ex5", Periods, Multiplier); // Aggiunge indicatore al grafico ChartIndicatorAdd(0, 0, indicatoreHandle ); void OnDeinit(const int reason) { IndicatorRelease(indicatoreHandle );
Hi everyone
In MQL5
I use the sequences above to load a custom indicator from EA to manage its results.
When I change the TF, the same indicator is reloaded with each change of TF, confusing the EA
How can I solve the problem?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
the Title say it all :)
any function for that ?
thanks