北斗星黄金坑副图指标公式[同花顺公式]
相关标签:通达信黄金坑副图指标 、 黄金量柱副图指标公式 、 同花顺黄金分割指标 、 同花顺黄金趋势指标 、 同花顺指标公式大全 、 同花顺主图指标公式 、 同花顺创业板副图指标 、 同花顺黄金分割线公式 、 同花顺黄金量柱公式 、 同花顺大盘副图公式 、 同花顺黄金分割主图 、 同花顺指标公式源码 、 同花顺买卖指标公式 、 同花顺分时指标公式 、 同花顺波主图指标公式 、
原理解析:
源码:
Varr2:=CLOSE-REF(CLOSE,1);Varr3:=IF(CLOSE-REF(CLOSE,1)>=0,Varr2,0);Varr4:=REF(CLOSE,1)-CLOSE;Varr5:=IF(CLOSE-REF(CLOSE,1)<=0,Varr4,0);Varr6:=SUM(Varr3,16)/SUM(Varr5,16);Varr7:=100-100/(1+Varr6);Varr8:=EMA(Varr7,16);Varr9:=EMA(Varr8,6);VarrA:=EMA(Varr8,80);VarrB:=Varr8-VarrA;NX:VarrB,colorwhite;NX1:VarrB,COLORSTICK;JX: (Varr9-VarrA),coloryellow;STICKLINE(JX>=0,(JX-JX*0.05),(JX-JX*0.15),3,0),COLOR0000CC;
Vara1:=REF(CLOSE,1);Vara2:=SMA(MAX(CLOSE-Vara1,0),6,1)/SMA(ABS(CLOSE-Vara1),6,1)*100;Vara3:=EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16);Vara4:=1/WINNER(CLOSE);Vara5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;Vara6:=100-ABS(Vara5);Vara7:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;Vara8:=SMA(Vara7,20,1);Vara9:=SMA(Vara8,15,1);VaraA:=100-3*Vara8+2*Vara9;VaraB:=((EMA(IF(VaraA>REF(VaraA,1),VaraA,VaraA-3),3)-50)*(-1)*2/2+50)/10;VaraC:=EMA(AMOUNT,13)/EMA(VOL,13);VaraD:=(VaraC/REF(VaraC,1)-1)*100;VaraE:=VOL/CAPITAL*100;VaraF:=(HIGH-LOW)/((HIGH+LOW)/2)*100;Vara10:=1.02*(VaraB+VaraF)*2*VaraF*VaraD;Vara11:=VOL/CAPITAL;Vara12:=VOL/700000000;Vara13:=IF(Vara11=0,Vara12,Vara11);Vara14:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vara15:=2.5*MAX(Vara13,Vara14);Vara16:=DMA(CLOSE,Vara15);Vara17:=SMA(20*(Vara16/REF(Vara16,1)-1),2,1);Vara18:=EMA(Vara17,2);Vara19:=0.17;Vara1A:=CLOSE>=REF(CLOSE,1);Vara1B:=VOL/CAPITAL;Vara1C:=VOL/700000000;Vara1D:=IF(Vara1B=0,Vara1C,Vara1B);Vara1E:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vara1F:=2.5*MAX(Vara1D,Vara1E);Vara20:=DMA(CLOSE,Vara1F);Vara21:=SMA(20*(Vara20/REF(Vara20,1)-1),2,1);Vara22:=EMA(Vara21,2);买一: IF(Vara10>180 AND Vara10<200,18,0),STICK ,linethick3,colorred;Vara23:=(VaraB+3*VaraF)*VaraF*VaraD;买二: IF(Vara23>180 AND Vara23<200,18,0),STICK ,linethick3,colorred;Vara24:=0.98*(3*VaraB+VaraF)*VaraF*VaraD;卖一: IF(Vara24>180 AND Vara23<200,15,0),STICK ,linethick3,colorblue ;出: IF(Vara3>1.15 AND Vara3卖二:IF(Vara3>1.1 AND Vara3<1.15 AND Vara3STICKLINE(Vara22>=0.003,-0.05,0.05,1,0),linethick1,colorred;STICKLINE(BETWEEN(Vara22,0.003,-0.003),-0.05,0.05,1,0),linethick1,colorwhite ;STICKLINE(Vara22<=-0.003,-0.05,0.05,1,0),linethick1,colorgreen;Vara31:=HHV(HIGH,24);Vara32:=LLV(LOW,7);Vara33:=EMA((CLOSE-Vara32)/(Vara31-Vara32)*100,5);Vara34:=EMA((CLOSE-Vara32)/(Vara31-Vara32)*100,10);顶:IF(CROSS(Vara34,Vara33) AND Vara33>55,17,0),colorFF9933,linethick2;DRAWTEXT(顶,12,'顶'),COLORFF9933;Varr23:=MA(CLOSE,80)-MA(CLOSE,13)/2;Varr24:=MA((CLOSE-Varr23)/Varr23,2);Varr28:=EMA(Varr24,12)*0.7;Varr29:=EMA(Varr24,1);底将成:IF(LLV(Varr29-Varr28,1)>0,0,-10),color4499FF,linethick2;Varf1:=VOL/CAPITAL*100;Varf2:=LLVBARS(LOW, 50);Varf3:=HHVBARS(HIGH,50);Varf4:=SUM(VOL, Varf3);Varf5:=(CLOSE-REF(OPEN, Varf3))/REF(OPEN, Varf3)*100;Varf6:=Varf4/CAPITAL*100;Varf7:=(CLOSE-REF(OPEN, Varf2))/REF(OPEN, Varf2)*100;Varf8:=MA(CLOSE, 3);Varf9:=REF(CLOSE, 13)*0.772;Varf10:=MIN(Varf8, Varf9);Varf11:=MA(CLOSE, 13);CD:IF((CLOSE-Varf10)/CLOSE<0.030 AND Varf5<(-35) AND SUM(Varf1, 5)/5<1.8,1,0)*20,colorred,linethick2;DRAWTEXT(CD,16,'CD'),colorred;操盘线:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5)*1;主力异动: IF(操盘线<=6,15,0),colorwhite ;北斗星出击: IF(CROSS(操盘线,6),18,0),colorred ;北斗星买点: 北斗星出击,colorred,linethick2 ;DRAWTEXT(北斗星出击,8,'北斗星'),colorred;Var1:=MA(WINNER(CLOSE),9)*100;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易');
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容