I would like help , im trying to write and indicator in a charting software package called prorealtime, and keep getting an error message when i validate the program.
the error is " a positive integer field is expected with []"
and the code i have writen is
c1= highest[2](high)<highest[9](high)
c2=(low[0-4]<lowest[3](low))
c3=(lowest[4](high)>(lowest[4](low)>lowest[23](low)))
c4=(close[0]>(0.5*(highest[2](high)-lowest[2](low))))
c5=(adx[4]>25)
c6=(highest[5](high)-(lowest[5](low)>1*averagetruerange[19]))
c7=open[0]=close[0]
C8=(lowest[2](low)>lowest[9](low))
c9=(high[0-4]>highest[3](high))
c10=(highest[4](low)<(highest[4](high)<highest[23](high)))
c11=(close[0]<(0.5*(lowest[2](low)+lowest[2](low))))
c12=(adx[4]>25)
c13=(highest[5](high)-(lowest[5](low)>1*averagetruerange[19]))
c14=open[0]=close[0]
// long set up
if c1 THEN
if c2 then
if c3 then
if c4 then
if c5 then
if c6 then
if c7 then
res = 1
endif
endif
endif
endif
endif
endif
endif
//short set up
IF c8 THEN
if c9 then
if c10 then
if c11 then
if c12 then
if c13 then
if c14 then
res = -1
endif
endif
endif
endif
endif
endif
ENDIF
Return res As "signal
any help much appreciated
the error is " a positive integer field is expected with []"
and the code i have writen is
c1= highest[2](high)<highest[9](high)
c2=(low[0-4]<lowest[3](low))
c3=(lowest[4](high)>(lowest[4](low)>lowest[23](low)))
c4=(close[0]>(0.5*(highest[2](high)-lowest[2](low))))
c5=(adx[4]>25)
c6=(highest[5](high)-(lowest[5](low)>1*averagetruerange[19]))
c7=open[0]=close[0]
C8=(lowest[2](low)>lowest[9](low))
c9=(high[0-4]>highest[3](high))
c10=(highest[4](low)<(highest[4](high)<highest[23](high)))
c11=(close[0]<(0.5*(lowest[2](low)+lowest[2](low))))
c12=(adx[4]>25)
c13=(highest[5](high)-(lowest[5](low)>1*averagetruerange[19]))
c14=open[0]=close[0]
// long set up
if c1 THEN
if c2 then
if c3 then
if c4 then
if c5 then
if c6 then
if c7 then
res = 1
endif
endif
endif
endif
endif
endif
endif
//short set up
IF c8 THEN
if c9 then
if c10 then
if c11 then
if c12 then
if c13 then
if c14 then
res = -1
endif
endif
endif
endif
endif
endif
ENDIF
Return res As "signal
any help much appreciated