VV1:=REF(CLOSE,1);
VV2:=SMA(MAX(CLOSE-VV1,0),7,1)/SMA(ABS(CLOSE-VV1),7,1)*100;
VV3:=CROSS(79,VV2);
AAA:=REF(C,5)《REF(O,5)ANDREF(C,4)《REF(O,4)ANDREF(C,3)《REF(O,3);
买点:IF(FILTER((AAAAND(C》O,2))OR(AAAANDC》OANDREF(C,1)《REF(O,1)
ANDREF(C,2)》REF(O,2)),10),1,0),COLORRED;
卖点:IF(VV3,1,0),COLORGREEN;
通达信股票公式之主图指标
短线主图
LOCK:=1;
空:=EMA(CLOSE,5);
均衡:=EMA(空,0),COLORFFFFFF;
持币:HHV(MA(HIGH,3*LOCK),2),LINETHICK2,COLOR00FF00;
持股:LLV(MA(HIGH,3*LOCK),1),LINETHICK2,COLOR0000FF;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL =1.3*MA(VOL,5)ANDCOUNT(VARA =VARBANDVARA -17,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW, 买入
VARC:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),6,1))*100;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=(SMA(MAX(VAR1-VAR2,0),10,1))/(SMA(ABS(VAR1-VAR2),10,1))*100;
VAR4:=FILTER(IF((COUNT(VAR3 20,5)) =1AND(COUNT(VAR1=LLV(VAR1,10),10)) =1ANDCLOSE =OPEN*1.038ANDVOL MA(VOL,5)*1.2,1,0),5);
VAR5:=FILTER(均衡 REF(均衡,1)AND持币 REF(持币,1)ANDCLOSE REF(CLOSE,1),11);
VAR6:=REF(CLOSE,1);
VAR7:=(SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1))*100;