股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 飞雪多空(源码、主图、贴图)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-10 20:08:46
飞雪多空(源码、主图、贴图)介绍

飞雪多空(源码、主图、贴图)

{飞雪多空,通达信,飞狐专用}

MB:= MA(CLOSE,20);
上轨:= MB+STD(CLOSE,20);
下轨:= MB-STD(CLOSE,20);
上极限:= MB+2*STD(CLOSE,20);
下极限:= MB-2*STD(CLOSE,20);

LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0&&HD>LD,HD,0),12);
DMM:=EMA(IF(LD>0&&LD>HD,LD,0),12);
PDI:= DMP*100/MTR;
MDI:= DMM*100/MTR;
ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,2);
ADXR:=EMA(ADX,2);
ADD:=ADX>REF(ADX,1) AND REF(ADX,1)<=REF(ADX,2);

TYP:=(HIGH+LOW+CLOSE)/3;
CCI14:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORWHITE;
CCI80:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70));

RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;

BBI1:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
BBI2:(MA(C,14)+MA(C,25)+MA(C,60)+MA(C,140))/4;
BB:(BBI1+BBI2)/2,LINETHICK2,COLORMAGENTA;
MA25:MA(C,25),CIRCLEDOT,LINETHICK2,COLORFF99CC;
EMA3:EMA(C,3),COLOR0066FF;

TBB2:=BARSLAST(BB>REF(BB,1) AND REF(BB,1)<=REF(BB,2));
TBB:=BARSLAST(BB<REF(BB,1) AND REF(BB,1)>=REF(BB,2));
T253:=BARSLAST(CROSS(EMA3,MA25));
TM3D:=EMA3<REF(EMA3,1) AND REF(EMA3,1)>=REF(EMA3,2);

底:=REF(BB,TBB)/LLV(L,TBB)>1.10 AND HHV(MDI,TBB)>=40 AND HHV(ADX,TBB)>=50 AND LLV(J,BARSLAST(CROSS(K,J)))<=0 AND CROSS(J,K);
DRAWTEXT(底,L*0.98,'【★】'),COLORYELLOW;

出:=HHV(H,TBB2)>REF(BB,TBB2)*1.10 AND HHV(H,T253)>=上极限*0.98 AND HHV(J,BARSLAST(CROSS(J,K)))>=85 AND HHV(PDI,T253)>=35 AND CROSS(K,J);
DRAWICON(出,H*1.01,2);
DRAWTEXT(RSI1>80 AND PDI>40 AND ADX>50 AND COUNT(J>85,3)>=1 AND CCI80<REF(CCI80,1),H*1.05,'【逃】');
DRAWTEXT(RSI1>70 AND PDI>35 AND ADX>50 AND J>85 AND CCI14<REF(CCI14,1),H*1.03,'▼'),COLORGREEN;

{=======================================================================================================================================}

底成:=COUNT(MDI>=40 AND ADX>=50 AND CCI14<-150,TBB)>=1 AND HHV(BB,TBB)/LLV(L,TBB)>1.10;
DRAWTEXT(底成 AND CROSS(C,BBI1),L*0.98,'【底成】'),COLORRED;
PP:=(PDI>MDI AND ADD AND PDI<30) OR CROSS(PDI,MDI);
追:=(BBI1-BBI2)/BBI2*100<=3 AND BBI1>REF(BBI1,1) AND BB>REF(BB,1) AND BBI2>=REF(BBI2,1)*0.99
AND HHV(MDI,TM3D)>20 AND PP AND J<85;
DRAWTEXT(追,L*0.98,'【追】'),COLORRED;
{=======================================================================================================================================}
坑:DRAWTEXT(MDI>35 AND HHV(PDI,T253)>=30 AND HHV(BB,TBB)/L>1.10 AND J<10,L*0.99,'【坑】');
 


 






gd14839

回复

举报

QQ|

GMT+8, 2024-12-26 12:35

快速回复 返回顶部 返回列表