macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
38
2024 / 11 / 20
2022-07-04 09:12:44 通达信指标网
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;
原文链接:https://www.tdxzb.com/?id=402
本文版权:如无特别标注,本站文章均为原创。