看顶抄底买卖提示[其他软件公式]
相关标签:
原理解析:
源码:
{买卖提示}
input:N(5,1,50),N1(25,10,200);
DRAWGBK(CLOSE>0,COLORRGB(80,18,18),COLORRGB(1,11,1),1);
A:=(N-HHVBARS(H,N))/N*100;
B:=(N-LLVBARS(L,N))/N*100;
P:=(N1-HHVBARS(H,N1))/N1*100;
Q:=(N1-LLVBARS(L,N1))/N1*100;
短高:=(N-HHVBARS(H,N))/N*80,colorgreen;
短低:=(N-LLVBARS(L,N))/N*80,colorred;
长高:=(N1-HHVBARS(H,N1))/N1*90,colorcyan;
长低:=(N1-LLVBARS(L,N1))/N1*90,colormagenta;
看顶:if(ref(P,1)=ref(A,1) and ref(A,1)=100 and (A and P)<100 and Q<=40 and B<=50 ,100,110),colorgreen,linethick3;
抄底:if(ref(Q,1)=ref(B,1) and ref(B,1)=100 and (B and Q)<100 and P<=40 and A<=50 ,10,0),coloryellow,linethick3;
VERTLINE(b=100 and q=100 and 抄底=10 ),colorwhite,POINTDOT;
VERTLINE(a=100 and p=100 and 看顶=100),color00ff00,POINTDOT;
趋势: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),coloryellow;
启动: IF(CROSS(趋势,3),100,0),colorff00ff,LINETHICK2;AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:= DD,Color0000FF,Linethick2;
跟踪:=10,Color0000FF;
抢反弹:=IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),50,0),{ColorF00FF0}colorred,LINETHICK2;
drawtext((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),60,'弹'),{colorf00ff0}colorred;底部:= IF(1/WINNER(CLOSE)>100 AND ABS((COST(50)-CLOSE)/CLOSE*100)>(100-ABS(((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100+(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100+(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100)/3)),100,0), COLORSTICK,COLORRED; {IF(Var1>5,IF(Var1<100,Var1,Var2-10),0), COLORSTICK;}
大底:=IF(REF(底部,1)>0 AND 底部=0,100,0),STICK, ,COLORRED,linethick3;
drawtext(大底,50.2,'大底'),COLORWHITE,linethick2;
drawtext( IF(CROSS(85, 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)),100,0),96,'逃'), COLORWHITE;
买入:IF(1/WINNER(CLOSE)>100 AND ABS((COST(50)-CLOSE)/CLOSE*100)>50 AND IF(1/WINNER(CLOSE)<REF(1/WINNER(CLOSE),1) AND REF(1/WINNER(CLOSE),1)>REF(1/WINNER(CLOSE),2),120,0),100,0),STICK,COLORRED;
DRAWTEXT(买入>0,90,'买50'), , colorccccff ,linethick2;
买入A:IF(1/WINNER(CLOSE)>100 AND ABS((COST(50)-CLOSE)/CLOSE*100)>30 AND IF(1/WINNER(CLOSE)<REF(1/WINNER(CLOSE),1) AND REF(1/WINNER(CLOSE),1)>REF(1/WINNER(CLOSE),2),120,0),30,0),STICK,COLORRED,linethick2;
DRAWTEXT(买入A>0,25,'买30'), , COLORYELLOW,linethick3;red:=(h+l+c*2)/4;
hys:=llv(l,34);
var3:=hhv(h,34);
B:=EMA((red-hys)/(var3-hys)*100,8);
B1:=EMA(B,5);
波段:ema((red-hys)/(var3-hys)*100,9),colorred,LINETHICK0;
b1:=ema(0.667*ref(波段,1)+0.333*波段,2),colorgreen,LINETHICK0;
FILLRGN(波段>b1,波段,b1),colorred;
FILLRGN(波段<b1,波段,b1),colorgreen;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容