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)
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() ?
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 ?
Yes, it works, no more warning. But of the result, I cannot see any lines appear...
iBars(NULL,tt+3600*24)
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: