手机端
当前位置:爱约股 > 公式技巧 > 把涨停回马枪副图指标改为预警指标

把涨停回马枪副图指标改为预警指标

请求老师将涨停回马枪指标中出现绿柱子时改为预警指标。下面是源码。都说我发的不全我再发一遍: 均价线:=AMOUNT/V/100; C2:=REF(C,1); 涨停:=IF(REF(C,1)*1.1-C=1; STICKLINE(PP2 AND HH,0,5,3,0),COLORRED; STICKLINE(PP AND HH,0,5,3,0),COLORRED; STICKLINE(PP3 AND HH,0,5,3,0),COLORRED; DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED; DRAWTEXT(PP AND HH,8,'预警'),COLORRED; DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED; A:=SMA(L,4,3) ; 绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN; DRAWICON(A AND REF(PP,1) AND HH,12,1); STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN; DRAWICON(A AND REF(PP3,1) AND HH,12,1);

爱约股解答:

涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);

LC:=REF(CLOSE,1);

操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;

震仓线:=45;

抄底线:=20;

PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;

PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

HH:=COUNT(涨停,13)>=1;

A:=SMA(L,4,3) ;

绿色买入:((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH));

TAG:
分享至:

相关推荐