Plese help, there's warning: 'piv' - expression on global scope not allowed D:\Program Files\KAB-MetaTrader 4 Client Terminal\experts\indicators\中轴线测试.mq4 (18, 18)
matthewpang:
'piv' - expression on global scope not allowed D:\Program Files\KAB-MetaTrader 4 Client Terminal\experts\indicators\中轴线测试.mq4 (18, 18)
I don't know why is that happen,
Could anybody help me, Thanks so much!
==============================================================
the purpose of this indicator, just to draw a povid line for every day, by the last day's data.
but when I operate it, there's no even a single line appear.
and the report is
2013.11.01 22:46:28 RF-GC,Daily: 2 parameter for SetIndexBuffer function must be array:
Doesn't this . . .
IndicatorBuffers(1); SetIndexBuffer(0,piv); SetIndexStyle(0,DRAW_LINE);
. . . belong in init() ?
matthewpang:
if I define the buffer in fcunction init, is that still works in function start?
I didn't say to move the buffer declaration to init() . . . did you try what I suggested ?
if I define the buffer in fcunction init, is that still works in function start?
RaptorUK:
I didn't say to move the buffer declaration to init() . . . did you try what I suggested ?
I didn't say to move the buffer declaration to init() . . . did you try what I suggested ?
Yes, it works, no more warning. But of the result, I cannot see any lines appear...
matthewpang: Yes, it works, no more warning. But of the result, I cannot see any lines appear...
Because everything else you wrote is babble. What is the second parameter to iBars
iBars(NULL,tt+3600*24)
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
I don't know why is that happen,
Could anybody help me, Thanks so much!
==============================================================
the purpose of this indicator, just to draw a povid line for every day, by the last day's data.
but when I operate it, there's no even a single line appear.
and the report is
2013.11.01 22:46:28 RF-GC,Daily: 2 parameter for SetIndexBuffer function must be array: