「翔博精选指标」慢牛开启主图, 多彩K线主图(通达信公式 主图
2022-02-28原创 编 辑:翔博软件
6.有超短线买卖点提示;也可以用参数开关关闭提示;
公式源码:
三一:HIGH-(HIGH-LOW)*0.333,NODRAW;
二一:HIGH-(HIGH-LOW)*0.5,NODRAW;
三二:HIGH-(HIGH-LOW)*0.666,NODRAW;
实体三一:OPEN+(CLOSE-OPEN)*0.666,NODRAW;
实体腰线:OPEN+(CLOSE-OPEN)*0.5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;
STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;
C_:CONST(CLOSE),POINTDOT,COLORLIRED;
VAR1:=MA(CLOSE,5);
MA5角度:ATAN((VAR1/REF(VAR1,1)-1)*100)*180/3.1416,NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR2:=REF(CLOSE,1);
VAR3:=IF(CLOSE>=1,10000,100000);
VAR4:=1.1*VAR2-49/VAR3;
VAR5:=1.05*VAR2-49/VAR3;
VAR6:=0.9*VAR2+51/VAR3;
VAR7:=0.95*VAR2+51/VAR3;
VAR8:=NAMELIKE(8) OR NAMELIKE(9);
VAR9:=IF(VAR8,CLOSE>=VAR5,CLOSE>=VAR4);
VAR10:=IF(VAR8,CLOSE<=VAR7,CLOSE<=VAR6);
VAR11:=IF(VAR8,HIGH>=VAR5,HIGH>=VAR4);
VAR12:=IF(VAR8,LOW<=VAR7,LOW<=VAR6);
STICKLINE(VAR11,HIGH,MAX(CLOSE,OPEN),0,0),COLORYELLOW;
STICKLINE(VAR12,LOW,MIN(CLOSE,OPEN),0,0),COLORBLUE;
VAR13:=CLOSE>OPEN AND (CLOSE>=VAR5 OR CLOSE>1.05*OPEN-51/VAR3) OR (CLOSE>1000 AND CLOSE>VAR2*1.024);
STICKLINE(VAR13,OPEN,CLOSE,1,0),COLOR0000BB;
VAR14:=CLOSE<OPEN AND (CLOSE<=VAR7 OR CLOSE<0.95*OPEN+49/VAR3) OR (CLOSE>1000 AND CLOSE<VAR2*0.976);
STICKLINE(VAR14,OPEN,CLOSE,1,0),COLORLIGREEN;
STICKLINE(VAR9,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(VAR10,OPEN,CLOSE,1,0),COLORBLUE;
VAR15:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR15,OPEN,CLOSE,0,0),COLORRED;
VAR16:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
STICKLINE(VAR16,OPEN,CLOSE,0,0),COLORGREEN;
VAR17:=PERIOD=5 AND NAMELIKE(53) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);
STICKLINE(VAR17,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;
STICKLINE(VAR13 OR VAR14 OR VAR9 OR VAR10 AND BETWEEN(CLOSE,1,500),LOW+(HIGH-LOW)/2,LOW+(HIGH-LOW)/2,1,0),COLORYELLOW;