精選【多空彩帶】套裝副圖選股指標--- 需要直接導入指標文件--指標tn6多空彩帶指標公式,包含多個信號,其中金叉進為必須買入信號,為強介入信號;底金叉信號為股價低位的金叉可小倉位打個底倉;二次金叉信號若股價還在低位可以繼續(xù)買入;指標同時增加了背 思想,也可使用頂底背 的買賣規(guī)則進行操盤;指標不含未來函數,指標不漂移。{副圖指標源碼}--- 需要直接導入指標文件--指標tn6DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DRAWBAND(DIFF,RGB(255,128,192),DEA,RGB(128,255,128));STICKLINE(MACD>=0,MACD,0,2.5,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,2.5,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.5,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.5,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.5,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.0,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.5,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.5,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.5,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK2;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK2;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK2;IF(DIFF>DEA,DEA,DEA),COLORBLUE,LINETHICK2;底金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(底金叉,0,-0.10,6,0),COLORYELLOW;DRAWTEXT(底金叉,-0.05,' 底金叉'),COLORRED;ZBGS1:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));ZBGS2:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(ZBGS1=2,21)=1;STICKLINE(ZBGS2,0,-0.10,6,0),COLORFF00FF;DRAWICON(ZBGS2,DEA*1.04,13) ;DRAWTEXT(ZBGS2,-0.08,' 二次金叉'),COLORYELLOW;ZBGS3:=BARSLAST(REF(CROSS(DIFF,DEA),1));ZBGS4:=REF(CLOSE,ZBGS3+1)>CLOSE AND DIFF>REF(DIFF,ZBGS3+1) AND CROSS(DIFF,DEA);STICKLINE(ZBGS4,0,0.13,6,0),COLORRED;DRAWTEXT(ZBGS4,DEA*1.2,' 底背 '),COLORRED;ZBGS5:=BARSLAST(REF(CROSS(DEA,DIFF),1));ZBGS6:=REF(CLOSE,ZBGS5+1)<CLOSE AND REF(DIFF,ZBGS5+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(ZBGS6,DEA,' 頂背 '),COLORGREEN;ZBGSHJ1:=DIFF<0 AND DEA<0;ZBGSHJ2:=ZBGSHJ1>REF(ZBGSHJ1,1);ZBGSHJ3:=BARSLAST(ZBGSHJ2);ZBGSHJ4:=COUNT(DEA>0 AND DIFF>0,ZBGSHJ3)=0;ZBGSHJ5:=CROSS(DIFF,DEA);{金叉}ZBGSHJ6:=BARSLAST(ZBGSHJ5);ZBGSHJ7:=REF(ZBGSHJ6,ZBGSHJ6+1)+ZBGSHJ6;ZBGSHJ10:=ZBGSHJ5 AND ZBGSHJ7<ZBGSHJ3 AND ZBGSHJ4 AND ZBGSHJ8>REF(ZBGSHJ8,ZBGSHJ7) AND ZBGSHJ9<REF(ZBGSHJ9,ZBGSHJ7) AND MACD>0;DRAWTEXT(ZBGSHJ10,DIFF*0.95,'★金叉進'),COLORYELLOW;連續(xù)強勢:BARSLASTCOUNT(MACD>REF(MACD,1) AND MACD>0)NODRAW;{指標公式合集}強勢回調:BARSLASTCOUNT(MACD<REF(MACD,1) AND MACD>0)NODRAW;{指標公式合集}連續(xù)弱勢:BARSLASTCOUNT(MACD<REF(MACD,1) AND MACD<0)NODRAW;{指標公式合集}連續(xù)反彈:BARSLASTCOUNT(MACD>REF(MACD,1) AND MACD<0)NODRAW;{指標公式合集}公:DRAWNULL,COLORCCCCCC;眾:DRAWNULL,COLORCCCCCC;號:DRAWNULL,COLORCCCCCC;指標公式合集:DRAWNULL,COLORCCCCCC;{副圖指標源碼}--- 需要直接導入指標文件--指標tn6DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);ZBGSHJ1:=DIFF<0 AND DEA<0;ZBGSHJ2:=ZBGSHJ1>REF(ZBGSHJ1,1);ZBGSHJ3:=BARSLAST(ZBGSHJ2);ZBGSHJ4:=COUNT(DEA>0 AND DIFF>0,ZBGSHJ3)=0;ZBGSHJ5:=CROSS(DIFF,DEA);ZBGSHJ6:=BARSLAST(ZBGSHJ5);ZBGSHJ7:=REF(ZBGSHJ6,ZBGSHJ6+1)+ZBGSHJ6;ZBGSHJ10:=ZBGSHJ5 AND ZBGSHJ7<ZBGSHJ3 AND ZBGSHJ4 AND ZBGSHJ8>REF(ZBGSHJ8,ZBGSHJ7) AND ZBGSHJ9<REF(ZBGSHJ9,ZBGSHJ7) AND MACD>0;金叉進:ZBGSHJ10;{公眾號:指標公式合集};
|