麻烦老师把这通达信的指标公式,改成选股和预警公式!谢谢!
LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,...
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;
震仓线:=45,COLORMAGENTA;
震仓线2:=50,COLORGRAY;
逃命线:=80,COLORRED;
抄底线:=20,COLORGREEN;
绝底线:=5,COLORBLUE;
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,4.5,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,2,0),COLORRED;
DRAWTEXT(PP AND HH,1.3,'预'),COLORRED;
DRAWTEXT(PP AND HH,1,'警'),COLORRED;
STICKLINE(REF(PP,1) AND HH,0,3,0.5,0),COLORGREEN;
DRAWICON(REF(PP,1) AND HH,3.3,1);
BB:=REF(PP3,1) AND HH;
STICKLINE(PP3 AND HH,0,0.8,2,0),COLORRED;
STICKLINE(REF(PP3,1) AND HH,0,3,0.5,0),COLORGREEN;
DRAWICON(REF(PP3,1) AND HH,3.3,1);
黄色涨停板:PP,LINETHICK0,COLORYELLOW;
红色预警:PP,LINETHICK0,COLORRED;
绿色买入:PP,LINETHICK0,COLORGREEN; 展开
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;
震仓线:=45,COLORMAGENTA;
震仓线2:=50,COLORGRAY;
逃命线:=80,COLORRED;
抄底线:=20,COLORGREEN;
绝底线:=5,COLORBLUE;
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,4.5,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,2,0),COLORRED;
DRAWTEXT(PP AND HH,1.3,'预'),COLORRED;
DRAWTEXT(PP AND HH,1,'警'),COLORRED;
STICKLINE(REF(PP,1) AND HH,0,3,0.5,0),COLORGREEN;
DRAWICON(REF(PP,1) AND HH,3.3,1);
BB:=REF(PP3,1) AND HH;
STICKLINE(PP3 AND HH,0,0.8,2,0),COLORRED;
STICKLINE(REF(PP3,1) AND HH,0,3,0.5,0),COLORGREEN;
DRAWICON(REF(PP3,1) AND HH,3.3,1);
黄色涨停板:PP,LINETHICK0,COLORYELLOW;
红色预警:PP,LINETHICK0,COLORRED;
绿色买入:PP,LINETHICK0,COLORGREEN; 展开
1个回答
展开全部
{绿线买}
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;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
REF(PP,1) AND HH;
=====================
{黄线买}
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
涨停 AND HH;
=========================
{红色买}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
抄底线:=20;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
PP3 AND HH;
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;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
REF(PP,1) AND HH;
=====================
{黄线买}
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
涨停 AND HH;
=========================
{红色买}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
抄底线:=20;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HH:=COUNT(涨停,13)>=1;
PP3 AND HH;
更多追问追答
追问
这是三个选股条件公式,预警:还是一个选股条件公式,预警?
追答
这分别是三个对应的预警公式。是否还要三个同时出现的预警呢?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询