Use the technical indicators functions to get value,but can't test in history,Please Help。Thank you very much.
Jian Ming Xu:
Don’t try to get data during Oninit. Get the handle then and the data after as the data may not yet be available to the indicator/ea
Hi,
I want to get a value of Moving Average Indicator,I use the technical indicators method to get a value.
I use the way on OnInit() method of ea. it is ok on realtime, but, on history for test is fail,
because the value of the handle is always 10 and the CopyBuffer() method is eror,the error code is 4806.
Please help me,Thank you very much.
Have a good time.

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 want to get a value of Moving Average Indicator,I use the technical indicators method to get a value.
I use the way on OnInit() method of ea. it is ok on realtime, but, on history for test is fail,
because the value of the handle is always 10 and the CopyBuffer() method is eror,the error code is 4806.
Please help me,Thank you very much.
Have a good time.