以下是通达信操盘提示主图公式
通达信操盘提示主图公式
源码
A1:=MAX(MAX(MA(C,5),MA(C,10)),MA(C,20));
A2:=MIN(MIN(MA(C,5),MA(C,10)),MA(C,20));
DRAWTEXT(H>REF(O,3)*1.19,H,’小心’),COLORGREEN;
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
AA:=CROSS(VAR2,-100);
BB:=BARSLAST(AA)+2;
DRAWICON(AA ,L*0.99,1);
DRAWTEXT(AA ,REF(L,2),’……………………………….止损’);
XG2:=CROSS(C,MA(CLOSE,120));
DRAWICON(XG2,H*0.96,14);
XXS:=MA(HIGH,5)*(1+5/100);
DRAWTEXT(CROSS(XXS,C),H*1.02,’开盘逃’),COLORYELLOW;
LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);
FF:=EMA(CLOSE,2);MA15:=EMA(CLOSE,26);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.999),’中继’),COLORA6E500;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.0),’逃顶‘),COLOR1880FF;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
RSIW:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
DRAWICON(CROSS(RSIW,11) ,L*0.99,11);
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(C,30);
五日乖离率:=(C-MA5)/MA5*100;
BB05:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
SSR:=(C-MA30)/MA30*100,NODRAW;
加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA5>REF(MA5,1) AND SSR>REF(SSR,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
DRAWTEXT(加仓 ,LOW*0.995,’◆小心诱多’),COLORYELLOW;
XXS1:=MA(HIGH,5)*(1+5/100);
DDDD:=CROSS(C,XXS1);
DRAWTEXT(DDDD,HIGH*1.02,’明走’),COLORYELLOW;
K:=(C+H+L)/3;
D:=MA(K,4);
DRAWTEXT(REF(C,1)>D AND C<D AND D>REF(D,1),H*1.01, ‘←卖出’),COLORYELLOW;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
VARA00:=((AMOUNT)/(VOL))/(100);
VARAB00:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARAC00:=((SUM(AMOUNT,7))/(VARA00))/(100);
VARD0:=DMA(VARAB00,(VOL)/(VARAC00));
VARDE0:=((CLOSE-VARD0)/(VARD0))*(100);
VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,’卖出’),LINETHICK4,COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;
多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡线*0.99,’↖主力拉升’),COLOR00FF00;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
EMA13:=EMA(C,13);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
DRAWTEXT(AR6,L*1.0,’持股待涨’),COLORFF00FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);
DRAWTEXT(FR,L*1.0,’梅开二度’),COLORWHITE;
GR1:=BARSLAST(BETWEEN(“BIAS.BIAS2″(6,13,24),0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GR5:=”MACD.MACD”(12,26,9)<REF(“MACD.MACD”(12,26,9),1);
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS
(C,EMA55);
DRAWTEXT(HR2 AND FILTER(HR2,10),L*1.0,’三线齐升’),COLORFFC8FF;
A:=BARSCOUNT(C)+54;
时窗:=A/13=FLOOR(A/13);
DRAWTEXT(时窗,L*0.996,’变盘时窗’),COLORWHITE;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
JW:=”KDJ.J”;
DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;
弄点钱玩:=CROSS(JW,0) AND ((DDX>0 AND DDY>0) OR DDZ>400);
A2W:=”MACD.MACD”(26,12,9);
A1W:=C/REF(C,1)<1.099 AND A2W>REF(A2W,1) ;
A3:=COUNT(DDX>0.045,10)>2;
弄点钱玩2:=弄点钱玩 AND DDX >0.055 AND DDY>0.07 AND A1W AND A3;
DRAWTEXT(弄点钱玩2>0,L*0.995,’【弄点钱】’),COLORYELLOW;
TJ5:=REF(“CCI.CCI”,1)<-100 AND “CCI.CCI”>REF(“CCI.CCI”,1);
TJ6:=REF(“KDJ.J”(9,3,3),1)<20 AND “KDJ.J”(9,3,3)>REF( “KDJ.J”(9,3,3),1);
TJ7:=REF(“RSI.RSI1”,1)<20 AND “RSI.RSI1”>REF(“RSI.RSI1”,1);
TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);
大底:=CROSS(TJ8,0.5);
DRAWICON(大底,L*0.991,9);
TYP:=(HIGH+LOW+CLOSE)/3;
AAWP:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI2天均线:=MA(AAWP,2);
CCI底部上升:=FILTER(-100>CCI2天均线 AND CCI2天均线>REF(CCI2天均线,1),5);
DRAWTEXT(CCI底部上升,L-0.05,’底部上升’),COLORRED;
CCI高位下降:=FILTER(CCI2天均线>100 AND REF(CCI2天均线,1)>CCI2天均线,5);
DRAWTEXT(CCI高位下降,H+0.2,’高位下降’),COLORGREEN;
评论(0)