九毛八公式指标
公式模块:
INPUT:N(300,0,999999);
DA:=BacKSET(ISLASTBAR,LLVBARS(L,N)+1);
低点:=REVERSE(COUNT(DA,N)=1);{低点位置}
VERTLINE(低点),LINEDOT,Colorwhite;
⒈382:=l*1.382;
⒈618:=l*1.618;
STICKLINE(低点,L,L,40000,0),LINETHICK2,SHIFT50,COLORRED;
STICKLINE(低点,l*1.382,l*1.382,4000,0),LINETHICK,SHIFT50,COLORGRAY;
STICKLINE(低点,l*1.618,l*1.618,4000,0),LINETHICK,SHIFT50,COLORGRAY;
上面是源码,当参数N超过1800,指标就消失了,不知道问题出在哪里,如何解决,非常感谢
INPUT:N(300,0,999999);
nn:=n;
if nn>=datacount then nn:=0;
lp:=LLVBARS(L,nn) ;lp:=lp[datacount];
ct:=barpos=datacount-lp; vertline(ct);
⒈382:=l*1.382;
⒈618:=l*1.618;
STICKLINE(ct,L,L,40000,0),LINETHICK2,SHIFT50,COLORRED;
STICKLINE(ct,l*1.382,l*1.382,4000,0),LINETHICK,SHIFT50,COLORGRAY;
STICKLINE(ct,l*1.618,l*1.618,4000,0),LINETHICK,SHIFT50,COLORGRAY;