通达信大盘不妙指标公式
2020/5/14 18:49:06
N:=6;
A:=BARSCOUNT(C);
N1:=IF(A>5,5,A);
N2:=IF(A>15,15,A);
N3:=IF(A>30,30,A);
N4:=IF(A>60,60,A);
N5:=IF(A>120,120,A);
V1:=SUM(AMOUNT,N1);
V2:=SUM(AMOUNT,N2);
V3:=SUM(AMOUNT,N3);
V4:=SUM(AMOUNT,N4);
V5:=SUM(AMOUNT,N5);
VAR1:=SMA((HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100,5,1);
VAR2:=SMA((CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100,5,1);
多头: VAR1,COLORFB8EF0,LINETHICK2;
空头: VAR2,COLOR4E8EF0,LINETHICK2;
生死线: 50, POINTDOT;
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
VAR6:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,9);
VAR7:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,31);
DRAWTEXT(CROSS(VAR6,20) AND VAR6>21,多头,'●买进');
DRAWTEXT(CROSS(VAR6,80) AND VAR6>75,多头,'●卖出');
VAR8:=(2*CLOSE+HIGH+LOW)/4;
VAR9:=LLV(LOW,34);
VAR10:=HHV(HIGH,34);
波: EMA((VAR8-VAR9)/(VAR10-VAR9)*100, 13) ,LINETHICK0;
段: EMA(0.667*REF(波,1)+0.333*波,4) , LINETHICK0;
STICKLINE(CROSS(波,段) AND 波<20,0,20,5,0),COLORRED ,LINETHICK2 ;
STICKLINE(CROSS(段,波) AND 段>60,100,80,5,0),COLORBLUE, LINETHICK2;
DRAWTEXT(CROSS(波,段) AND 波<20,35,'抄底'),COLORBLUE,LINETHICK2;
DRAWTEXT(CROSS(段,波) AND 段>60,65,'逃顶'),COLORBLUE, LINETHICK2;
看 股吧公式 www.k anguba.com
其它股票公式列表