下面有效果图,可以先看看效果盘图是不是你想要的公式指标。 如果有公式问题,扫描下方二维码联系我。或 评论区留言一起探讨。 指标如果想转成选股公式的源码,可以看看这里:: N:=15; AA:=EMA(EMA(CLOSE,9),9); 控盘:=(AA-REF(AA,1))/REF(AA,1)*1000; STICKLINE(控盘< 0,控盘,0,1,0),COLORWHITE; A10:=CROSS(控盘,0); 无庄控盘:IF(控盘< 0,控盘,0),COLORWHITE,NODRAW; 开始控盘:IF(A10,5,0),LINETHICK1,COLORCYAN; STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED; 有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW; WAR8:=100*WINNER(CLOSE*0.95); STICKLINE(WAR8>50 AND COST(85)< CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF; 高度控盘:IF(WAR8>50 AND COST(85)< CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW; STICKLINE(控盘< REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00; 主力出货:IF(控盘< REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW; 设值:=(HIGH+LOW+CLOSE)/3; 日均线:=(设值-MA(设值,70))/(0.015*AVEDEV(设值,70))*0.5; 即变线:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)); AX_1:=EMA(CLOSE,12)-EMA(CLOSE,26); AX_2:=EMA(AX_1,9); AX_3:=AX_1>AX_2; AX_4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100; AX_5:=SMA(AX_4,3,1); AX_6:=SMA(AX_5,3,1); AX_7:=AX_5>AX_6; AX_8:=REF(CLOSE,1); AX_9:=SMA(MAX(CLOSE-AX_8,0),9,1)/SMA(ABS(CLOSE-AX_8),9,1)*100; AX_10:=SMA(MAX(CLOSE-AX_8,0),26,1)/SMA(ABS(CLOSE-AX_8),26,1)*100; AX_11:=AX_9>AX_10; AX_12:=SMA(AX_4,3,1); AX_13:=SMA(AX_12,3,1); AX_14:=AX_12>AX_13; AX_15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; AX_16:=CLOSE>AX_15; AX_17:=CLOSE-REF(CLOSE,1); AX_18:=100*EMA(EMA(AX_17,9),9)/EMA(EMA(ABS(AX_17),9),3); AX_19:=100*EMA(EMA(AX_17,26),12)/EMA(EMA(ABS(AX_17),26),12); AX_20:=AX_18>AX_19; AX_21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9); AX_22:=REF(EMA(AX_21,3),1); AX_23:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); AX_24:=IF(CLOSE>OPEN,AX_23*(HIGH-LOW),IF(CLOSE< OPEN,AX_23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-AX_23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-AX_23*(HIGH-LOW),0-VOL/2)); AX_25:=AX_24/20/1.15; AX_26:=AX_25*0.55+REF(AX_25,1)*0.33+REF(AX_25,2)*0.22; AX_27:=EMA(AX_26,8); AX_28:=EMA(AX_26,3); AX_29:=AX_28; AX_30:=VOL; AX_31:=MA(AX_30,5); AX_32:=MA(AX_30,10); AX_33:=AX_31>=AX_32; AX_34:=AX_29>=0; AX_35:=AX_34 AND AX_33; DRAWICON(AX_35,-1.5,1); AX_36:=MA(KDJ.K(54,9,12),5); AX_37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2); AX_38:=EMA(AX_37,9/2); AX_39:=AX_36>=REF(AX_36,1) AND AX_37>=AX_38; DRAWICON(AX_39,-10.5,13); AX_40:=AX_39 OR AX_35; AX_41:=AX_3 AND AX_7 AND AX_11 AND AX_14 AND AX_16 AND AX_20; AX_42:=COST(50)*COST(50)/COST(80); AX_43:=COST(40)*COST(40)/COST(60); AX_44:=AX_43-AX_42; AX_45:=AX_44>0 AND CLOSE>AX_43; AX_46:=AX_44< 0 AND CLOSE>AX_42; AX_47:=AX_45 OR AX_46 OR (AX_45 AND AX_46); AX_48:=AX_47=0 OR (AX_44>0 AND CLOSE>AX_43 AND CLOSE< MA(CLOSE,10)) OR (AX_44< 0 AND CLOSE>AX_42 AND CLOSE< MA(CLOSE,5)); AX_49:=AX_47 AND REF(AX_48,1); AX_50:=AX_48 AND REF(AX_47,1); STICKLINE(AX_47,-5,-8,3,0),COLORRED; STICKLINE(AX_48,-5,-8,3,1),COLORGRAY; STICKLINE(AX_41,-5,-8,3,0),COLORMAGENTA; STICKLINE(即变线>80,-5,-8,4,1),COLORGREEN; STICKLINE(日均线< -80,-5,-8,2,0),COLORBLUE; DRAWICON(AX_47 OR AX_41 AND REF(AX_47 OR AX_41,1)=0 AND AX_40,-5,7); AX_51:=(HIGH+LOW+CLOSE*2)/4; AX_52:=EMA(AX_51,17); AX_53:=STD(AX_51,17); AX_54:=((AX_51-AX_52)/AX_53*100+200)/4; AX_55:=(EMA(AX_54,5)-25)*1.56; AX_56:=EMA(AX_55,2)*1.22; AX_57:=EMA(AX_56,2); STICKLINE(AX_56-AX_57>0,-2,-4,3,0),COLORRED; STICKLINE(AX_56-AX_57< 0,-2,-4,3,0),COLORGREEN; DRAWTEXT_FIX(C>O,0.005,0.92,0,' 众'),COLORWHITE; DRAWTEXT_FIX(C>O,0.01,0.92,0,' 号:代码部 徵'),COLORWHITE; DRAWTEXT_FIX(C>O,0.09,0.92,0,'信:CXH99CXH99'),COLORWHITE; DRAWTEXT_FIX(C>O,0.01,0.75,0,'代编写或想要好指标选股公式模型'),COLORWHITE; DRAWTEXT_FIX(C>O,0.005,0.92,0,'公'),COLORWHITE; STICKLINE(AX_56-AX_57>0 AND REF(AX_56-AX_57< 0,1),-2,-4,3.05,0),COLOR000099; STICKLINE(AX_56-AX_57>0 AND REF(AX_56-AX_57< 0,1),-2,-4,2.2,0),COLOR0000CC; STICKLINE(AX_56-AX_57>0 AND REF(AX_56-AX_57< 0,1),-2,-4,1.5,0),COLORRED; STICKLINE(AX_56-AX_57>0 AND REF(AX_56-AX_57< 0,1),-2,-4,0.5,0),COLORYELLOW; STICKLINE(AX_56-AX_57>0 AND AX_56-AX_57< REF(AX_56-AX_57,1) AND AX_57>110,-2,-4,3,0),COLORLIRED; MB1:=EMA((CLOSE-MA((1.2*CLOSE+HIGH+LOW)/3,20))/MA((1.2*CLOSE+HIGH+LOW)/3,20)*100,3); MB3:=LLV(MB1,25); MB4:=REF(MB3,1); 时针:=MB1; 底撑:=MB4; 动态底部:EMA(IF(L<=LLV(L,99),SMA(ABS(L-REF(L,1)),99,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3) ,COLORBROWN; STICKLINE(动态底部>7 AND 时针< 底撑,0,动态底部,2,1),COLORYELLOW; 盘:=CAPITAL/1000000; 益:=FINANCE(33); 资:=FINANCE(34); 换手:=VOL/CAPITAL; 长阳:=(WINNER(C)-WINNER(O))>=0.15 AND 换手<=0.04; VAR1:=(C-REF(C,1))/REF(C,1); VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); 个股:=EMA(SUM(VAR1,20),5); 大盘:=EMA(SUM(VAR2,20),5); 领涨:=(个股-大盘)>=0;
|