
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
Hi, (I apologize in advance if this isn't the right section) so following the SL dev. guidelines have a very simple indicator like this :
and have a standard EA like this :
and :
inside the TestExpert class have a private member of TestSignal class (m_testsignal)
inside the TestSignal class have another private member of TestIndicator class (m_testindicator)
derive TestIndicator class from CiCustom in a standard manner, like those on Trend/Volumes/BillWilliams, don't use the Initialize virtual methods for creation instead use this :
add a method TestIndicator.Update() that call this.GetData(0, items, buffer_index, buffer_target) for every indicator buffer,
so now call m_testsignal.Update() {call m_testindicator.Update()} from EA.Processing(),
What I have see is that GetData/Copybuffer aren't able to get the right data if you have more than one INDICATOR_DATA flagged buffers, they return a bad -1 derived from 4806 for all the INDICATOR_DATA flagged buffers except the first one.
(at this point I realized that maybe you can replicate the same error in a much more simple way...)
Ok it can be solved having just one buffer flagged as INDICATOR_DATA, but I don't think this was the purpose of the standard library, right ?