double EMA_HL[]; double HL[];
You do not size these arrays
GumRai:
You do not size these arrays
I need them to be dynamic arrays. Isn't it the way to declare dynamic arrays?
Plus, I have also tried the following two codes, and even though HL and EMA_HL are plotted, no trace of CHV and CHVMA yet.
#property indicator_buffers 4 ... double CHV[]; double CHVMA[]; double EMA_HL[]; double HL[]; int OnInit() { ... SetIndexBuffer(2,EMA_HL); SetIndexBuffer(3,HL); ... } //----------------- // or also //----------------- int OnCalculate(...) { ... ArrayResize(EMA_HL,rates_total); ArrayResize(HL,rates_total); ... }
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 guys!
I am trying to code the Chaikin Volatility indicator. I know that there is plenty of examples of such an indicator, but my point now is to understand what I am missing and whether I misunderstood how to code in MQL4.
The problem I am encoutering is the following: no data is drawn in the chart window, nothing. And I cannot see where is the problem because the debugger simply says everything is ok (0 errors, 0 warnings).
Please, help me! This is driving me crazy!
Thanks in advances for any comment you will post.
Here my code: