巡阳顶底(通达信公式 副图 源码 测试图)

[复制链接]
查看105 | 回复0 | 2022-6-27 16:21:06 | 显示全部楼层 |阅读模式

 巡阳顶底

{多空预警}
底部信号慎参与:0,COLORRED,NODRAW;
无论盈亏都快跑:0,COLORRED,NODRAW;
LL:=(L+O)/2;
支撑线:=EMA((LL+REF(LL,2)+REF(LL,3))/3,7);
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));
VAR4:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,10,0);
VAR5:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-10,VAR4);
VAR6:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR7:=100-ABS(VAR6);
VAR8:=IF(VAR7<90,VAR7,100);
PJX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
强弱度:PJX,COLORFFFFF0;
分界线:30,COLORRED;
强压线:60,COLOR00FF00;
高压线:69,COLORFF6C00,LINETHICK2;
超跌:-20,COLORYELLOW;
涨幅:=(C-REF(C,1))/REF(C,1)*100;
VAR1A:=IF(PJX>0,PJX,0);
VAR1B:=IF(VAR3>=200 AND VAR2>=150,15,IF(VAR3<=-200 AND VAR2<=-150,-15,VAR5))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR8<100;
VAR1D:=VAR1A<48 AND VAR1B<60 AND VAR8<100;
短线反弹:=VAR1D AND COUNT(VAR1D,30)=1;
短线反弹2:=VAR1C AND COUNT(VAR1C,30)=1;
{DRAWTEXT(VAR1D AND COUNT(VAR1D,30)=1,80,'短线反弹'),COLORFF7B00;
STICKLINE(VAR1D AND COUNT(VAR1D,30)=1,60,80,5,0),COLORFFBE00;}
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,88,'短线高点'),COLORFF62FF;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,60,80,5,0),COLOR0000E9;
VAR2C:=IF(VAR3>=200 AND VAR2>=150,15,IF(VAR3<=-200 AND VAR2<=-150,-15,0))+30;
VAR2E:=VAR1A<48 AND VAR2C<30 AND VAR8<100;
VAR2F:=VAR1A<48 AND VAR2C>30 AND VAR8<100;
{DRAWTEXT(VAR2E AND COUNT(VAR2E,30)=1,50,'短线反弹2'),COLOR333399;
STICKLINE(VAR2E AND COUNT(VAR2E,30)=1,30,50,5,0),COLORFFFF66;}
DRAWTEXT(VAR2F AND COUNT(VAR2F,30)=1,55,'短线高点2'),COLORFFCC66;
STICKLINE(VAR2F AND COUNT(VAR2F,30)=1,30,50,5,0),COLORFFCC66;
VAR3D:=IF(VAR3<=200 AND VAR2<=150,-15,IF(VAR3>=-200 AND VAR2>=-150,15,VAR5));
VAR3E:=VAR3D>0 AND VAR8<100;{分析家 公式网}
VAR3F:=VAR1A<48 AND VAR3D<0 AND VAR8<100;
短线反弹3:=VAR7<90 AND VAR2+VAR3<=0 AND VAR3F AND COUNT(VAR3F,30)=1;
超跌反弹:=COUNT(短线反弹3,3)>=1 AND C>O AND C-O>H-C;
DRAWTEXT(超跌反弹,28,'可能反弹'),COLORYELLOW;
STICKLINE(超跌反弹,20,0,5,0),COLORYELLOW;
DRAWTEXT(VAR3E AND COUNT(VAR3E,30)=1,40,'次日高抛'),COLORFF6000;
STICKLINE(VAR3E AND COUNT(VAR3E,30)=1,60,40,5,0),COLORFF6000;
VAR9:=IF(VAR7<90,40,30);
 
STICKLINE(FILTER(VAR1B=45,5) AND 涨幅>-9.7,-20,-10,5,0),COLORFF00FF;
DRAWTEXT(FILTER(VAR1B=45,5) AND 涨幅>-9.7,0,'次日抄'),COLORFF00FF;
STICKLINE(FILTER(VAR1B=75,5),70,60,5,0),COLOR00FF00;
DRAWTEXT(FILTER(VAR1B=75,5),78,'高压'),COLOR00FF00;
{STICKLINE(PJX<=-19,-25,-20,12,1),COLORRED;}
STICKLINE(COUNT(PJX<=-19,7)>=1 AND CROSS(C,MA(C,6)),PJX,PJX+10,8,1),COLORRED;
DRAWTEXT(COUNT(PJX<=-19,7)>=1 AND CROSS(C,MA(C,6)),PJX+20,'反弹'),COLORYELLOW;
STICKLINE(PJX>=70,85,80,12,0),COLOR00FF00;
{DRAWTEXT(FILTER(VAR5>0,5),30,'★'),COLORYELLOW;}
 
{PARTLINE(VAR9=40 AND VAR2>=0 AND VAR3>=0,多空预警,COLOR0000B5);
PARTLINE(VAR9=40 AND VAR2<=0 AND VAR3<=0,多空预警,COLOR077BF6); }
{IF(VAR9=40 AND VAR2>=0 AND VAR3>=0,多空预警,DRAWNULL),COLORFFFF00,LINETHICK3;
IF(VAR9=40 AND VAR2<=0 AND VAR3<=0,多空预警,DRAWNULL),COLOR077BF6,LINETHICK3;}
 
 
底升:=COUNT(短线反弹 OR 短线反弹2,20)>=1 AND COUNT(H>支撑线,10)>=2 AND CROSS(C,支撑线) AND C>O AND C<MA(C,24);
反转:=COUNT(短线反弹 OR 短线反弹2,20)>=1  AND CROSS(C,支撑线) AND 涨幅>9.975;
DRAWTEXT(底升,28,'底升'),COLORRED;
STICKLINE(底升,20,0,5,0),COLORRED;
DRAWTEXT(反转,33,'反转'),COLORRED;
STICKLINE(反转,25,0,5,1),COLORRED;
 

202111252322270107.png

202111252322270107.png
 

202111252322845442.png

202111252322845442.png
 

2021112523222177668.png

2021112523222177668.png

2021112523214722723.rar

4.46 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

2021112523214722723.rar

回复

使用道具 举报

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

本版积分规则