无意中翻看此公式较适合近期行情,发现原作副图显示不是很准确,小改了一下以便选股,并图示选股方法,公式来源于理想,感谢原创! {主图} LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); HH:=COUNT(涨停,13)>=1; STICKLINE(涨停 AND HH,0,0.8,8,0),COLORYELLOW; DRAWTEXT(涨停 AND HH,1.3,'涨'),COLORYELLOW; DRAWTEXT(涨停 AND HH,1,'停'),COLORYELLOW; AA:=REF(PP,1) AND HH; STICKLINE(PP AND HH,0,0.8,5,0),COLORRED; DRAWTEXT(PP AND HH,1.3,'预'),COLORRED; DRAWTEXT(PP AND HH,1,'警'),COLORRED; STICKLINE(REF(PP,1) AND HH,0,3,8,0),COLORGREEN; DRAWICON(REF(PP,1) AND HH,3.3,1); 黄s涨停板:PP,LINETHICK0,COLORYELLOW; 红色预警:PP,LINETHICK0,COLORRED; 绿色买入:PP,LINETHICK0,COLORGREEN; {副图} LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); HH:=COUNT(涨停,13)>=1;{13天至少1次涨停} 绿买1:=REF(PP,1) AND HH; 绿买2:=REF(PP3,1) AND HH; 绿买:=绿买1 OR 绿买2; 红警:=PP AND HH; STICKLINE(涨停,0,0.6,8,0),COLORYELLOW;{绘制涨停黄柱} STICKLINE(红警,0,0.8,5,0),COLORRED;{绘制预警红柱} STICKLINE(绿买,0,1,3,0),COLORGREEN;{绘制买入绿柱} 黄s涨停板:涨停,LINETHICK0,COLORYELLOW; 红色预警:红警,LINETHICK0,COLORRED; 绿色买入:绿买,LINETHICK0,COLORGREEN; {预警选股} LC:=REF(CLOSE,1); 操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45; 震仓线2:=50; 逃命线:=80; 抄底线:=20; 绝底线:=5; PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ; PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ; PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线; 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); HH:=COUNT(涨停,13)>=1; AA:=REF(PP,1) AND HH; PP AND HH; |
