macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
16
2024 / 11 / 20
2022-06-08 08:55:24 通达信指标网
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(1,0.74,0.15,1,STRCAT(STRCAT('量能饱和: ',CON2STR(量能饱和,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.74,0.35,1,STRCAT(STRCAT('活跃度比: ',CON2STR(活跃度比,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.74,0.55,1,STRCAT(STRCAT('获利筹码: ',CON2STR(获利筹码,2)),'%')),COLORYELLOW;
DRAWRECTREL(970,340,580,270,RGB(150,10,250));
DRAWRECTREL(970,470,580,540,RGB(150,10,250));
DRAWRECTREL(970,670,580,740,RGB(150,10,250));
DRAWRECTREL(970,340,580+CONST(量能饱和*(970-580)/100),270,RGB(0,100,0));
DRAWRECTREL(970,470,580+CONST(活跃度比*(970-580)/100),540,RGB(0,100,0));
DRAWRECTREL(970,670,580+CONST(获利筹码*(970-580)/100),740,RGB(0,100,0));
DRAWTEXT_FIX(1,0.96,0.01,1,'大盘趋势:'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧∧∧∧'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨∨∨∨'),COLORGREEN;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN;
获利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;
DRAWTEXT_FIX(获利%>=95 AND ISLASTBAR,0.97,0.97,0,' 高危'),COLORRED;
DRAWTEXT_FIX(获利%>=80 AND 获利%<95 AND ISLASTBAR,0.97,0.97,0,' 风险'),COLORYELLOW;
DRAWTEXT_FIX(获利%>=50 AND 获利%<80 AND ISLASTBAR,0.97,0.97,0,' 安全'),COLORGREEN;
DRAWTEXT_FIX(获利%<50 AND ISLASTBAR,0.97,0.97,0,'空头'),COLORBLUE;
筹峰:=((COST(85)+COST(15))/2+COST(50))/2,COLOR9900FF,NODRAW;
成本线:MA(筹峰*0.80,10),COLORFF6600,LINETHICK2,NODRAW;
主力成本:(C-成本线)/成本线*100,LINETHICK1,COLORFFFFFF,NODRAW;
主力线:MA(主力成本,5),COLORFF00FF,NODRAW;
下跌:IF(主力成本<REF(主力成本,1) AND 主力成本<主力线 AND ((主力线<REF(主力线,1) AND MA
(C,5)<REF(MA(C,5),1)) OR MA(C,20)<REF(MA(C,20),1)) AND C<=REF(C,1),主力成本,0),
COLOR00AA00,LINETHICK2,STICK,NODRAW;
震荡:IF((主力成本<REF(主力成本,1) AND 主力线>REF(主力线,1)) OR (主力成本>REF(主力成本,1)
AND 主力线<REF(主力线,1)) OR (主力成本<REF(主力成本,1) AND 主力线<REF(主力线,1)
AND (主力成本>主力线 OR MA(C,5)>REF(MA(C,5),1))) OR (主力线>REF(主力线,1) AND
主力成本>REF(主力成本,1) AND 主力成本<主力线),主力成本,0),COLORFF9900,
LINETHICK2,STICK,NODRAW;
反弹:IF(主力线>REF(主力线,1) AND MA(C,20)<REF(MA(C,20),1) AND (主力成本>主力线 OR
主力成本>REF(主力成本,1)),主力成本,0),COLORFF00AA,LINETHICK2,STICK,NODRAW;
上涨:IF(主力成本>主力线 AND 主力成本>REF(主力成本,1) AND 主力线>REF(主力线,1) AND MA
(C,20)>REF(MA(C,20),1),主力成本,0),COLOR0000FF,LINETHICK2,STICK,NODRAW;
DRAWTEXT_FIX(ISLASTBAR AND 下跌=主力成本,0.97,0.1,0,' 下跌'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR AND 震荡=主力成本 AND REF(下跌,1)=REF(主力成本,1),0.97,0.1,0,
'下跌中震荡'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND 震荡=主力成本 AND REF(上涨,1)=REF(主力成本,1),0.97,0.1,0,
'上涨中震荡'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND 震荡=主力成本 AND REF(震荡,1)=REF(主力成本,1),0.97,0.1,0,
'震荡'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND 反弹=主力成本 AND 震荡!=主力成本,0.97,0.1,0,' 反弹'),
COLORFF00CC;
DRAWTEXT_FIX(ISLASTBAR AND 上涨=主力成本,0.97,0.1,0,' 上涨'),COLOR00FFFF;
原文链接:https://www.tdxzb.com/?id=349
本文版权:如无特别标注,本站文章均为原创。