送一个副图源码 波段买卖

[复制链接]
查看36 | 回复0 | 2022-7-24 06:10:56 | 显示全部楼层 |阅读模式

{大庄 副}
红黄色主力控盘:0,COLORFF00FF;青色立柱出货:0,COLOR00FFFF;
控盘:=(EMA(EMA(C,13),13)-REF(EMA(EMA(C,13),13),1))/REF(EMA(EMA(C,13),13),1)*1000;
 {绿色立柱}
STICKLINE(控盘<0,控盘,0,2.5,0),COLOR009900;
 STICKLINE(控盘<0,控盘,0,1.6,0),COLOR00BB00;
 STICKLINE(控盘<0,控盘,0,0.8,0),COLOR00DD00;
 STICKLINE(控盘<0,控盘,0,0.1,0),COLOR00FF00;
 {粉红}
STICKLINE(控盘>REF(控盘,1)AND 控盘<0,控盘,0,2.5,0),COLOR880088;
 STICKLINE(控盘>REF(控盘,1)AND 控盘<0,控盘,0,1.8,0),COLORBB00BB;
 STICKLINE(控盘>REF(控盘,1)AND 控盘<0,控盘,0,1.9,0),COLORDD00DD;
 STICKLINE(控盘>REF(控盘,1)AND 控盘<0,控盘,0,0.1,0),COLORFF00FF;
无庄控盘:=控盘<0;
 {红色立柱}
STICKLINE(控盘>REF(控盘,1)AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;
 STICKLINE(控盘>REF(控盘,1)AND 控盘>0,控盘,0,1.8,0),COLOR0000CC;
 STICKLINE(控盘>REF(控盘,1)AND 控盘>0,控盘,0,0.8,0),COLOR0000EE;
 STICKLINE(控盘>REF(控盘,1)AND 控盘>0,控盘,0,0.1,0),COLORAA55FF;
有庄控盘:=控盘>REF(控盘,1)AND 控盘>0;
 {青控盘}
     STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2.5,0),COLOR999900;
     STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1.5,0),COLORBBBB00;
     STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,0.5,0),COLORDDDD00;
     STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,0.1,0),COLORFFFF00;
主力出货:=控盘<REF(控盘,1) AND 控盘>0;
 {黄}
STICKLINE(100*WINNER(C*0.95)>50 AND COST(85)<C AND 控盘>0,控盘,0,2.5,0),COLOR338888;
 STICKLINE(100*WINNER(C*0.95)>50 AND COST(85)<C AND 控盘>0,控盘,0,1.5,0),COLOR33AAAA;
 STICKLINE(100*WINNER(C*0.95)>50 AND COST(85)<C AND 控盘>0,控盘,0,0.8,0),COLOR33CCCC;
 STICKLINE(100*WINNER(C*0.95)>50 AND COST(85)<C AND 控盘>0,控盘,0,0.1,0),COLOR33EEEE;
高度控盘: 100*WINNER(C*0.95)>50 AND COST(85)<CLOSE AND 控盘>0,COLORWHITE,LINETHICK2;
控盘B:=FILTER(IF(CROSS(控盘,0),1,0),5);
 {波段买卖原码}
DRAWBAND((EMA(C,8)-EMA(C,55))*10,RGB(255,0,0),EMA((EMA(C,8)-EMA(C,55))*10,3),RGB(0,100,50));
 {股价与均线偏离买卖条件}
R3:=(C-DYNAINFO(11))/DYNAINFO(11)<-0.03;
 R4:=(C-DYNAINFO(11))/DYNAINFO(11)<-0.03;
 R5:=LAST(DYNAINFO(11)>=REF(DYNAINFO(11),1),5,1)AND(C-DYNAINFO(11))/DYNAINFO(11)<0.005;
 R6:=(C-DYNAINFO(11))/DYNAINFO(11)>0.005;
 {控盘买卖条件}
R7:=控盘<REF(控盘,1)AND 控盘>0.5;
 R8:=控盘>0;
 R9:=控盘>REF(控盘,1)AND 控盘<-0.2;
 V1:=控盘>REF(控盘,1)AND 控盘<0 ;
 {波段买卖条件}
V2:=CROSS((EMA(C,8)-EMA(C,55))*10,EMA((EMA(C,8)-EMA(C,55))*10,3))AND(EMA(C,8)-EMA(C,55))*10<-0.3;
 V22:=CROSS((EMA(C,8)-EMA(C,55))*10,EMA((EMA(C,8)-EMA(C,55))*10,3))AND(EMA(C,8)-EMA(C,55))*10<-0.1;
 V3:=CROSS(EMA((EMA(C,8)-EMA(C,55))*10,3),(EMA(C,8)-EMA(C,55))*10);
 V4:=CROSS(EMA((EMA(C,8)-EMA(C,55))*10,3),(EMA(C,8)-EMA(C,55))*10)AND(EMA(C,8)-EMA(C,55))*10>1.618;
 DRAWTEXT((FILTER(R3 AND R9 AND V2,13)),EMA((EMA(C,8)-EMA(C,55))*10,3),'↑买底'),COLORRED;
 DRAWTEXT((FILTER(R4 AND R9 AND V2,13)),EMA((EMA(C,8)-EMA(C,55))*10,3)*1.2,'↑有庄'),COLORWHITE;
 STJ81:=FILTER(R6 AND R7 AND V3,13);
 STJ82:=FILTER(R8 AND V4 ,13);
 STJ83:=STJ81 AND STJ82;
 DRAWTEXT(STJ83,EMA((EMA(C,8)-EMA(C,55))*10,3),'↓卖'),COLOR00FF00;
 DIFF:(EMA(C,8)-EMA(C,55))*10,COLORRED;
 DEA:EMA(DIFF,3),COLORGREEN;
 DRAWTEXT((FILTER(R4 AND R9 AND V2,13)),FILTER((R4 AND R9 AND V2),55),'有庄'),COLORWHITE;
 DRAWTEXT_FIX(1,0.3,0.05,0,'红黄色主力控盘 绿青色立柱出货 粉色返弹'),COLORWHITE;

 

757366705.jpg

757366705.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则