Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor -
SetIndexBuffer(0,up); ⋮ SetIndexBuffer(5,vol); mov[Bars-1]=0; ⋮ vol[Bars-1]=0;
You've set up your buffers, but they still have no size. They won't until OnCalculate is called. - Why are you setting elements to zero when the default is EMPTY_VALUE?
Sergey Golubev:
Thanks i new from her ;)
William Roeder:
thank you i will test.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor - You've set up your buffers, but they still have no size. They won't until OnCalculate is called.
- Why are you setting elements to zero when the default is EMPTY_VALUE?
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
how fixet? Thank you.
code:
got this code using a program that converts mal4 to mql5, but some adjustments are necessary.