DRAW_COLOR_CANDLES is from MQL5 not 4
Rasoul:
Does anybody know how it could possible that a sample code taken from the MQL4 reference (help file) does not compile?
probably because it's a copy paste from MQL5
qjol:
DRAW_COLOR_CANDLES is from MQL5 not 4
probably because it's a copy paste from MQL5
But this is very strange! Just check out the online MQL4 reference, for example, at here:
https://docs.mql4.com/array/arraycopy
it is MQL4 reference that the example has been taked from, right?
Rasoul:
it is MQL4 reference that the example has been taked from, right?
right! so what ? like i said it's a copy paste from MQL5
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 there,
I have installed MT4 Build 646 on my computer. The attached code has been taken from MQL4 help file. The strange thing is that, if you try to compile it with MetaEditor (version: 5.00 build 934 that comes with MT4), the compile will fail with the following error:
'indicator_type1' - invalid property value test.mq4 9 11