Good indicator, thanks for that. While I was try to use the indicator that uses a Divergence indicator which uses this indicator for getting oscillator data I came across these lines of indicator handles
These lines creates handles for the selected oscillator and they works fine, but my concern is the hand-coded Symbol() and Period() functions. I plan to use the indicator on a Multi-symbol EA, so that means that I will create indicator handles of other symbols and periods from a single chart. My concern Is these hand-coded Symbol() and Period() functions that I think will give me the handle of current chart instead of handle of symbol and period that entered as arguments on the iCustom functions that called it. My expectation was these lines would look like this:
pSymbol // parameter symbol variable from iCustom
pPeriod // parameter period variable from iCustom
m_handle=iATR(pSymbol,pPeriod,ma_period);
m_handle=iBearsPower(pSymbol,pPeriod,ma_period);
m_handle=iDeMarker(pSymbol,pPeriod,ma_period);
Can you help me clarify this doubt. How to use the indicator on a Multi-Symbol EA
The article considers all kinds of divergence: simple, hidden, extended, triple, quadruple, convergence, as well as divergences of A, B and C classes. A universal indicator for their search and display on the chart is developed.
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.
While I was try to use the indicator that uses a Divergence indicator which uses this indicator for getting oscillator data I came across these lines of indicator handles
My expectation was these lines would look like this:
Can you help me clarify this doubt. How to use the indicator on a Multi-Symbol EA