通达信操盘线公式源码
通达信指标公式源码 操盘手指标 主图源码
{山东操盘手主图}MA5:MA(C,5),COLORYELLOW;MA10:MA(CLOSE,10),COLORFF00FF;MA30:MA(C,30),COLORRED,LINETHICK2;跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),CO LORGREEN,LINETHICK2;MA60:MA(CLOSE,60),COLORFFCC66;GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'),COLORWHITE; HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黄金'),COLORYELLOW; XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'启动金三角'),COLORRED;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 ANDGJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 ANDREF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'短线追涨'),COLORFF00FF;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起涨首日'); AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波启前兆');以下是全部条件选股公式部分!请根据需要选择使用!(建议配合本人发布的黑牛均线全部信号选股,合并使用,效果更佳!即“山东操盘手全部信号”AND"黑牛均线全部信号选股",寻找到同时发出信号的股票,分析研究!选股方法:在条件选股中,同时加入这两个条件)白金星星点灯选股公式:(20T 10% 100%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;E:=GJTJ1>60 AND GJTJ4>70;ENTERLONG:A AND B AND E;黄金星星点灯选股公式:(20T 10% 94.05%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; ENTERLONG:A AND B;启动金三角选股公式: (捉中线牛股起涨点)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; ENTERLONG:COUNT(XG,3)=1 AND XG;阶段震仓启动点选股公式:(黄金坑)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;B:=BARSLAST(CROSS(GJTJ4,GJTJ2));D:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;E:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;F:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;ENTERLONG:A AND B AND D AND E AND F;短线追涨选股公式: (高位横盘突破)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;ENTERLONG: D1 OR D2 OR D3;起涨首日选股公式: (精确定位起涨第一日)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(95,GJTJ1))<=2;B:=BARSLAST(CROSS(95,GJTJ2))<=2;E:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;F:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;ENTERLONG:A AND B AND E AND F AND TX;波启前兆选股公式: (波段启动前兆)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=GJTJ3=100;B:=GJTJ4<90;ENTERLONG:COUNT(A,2) = 2 AND B;山东操盘手组合选股(黄金+启动金三角)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);操盘手: M1 OR M2 OR M3;操盘手全部信号选股公式:GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;AQ:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;BQ:=BARSLAST(CROSS(GJTJ4,GJTJ2));DQ:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;EQ:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;FQ:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100; AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;AE:=GJTJ3=100;BE:=GJTJ4<90;操盘手: M1 OR M2 OR M3 OR D1 OR D2 OR D3 OR (AQ AND BQ AND DQ AND EQ AND FQ) OR (AW AND BW AND EWAND FW AND TX) OR (COUNT(AE,2) = 2 AND BE);。
操盘提示通达信指标公式源码
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,CLO SE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOS E,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,OP EN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHI CK;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("I",1)<-100 AND "I">REF("I",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;。
操盘专用系统通达信指标公式源码
参数:显示仪表盘1 0 1 1短线5日:EMA(C,5),COLOR00FF00,LINETHICK1;红升5:IF(短线5日>REF(短线5日,1),短线5日,DRAWNULL),COLORFFFFFF,LINETHICK2; 绿降5:IF(短线5日<REF(短线5日,1),短线5日,DRAWNULL)DOTLINE,COLORFFFFFF,LINETHICK1;短线13日:EMA(C,13),COLOR00FF00,LINETHICK1;升:IF(短线13日>REF(短线13日,1),短线13日,DRAWNULL),COLOR00E8E8,LINETHICK2; 降:IF(短线13日<REF(短线13日,1),短线13日,DRAWNULL)DOTLINE,COLOR00FFFF,LINETHICK1;操作线21日:EMA(C,21),COLOR00FF00,LINETHICK1;红升:IF(操作线21日>REF(操作线21日,1),操作线21日,DRAWNULL),COLOR0000FF,LINETHICK3;绿降:IF(操作线21日<REF(操作线21日,1),操作线21日,DRAWNULL)DOTLINE,COLOR00FF00,LINETHICK3;生命线62日:EMA(C,62),COLORYELLOW,LINETHICK1,NODRAW;红升4:IF(生命线62日>REF(生命线62日,1),生命线62日,DRAWNULL),COLORFF00FF,LINETHICK2;绿降4:IF(生命线62日<REF(生命线62日,1),生命线62日,DRAWNULL),COLORFF00FF,DOTLINE;趋势线半年:EMA(C,120),COLORYELLOW,LINETHICK1,NODRAW;半年红升:IF(趋势线半年>REF(趋势线半年,1),趋势线半年,DRAWNULL)POINTDOT,COLOR0000BF,LINETHICK4;半年绿降:IF(趋势线半年<REF(趋势线半年,1),趋势线半年,DRAWNULL),COLOR0000BF,POINTDOT;年线:EMA(C,250),COLORYELLOW,LINETHICK1,NODRAW;年红升:IF(年线>REF(年线,1),年线,DRAWNULL),COLORFF0000,LINETHICK1;年绿降:IF(年线<REF(年线,1),年线,DRAWNULL),COLORFF0000,DOTLINE,LINETHICK1;R1:=(C+L+H)/3;R2:=EMA(R1,6);R3:=EMA(R2,5);N:=5;M1:=6;M2:=6;M3:=8;R:=IF(DATE<1910612,1,0);EE:=(H+MAX(C,O))/2;EE1:=MA(EE,3);EE2:=(L+MIN(C,O))/2;EE3:=MA(EE2,3);超短线3日:MA(EE,3),COLOR00FF00;红升1:IF(超短线3日>REF(超短线3日,1),超短线3日,DRAWNULL),COLOR8EB3FF,LINETHICK2;绿降1:IF(超短线3日<REF(超短线3日,1),超短线3日,DRAWNULL),COLOR8EB3FF,LINETHICK1,DOTLINE;FF:=(H+L+C+O)/4,COLORWHITE;FF1:=MA(FF,3),COLORGREEN;FF3:=REF((C+O)/2,1)>REF((C+O)/2,2) AND REF(MIN(C,O),1)>REF(MAX(C,O),2);实际乖离:=(MAX(FF,FF1)-MIN(FF,FF1))/MIN(FF,FF1)*100,LINETHICK;FF4:=(((FF1-(REF(FF1,1)-FF1))-L)/L)*100;FF5:=(((EE1+(EE1-REF(EE1,1)))-L)/L)*100;FF6:=FF1-(REF(FF1,1)-FF1);FF7:=EE1+(EE1-REF(EE1,1));期望获利率:=IF(FF3,FF5,FF4),LINETHICK;YY1:=REF(EVERY(C>=O,4),1) AND REF(EVERY((C+O)/2>FF1,4),1) AND (C+O)/2<FF1; YY2:=NOT(YY1) AND (FF1-O)/O*1000>5 AND O<REF(MIN(C,O),1);A:=SMA(L,4,3);B:=SMA(H,4,3);BB:=SMA(MIN(C,O),4,3);BB1:=REF(L,1)-HHV((MAX(REF(L,2),REF(L,1))-MIN(REF(L,2),REF(L,1))),2);BB2:=REF((C+O)/2,1)>REF((C+O)/2,2);BB3:=L<=BB1+BB1*0.01 AND O>REF(O,2) AND O>=REF(L,3) AND COUNT(C>O,7)>3; BB6:=(BB1-L)/L*100;BB7:=(REF(L,1)-BB1)/BB1*100;A1:=(A-L)/L>N/1000 ;A8:=A1;A9:=(REF(H,1)-O)/O*100-(REF(MAX(C,O),2)-REF(MAX(C,O),1))/REF(MAX(C,O),1)*100; A10:=IF(BB2,BB6,A9);BB4:=BB6+A10>2;BB5:=IF(BB2,BB3,BB4) AND 期望获利率>2;D5:=R AND A8 AND BB5;STICKLINE(D5,A*0.995,A*0.992,3,0)COLOR00FFFF;DRAWICON(R AND (REF((D5),1)) AND (L<REF((L/0.995),1)),L*0.97,23); STICKLINE(C>=O,C,O,3.4,0),COLOR0000AA;STICKLINE(C>=O,C,O,3.0,0),COLOR0000BB ;STICKLINE(C>=O,C,O,2.4,0),COLOR0000CC;STICKLINE(C>=O,C,O,2.0,0),COLOR0000DD ;STICKLINE(C>=O,C,O,1.6,0),COLOR0000EE;STICKLINE(C>=O,C,O,1.2,0),COLOR0000FF;STICKLINE(C>=O,C,O,0.6,0),COLOR0000FF;STICKLINE(C>=O,H,L,0,0),COLORRED;STICKLINE(C<=O,C,O,3.4,0),COLORAAAA00;STICKLINE(C<=O,C,O,3.0,0),COLORBBBB00;STICKLINE(C<=O,C,O,2.4,0),COLORCCCC00;STICKLINE(C<=O,C,O,2.0,0),COLORDDDD00;STICKLINE(C<=O,C,O,1.6,0),COLOREEEE00;STICKLINE(C<=O,C,O,1.2,0),COLORFFFF00;STICKLINE(C<=O,C,O,0.6,0),COLORFFFF00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;{===================================================== =}范围高A:=REFDATE(HHV(H,120),DATE)*1.05;范围低A:=REFDATE(LLV(L,120),DATE)*0.95;MA5:=MA(C,5),COLORCYAN,LINETHICK2;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) ORC>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;{=======================仪表盘=========================} 主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 ANDMA72>IF(MA200=DRAWNULL,0,MA200);主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 ANDMA72>IF(MA200=DRAWNULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 ANDMA5>IF(MA200=DRAWNULL,0,MA200);初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 ANDMA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 ANDMA72>MA24 AND MA24>MA5;观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 ANDC>=MA72,MA72<MA200 AND C>=MA200);放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,'观望',0)COLOR00BF00;DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,'主浪回调',0)COLORFF8080; DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,'主浪深调',0)COLOR009500; DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,'底部反弹',0)COLORFFFF00; DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,'探底阶段',0);DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,'观望',0)COLORFFFF00;DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,'放弃',0)COLOR00BF00;引差:=REF(C,1)-LOW,LINETHICK1,NODRAW;引跌幅:IF((REF(C,1)-LOW)/REF(C,1)*100>0,(REF(C,1)-LOW)/REF(C,1)*100,0),LINETHICK1,N ODRAW;三日均跌:MA(引跌幅,3),COLORWHITE,NODRAW;今最高:HIGH,LINETHICK1,COLORRED,NODRAW;今最低:LOW,LINETHICK1,COLORGREEN,NODRAW;Z0T:=C/REF(C,1)>1.097;XH:=FILTER(Z0T,13);BH:=BARSLAST(Z0T);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(Z0T,REF(O,BH),REF(C,BH),5,0),COLORYELLOW;DRAWTEXT(Z0T,L*0.98,'★涨停'),COLORFFFFFF;AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);F:=100*(C-REF(C,1))/REF(C,1);博尔:=IF(C<REF(O,1) AND F<0,1,0);P1:=博尔;量化:=IF(C<REF(O,2) AND F<0,1,0);P2:=量化;STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 ANDREF(P2,1)=1,OPEN,CLOSE,3,0),COLORFF09FF;ME2:=EMA(CLOSE,6);五天:=EXPMA(CLOSE,5),COLORRED;超短线:=EMA(ME2,11),COLORGREEN; LJL07:=(3*C+L+O+H)/6;牛线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4) +15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL0 7,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(L JL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF( LJL07,20))/210,COLORRED;熊线:=MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE; {趋势}赚了:=IF(EMA(CLOSE,3)>超短线,超短线,DRAWNULL),COLORRED;持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,COLORRED,NODRAW;月线:=EMA(持股,30),COLORYELLOW,DOTLINE;双月线:=EMA(持股,60),COLORCYAN,DOTLINE;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI">"DMI.MDI") ANDUPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.460,0.26,0,'DMI 火箭升空'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI"<"DMI.MDI") ANDUPNDAY("DMI.ADXR",1) AND ("DMI.ADX">"DMI.ADXR"),0.460,0.26,0,'DMI 空中炸弹'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI">"DMI.MDI"),0.460,0.21,0,'DMI 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("DMI.PDI"<"DMI.MDI"),0.460,0.21,0,'DMI 空头趋势'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("KDJ.J","KDJ.K"),0.460,0.31,0,'K D J 金叉'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS("KDJ.K","KDJ.J"),0.460,0.31,0,'K D J死叉'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("KDJ.J">"KDJ.K"),0.460,0.36,0,'K D J 多头趋势'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("KDJ.J"<"KDJ.K"),0.460,0.36,0,'K D J 空头趋势'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF">"MACD.DEA") AND "MACD.MACD">0,0.460,0.41,0,'MACD 中线看多'),COLOR8080FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.DIF"<"MACD.DEA") AND "MACD.MACD"<0,0.460,0.41,0,'MACD 中线看空'),COLORGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND("MACD.DIF">"MACD.DEA"),0.460,0.46,0,'MACD 多头趋势'),COLOR8080FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 AND("MACD.DIF"<"MACD.DEA"),0.460,0.46,0,'MACD 空头趋势'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDCROSS("MACD.DIF","MACD.DEA"),0.460,0.51,0,'MACD 金叉'),COLOR8080FF; DRAWTEXT_FIX(CURRBARSCOUNT=1 ANDCROSS("MACD.DEA","MACD.DIF"),0.460,0.51,0,'MACD 死叉'),COLORGREEN;上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 上涨,0.460,0.15,0,'上涨趋势'),COLORFF00FF;短线上涨:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线上涨1:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线上涨OR 短线上涨0 OR 短线上涨1),0.460,0.15,0,'短线上涨'),COLOR8080FF;短线回调:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线回调0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线回调OR 短线回调0),0.460,0.15,0,'短线回调'),COLORYELLOW;短线看空:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线看空0:=CURRBARSCOUNT=1 AND UPNDAY(双月线,1) AND DOWNNDAY(月线,1)AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线空仓:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);短线空仓0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线空仓OR 短线空仓0 OR 短线看空OR 短线看空0),0.460,0.15,0,'短线空仓'),COLORYELLOW;短线震荡:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);短线震荡0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);短线震荡1:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1);注意该股:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线震荡OR 短线震荡0 OR 短线震荡1 OR 注意该股),0.460,0.15,0,'短线震荡'),COLORYELLOW;短线反弹:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND DOWNNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);短线反弹0:=CURRBARSCOUNT=1 AND DOWNNDAY(双月线,1) AND UPNDAY(月线,1) AND UPNDAY(超短线,1) AND UPNDAY(持股,1);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (短线反弹OR 短线反弹0),0.460,0.15,0,'短线反弹'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1 ,0.360,0.09,0,'★---今日操作提示---★')COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.MACD">0) AND(CROSS("MACD.DIF","MACD.DEA") OR CROSS(持股,超短线)) AND UPNDAY(超短线,1),0.55,0.09,0,' 决策:中线全仓买入'),COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ("MACD.MACD"<0) AND(CROSS("MACD.DEA","MACD.DIF") OR CROSS(超短线,持股)) AND DOWNNDAY(超短线,1),0.55,0.09,0,' 决策:中线空仓'),COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.09,0,' 决策:短线空(减) 仓【关注:阴线买、V 转、止跌买信号】'),COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND DOWNNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.09,0,' 决策:短线买入30 %'),COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND UPNDAY(持股,1),0.55,0.09,0,' 决策:短线买入60 %'),COLOR95B8FF;DRAWTEXT_FIX(CURRBARSCOUNT=1 AND UPNDAY(超短线,1) AND DOWNNDAY(持股,1),0.55,0.09,0,' 决策:短线震荡看看再说【关注:阴线买信号】'),COLOR95B8FF;DRAWICON(CROSS(MA(C,3),C),H,15);DRAWTEXT_FIX(ISLASTBAR,0.1,0.05,0,HYBLOCK)COLOR80FFFF;DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,DYBLOCK)COLOR80FFFF;DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK)COLOR80FFFF;DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK)COLOR80FFFF;DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK)COLOR80FFFF;止损:=REF(HHV(H,13),1)*0.95,COLORGRAY,DOTLINE;STICKLINE(CURRBARSCOUNT=1,止损,止损,40,-1),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1,止损*0.995,'破止损'),COLORFFFF00;MAA10:=MA(CLOSE,10),COLORYELLOW,LINETHICK0;MAA54:=MA(CLOSE,54),COLORFFCCCC,LINETHICK0;PL1:=(((CLOSE - MAA54) / MAA54) < 0.1);PL2:=(((CLOSE - MAA10) / MAA10) < 0.3); 偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);突破加仓:=((((偏离率= 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率= 0.2),10) = 10),1) = 1)) * 1);DRAWTEXT(突破加仓,L,'----------突破加仓'),COLORFFFFFF;。
通达信指标公式源码 操盘王 主图 源码
{黄金分割操盘王}{N 3 30 10}{M 1 999 150}买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(H,M),DATE),REFDATE(LLV(L,M),DATE),5,0), COLOR600020;STICKLINE(买线<卖线,REFDATE(HHV(H,M),DATE),REFDATE(LLV(L,M),DATE),5,0), COLOR404050; DRAWKLINE(H,O,L,C);M5:MA(CLOSE,5);M10:MA(CLOSE,10);M20:MA(CLOSE,20);M30:MA(CLOSE,30);M60:MA(CLOSE,60);M120:MA(CLOSE,120);M250:MA(CLOSE,250);{黄金分割线}顶1:=REFDATE(HHV(H,M),DATE);底1:=REFDATE(LLV(L,M),DATE);H1:=顶1-(顶1-底1)*0.191;H2:=顶1-(顶1-底1)*0.382;H3:=顶1-(顶1-底1)*0.5;H4:=顶1-(顶1-底1)*0.618;H5:=顶1-(顶1-底1)*0.809;顶部:REFDATE(顶1,DATE),COLOR666666;%19.8:REFDATE(H1,DATE),COLOR666666;%38.2:REFDATE(H2,DATE),COLOR666666;%50:REFDATE(H3,DATE),COLOR666666;%61.8:REFDATE(H4,DATE),COLOR666666;%80.9:REFDATE(H5,DATE),COLOR666666;底部:REFDATE(底1,DATE),COLOR666666;DRAWTEXT(ISLASTBAR,顶部,' 顶部'),COLORGREEN;DRAWTEXT(ISLASTBAR,%19.8,' 19.8%'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,%38.2,' 38.2%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%50,' 50%'),COLORWHITE;DRAWTEXT(ISLASTBAR,%61.8,' 61.8%'),COLORYELLOW; DRAWTEXT(ISLASTBAR,%80.9,' 80.9%'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,底部,' 底部'),COLORRED;{箱体}{箱顶:PEAK(CLOSE,N,1)*0.98,POINTDOT,LINETHICK3,COLORYELLOW; 箱底:TROUGH(CLOSE,N,1)*1.02,POINTDOT,LINETHICK3,COLORFFFF00; 箱高:100*(箱顶-箱底)/箱底,NODRAW;}{买卖标志}DRAWICON(CROSS(买线,卖线),LOW*0.99,1);DRAWICON(CROSS(卖线,买线),HIGH*1.01,2);{BS标志}DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7); DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2))AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);。
通达信完美操盘主图指标公式明阳程序化
通达信完美操盘主图指标公式明阳程序化完美操盘:如图,该主图标明顶底,仓位,以及趋势多空带,另外还指示买入和卖出。
公式源码:1.回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);2.经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;3.经典K:=SMA(经典RL,3,1);4.经典D:=SMA(经典K,3,1);5.经典J:=3*经典K-2*经典D;6.MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));7.MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}8.MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}9.回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));10.上线:=SMA(C,6.5,1);11.一号支撑线:SMA(C,14.5,1);12.上线1:=SMA(C,3,1);13.一号支撑线1:=SMA(C,8,1);14.上线2:=SMA(C,3.5,1);15.DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'压力'),COLOR00FF00;16.BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12) +MA(CLOSE,25))/4;17.UPR:=BBI+3*STD(BBI,13),LINETHICK2;18.DWN:=BBI-3*STD(BBI,13);19.安全:=MA(CLOSE,55),LINETHICK2;20.LC:=REF(CLOSE,1);21.RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;22.DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线1 , HIGH*1.04,'压力线') ,COLORFF9966,LINETHICK2;23.A7:=(2*C+H+L)/4;24.操作:MA(A7,5),COLORBLUE,LINETHICK2;25.操作1:=MA(A7,5)*1.03,LINETHICK2;26.操作2:=MA(A7,5)*0.97,LINETHICK2;27.DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW;28.VAR1:LLV(A7,21);29.VAR2:HHV(A7,30);30.DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>VAR1,LOW *0.98,'见底' ),COLORYELLOW;31.YCX:=操作>=REF(操作,1);32.H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);33.L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);34.DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,'全仓' ),COLORYELLOW;35.SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);36.SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);37.M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;38.M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;39.M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;40.DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/1 3>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;41.D:=MA(CLOSE,89)-MA(CLOSE,10)/3;42.DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;43.RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;44.K:=SMA(RSV,3,1);45.D1:=SMA(K,3,1);46.J:=3*K-2*D1;47.VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}48.VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}49.E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;50.F:=MA(E,3)+0.03;51.G:=MA(E,1);52.DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;53.DRAWICON(CROSS(G,F),LOW*0.9,9),COLORYELLOW;54.DRAWTEXT(CLOSE>OPEN AND H1VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,'主升' ),COLORRED;55.DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;56.DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED;57.DRAWTEXT(CLOSE>OPEN AND 操作>上线 AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;58.DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;59.STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;60.STICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00;61.STICKLINE(CLOSE> REF(CLOSE,1) ANDC>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};62.STICKLINE(CLOSE> REF(CLOSE,1) ANDC>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};63.STICKLINE(CLOSE> REF(CLOSE,1) ANDC>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;64.STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;66.STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;67.STICKLINE(CLOSE=REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;68.STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;69.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;70.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;71.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;72.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;73.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;74.STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;75.STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;76.STICKLINE(C<REF(C,1) ANDC>O,C,O,3,0),COLORFFCC00;77.STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;78.STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;79.STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;81.STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;82.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF;83.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF;84.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;85.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;86.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;87.STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。
通达信指标公式源码 操盘均线 主图源码
网1:=EXPMA(C,5),COLORYELLOW;网2:=EXPMA(网1,2);网3:=EXPMA(网2,2);网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;TJ2A:IF(网1>网3,网1,网3),COLORGREEN;TJ3A:网1,COLORYELLOW,LINETHICK2;{QS}网A:=EXPMA(CLOSE,5),COLORWHITE;网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网B<REF(网B,1),网B,DRAWNULL),COLOR00FF00,LINETHICK3;IF(网B<REF(网A,1),网A,DRAWNULL),COLORWHITE,LINETHICK1;IF(网1<REF(网B,1),网A,DRAWNULL),COLORGREEN,LINETHICK1;{HJ}HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04)); HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08)); HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12)); HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16)); HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20)); HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"}DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"}DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"}日:=50;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;L1:=低1+(高1-低1)*1.191;L2:=低1+(高1-低1)*1.382;L3:=低1+(高1-低1)*1.5;L4:=低1+(高1-低1)*1.618;L5:=低1+(高1-低1)*1.809;短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;支撑50%:REFDATE(H3,DATE),COLORLIGRAY;支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;支撑80.9%:REFDATE(H5,DATE),COLORWHITE;低:REFDATE(低1,DATE),COLORWHITE;阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;阻力150%:REFDATE(L3,DATE),COLORLIGRAY;阻力161.8%:REFDATE(L4,DATE),COLORRED;阻力180.9%:REFDATE(L5,DATE),COLORWHITE;{三线金叉显示钱袋子的源码}DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MACDD:=CROSS(DIFF1,DEA1);均线1:=CROSS(MA(C,5),MA(C,10));量线1:=CROSS(MA(V,5),MA(V,10));DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时金叉显示25号图标};DRAWICON( 均线1 AND 量线1,L-0.20,1);DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.78,0.05,0,'1日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.83,0.05,0,'3日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.88,0.05,0,'5日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.93,0.05,0,'10日'),COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;。
通达信指标公式源码 一个非常有用的操盘主图(操盘主图 四方力道 波段主图 先知主图)
趋势线:MA(C,30),DOTLINE COLORFF00CC;IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;回归斜率线A:EMA(SLOPE(C,21)*20+C,42);回归斜率线B:REF(回归斜率线A,2);IF(回归斜率线A>REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED; IF(回归斜率线A<REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORGREEN;IF(回归斜率线B>REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED; IF(回归斜率线B<REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORGREEN;经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L, 20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线A ANDMAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线A ANDMAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}{回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));}{C>昨C红K柱+C>O红K柱C>昨C红K柱C=昨C是跟白色24线C<昨C蓝K柱+C>O红K柱C<昨C蓝K柱}{STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED; STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;} {STICKLINE(CLOSE> REF(CLOSE,1) ANDC>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;} STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; {STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;}{经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;} DRAWICON(CROSS(经典K,经典D),L*0.96,26);{高亮红}回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;{高亮红}回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),{买};回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2)),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;{中绿} 卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2)),H*1.03,2);经典KDJ卖:IF(CROSS(经典D,经典K),(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;{中绿}; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);{DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,'★买'),COLORYELLOW; }DRAWICON(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,23); VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;AA:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.6 AND (MIN(O,C)-L)/(H-L)>0.6 AND VOL<REF(VOL,1);DRAWTEXT(AA,L*0.99,'揉搓'),COLORRED;C3:=REF(C,1);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;{DRAWTEXT(跌停,H+0.1,'跌停'),COLORGREEN;}涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;{DRAWTEXT(涨停,L-0.1,'板'),COLORYELLOW;}超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;M1:=EMA(EMA(C,21),3);M2:=EMA(EMA(C,34),3);TT2:=CROSS(C,M1)AND CROSS(C,M2);DRAWTEXT(TT2,L*0.96,'阳');四方力道{四方力道}V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);HY1:=REF(EMA(V1,3),1);实时线:MA(CLOSE,1),COLOR006400;神秘线:HY1,COLOR400080;DRAWTEXT(CROSS(CLOSE,HY1),LOW*0.95,'B'),LINETHICK2,COLORYELLOW; DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,'S'),LINETHICK3,COLORWHITE; APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));库存能量:=MA((ZL + SF),2);库存平均:=MA((ZL + SF),5);DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,''),COLORFF00FF,LINETHICK4;{波段主图}工作线:=MA(CLOSE,1);趋势线:MA(CLOSE,18)COLORGREEN,LINETHICK2;强势线:MA(CLOSE,3)COLORRED,LINETHICK2;TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA144:EMA(CLOSE,144),POINTDOT,COLORWHITE;MA318:EMA(C,318);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(工作线,趋势线)AND J<55,LOW,'入')COLORWHITE; DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED; DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF; DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;TT5:=5;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;GET:ZIG(3,TT5)COLORWHITE,LINETHICK3;{先知主图}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);STICKLINE(VAR9>-150,0,VAR9,0.1,0), COLORFF00FF;吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00; STICKLINE(CROSS(吸筹指标,-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,1,0),COLOR0000FF; VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:SMA(VARK3,3,1), COLORRED,LINETHICK2;波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),C OLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:SMA(RSV9,3,1);DK1:K1-REF(K1,1),COLORSTICK;出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'底'),COLORWHITE ; DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'钱'),COLOR33FFCC; DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'买'),COLORRED ; DRAWTEXT(CROSS(吸筹指标,-24),80,'底'),COLORWHITE ;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VARB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARE:=(((VARB + (2 * VARC)) + (3 * VARD)) / 6);VARF:=MA(VARE,3);STICKLINE((CROSS(J,0) AND (VARF <= (0 - 7))),0,88,2,0),COLORBLUE; DRAWICON((CROSS(J,0) AND (VARF <= (0 - 7))),88,9);VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; VARO3:=SMA(SMA(VARO2,3,1),3,1);VARO4:=EMA(VARO3,5);VARO5:=LLV(LOW,26);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;STICKLINE(CROSS(VARO4,10) AND VARO4>10,25,0,1,0),COLORYELLOW; 建仓区: IF((VARO7<10),0,20),LINETHICK3 ,COLORRED;。
操盘提示通达信指标公式源码
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,CLO SE)-LOW)));QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOS E,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,OP EN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHI CK;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("I",1)<-100 AND "I">REF("I",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;。
通达信指标公式源码 轻松操盘 源码
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AM OUNT,20)/HHV(C,20))*100),NODRAW,COLORYELLOW; N:=10;突破:REF(EMA(C,N),1),COLORMAGENTA,LINETHICK1; A1X:(EMA(C,5)-突破)/突破*100,NODRAW;距离:=(C-突破)/突破*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,N),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORMAGENT A,LINETHICK1;休假:IF(A1X<0,REF(EMA(C,N),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LI NETHICK1;STICKLINE(A1X>=0,出击,突破,0,-1)COLORMAGENTA;STICKLINE(A1X<0,休假,突破,0,-1)COLORGREEN;持币:IF(A1X<0,突破,DRAWNULL)COLORGREEN,LINETHICK1;DRAWTEXT(ISLASTBAR AND 出击,出击,' 出击'),COLORMAGENTA;DRAWTEXT(ISLASTBAR AND 休假,休假,' 休假'),COLORGREEN;短顶:HHV(H,20),COLORWHITE;短底:LLV(L,20),COLOR00FF00;长顶:HHV(H,60),COLORRED;长底:LLV(L,60),COLORYELLOW;DRAWKLINE(H,O,L,C);涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;MA5:=MA(C,5);MA18:=MA(CLOSE,18);MA13:=MA(C,13);A:= (3*C+L+O+H)/6;VAR1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14 *REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*RE F(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+R EF(A,20))/210;MTM:=C-REF(C,1);CB:=EMA(VAR1,13);DX:=100*EMA(EMA(MTM,6),6)/EM A(EMA(ABS(MTM),6),6);卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖=1,1),HIGH*1.01,'S'),COLORGREEN;买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.03,'B'),COLOR00DDDD;加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.03,'↖㈩'),COLORWHITE;跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(跟,LOW*0.999,'↖跟'),COLORRED;阳涨幅:=5;阳倍量:=2;单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00BBBB;STICKLINE(CURRBARSCOUNT<100 AND 单阳,O,C,0.8,0),COLOR00FFFF; 高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND {(LLV(L,BARSLAST(单阳))>低不破价OR LLV(L,BARSLAST(单阳))=低不破价)}(LLV(C,BARSLAST(单阳))>低不破价OR LLV(C,BARSLAST(单阳))=低不破价);STICKLINE(单阳不破,低不破价-低不破价*0.002,{低不破价}低不破价-低不破价*0.002,4.1,0),COLORRED;量:V,NODRAW;单阳量:REF(V,BARSLAST(单阳)),NODRAW;单阳后均量:SUM(V,BARSLAST(单阳)-1)/(BARSLAST(单阳)-1),NODRAW;单阳后缩量:单阳后均量<单阳量*0.75,NODRAW;单阳线体:=REF(C-O,BARSLAST(单阳)),NODRAW;小线体:=ABS(C-O)<单阳线体/2.5,NODRAW;小线体严:COUNT(小线体,BARSLAST(单阳)-1)>BARSLAST(单阳)-2,NODRAW;小线体松:COUNT(小线体,BARSLAST(单阳)-1)>BARSLAST(单阳)-3 AND C<REF(C,1)*1.03,NODRAW;两天:=LLV(C,BARSLAST(单阳))>低不破价OR LLV(C,BARSLAST(单阳))=低不破价;一般:=LLV(C,BARSLAST(单阳)-2)>低不破价OR LLV(C,BARSLAST(单阳)-2)=低不破价;一般选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 一般,低不破价,低不破价,2,0),COLOR88FF00;较强:=LLV(C,BARSLAST(单阳)-2)>中不破价OR LLV(C,BARSLAST(单阳)-2)=中不破价;较强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 较强,中不破价,中不破价,2,0),COLOR0088FF;最强:=LLV(C,BARSLAST(单阳)-2)>高不破价OR LLV(C,BARSLAST(单阳)-2)=高不破价;最强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天AND 最强,高不破价,高不破价,2,0),COLOR00FFFF;DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价-低不破价*0.02,'1'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价-低不破价*0.02,'2'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价-低不破价*0.02,'3'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价-低不破价*0.02,'4'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价-低不破价*0.02,'5'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价-低不破价*0.02,'6'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价-低不破价*0.02,'7'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价-低不破价*0.02,'8'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价-低不破价*0.02,'9'),COLOR00BB00;DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价-低不破价*0.02,'10'),COLOR00BB00;ARE4:=MA(C,20); ARE5:=(C>MA(C,5)); ARE6:=(MA(C,5)>MA(C,10)); ARE7:=(C>MA(C,10));ARE8:=(MA(C,5)>MA(C,20)); ARE9:=(C>MA(C,20)); ARE10:=REF(ARE4,1); ARE11:=(ARE4>ARE10);AVX:=(((((IF(ARE5,10,(0-10))+IF(ARE6,10,(0-10)))+IF(ARE7,10,(0-10)))+IF(ARE8,10,(0 -10)))+IF(ARE9,10,(0-10)))+IF(ARE11,10,(0-10)));DSLX:=(C/INDEXC);DSLX1:=MA(DSLX,5); DSLX2:=MA(DSLX,10); VRE1:=MA(V,5); VRE2:=MA(V,10);阻力位:=IF((C>200),(C*1.01),(C*1.07)); 阻力位1:=IF((C<10),(C*1.05),阻力位);止损位:=IF((C>200),(C*0.99),(C*0.93)); 止损位1:=IF((C<10),(C*0.95),止损位);TJTS1:=ISLASTBAR AND C<500; TJTS2:=ISLASTBAR AND C>500;KDAT:=REFDATE(HHV(H,45)/1.01,DATE);{解盘位置}解盘1:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘2:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘3:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 > VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘4:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 <= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘5:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘6:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘7:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘8:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘9:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘10:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘11:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘12:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘13:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘14:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘15:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘16:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2))AND (DSLX < DSLX1)) ,1,0));解盘17:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘18:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘19:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘20:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘21:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 >= VRE2)) ,1,0));解盘22:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 < VRE2)) ,1,0));解盘23:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) ,1,0));解盘24:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) ,1,0));解盘25:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) ,1,0));解盘26:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) ,1,0));解盘文字1:=IF(解盘1=1,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘2=1,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右',IF(解盘3=1,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右',IF(解盘4=1,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右',IF(解盘5=1,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望',IF(解盘6=1,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓',IF(解盘7=1,'该股放量下跌,走势明显偏弱,离场观望',IF(解盘8=1,'该股缩量下跌,走势偏弱,离场观望',IF(解盘9=1,'该股形态良好,强势明显,量能充足,可以继续持有',IF(解盘10=1,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险',IF(解盘11=1,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓',IF(解盘12=1,'该股走势趋弱,量能不足,减持大部分筹码',IF(解盘13=1,'该股形态不佳,注意成交量的变化,但目前不适合参与',IF(解盘14=1,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与',IF(解盘15=1,'该股有走强迹象,但量能不足,趋势不明,不适合操作',IF(解盘17=1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘19=1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌',IF(解盘21=1,'大盘形态走坏,重仓者可以减去大部分仓位',IF(解盘22=1,'大盘缩量调整,注意风险,短线清仓观望',IF(解盘23=1,'大盘走势良好,量能理想,可以继续持有强势股',IF(解盘24=1,'大盘形态良好,但量能稍显不足,随时准备减仓',IF(解盘25=1,'大盘趋势不明,注意成交量变化,目前不适宜进场',IF(解盘26=1,'大盘趋势向下,量能萎缩,不适合进场',DRAWNULL)))))))))))))))))))))));解盘文字2:=IF(解盘16=1,'该股走势太弱,没有参与价值',IF(解盘18=1,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎',IF(解盘20=1,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入',DRAWNULL)));DRAWTEXT(CURRBARSCOUNT=75{位置} AND (解盘1=1 OR 解盘2=1 OR 解盘3=1 OR 解盘4=1 OR 解盘5=1 OR 解盘6=1 OR 解盘7=1 OR解盘8=1 OR 解盘9=1 OR 解盘10=1 OR 解盘11=1 OR 解盘12=1 OR 解盘13=1 OR 解盘14=1 OR 解盘15=1 OR 解盘17=1 OR解盘19=1 OR 解盘21=1 OR 解盘22=1 OR 解盘23=1 OR 解盘24=1 OR 解盘25=1 OR 解盘26=1),(KDAT*0.99),解盘文字1),COLORFEFE00;DRAWTEXT(CURRBARSCOUNT=75{位置} AND (解盘16=1 OR 解盘18=1 OR 解盘20=1),IF(解盘18=1 OR 解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR0000FF;。
通达信五星操盘线主图指标公式
通达信五星操盘线主图指标公式日线锁定:=(PERIOD==5) AND (C>0) AND V>0;引力:=(MA(C,30)+MA(C,72))/2;下轨:=引力*0.73;下轨75:=引力*0.75;下轨71:=引力*0.71;下轨68:=引力*0.68;过滤周期:=1;VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;资金:=EMA(EMA(CLOSE,8),8);资金抬轿:=(资金-REF(资金,1))/REF(资金,1)*1000;有庄控盘:=资金抬轿>0; 无庄控盘:=资金抬轿<=0; 买线:=EMA(C,3);卖线:=EMA(SLOPE(C,22)*20+C,54);BU1:=CROSS(买线,卖线);SEL1:=CROSS(卖线,买线);BU2:=IFF(BU1 AND 有庄控盘,1,IFF(COUNT(BU1 AND 无庄控盘,BARSLAST(SEL1)+1)==1 AND CROSS(资金抬轿,0),1,0));BU:=BU2 AND COUNT(BU2,BARSLAST(SEL1)+1)==1;SEL:=SEL1 AND COUNT(SEL1,BARSLAST(BU)+1)==1;BUNEW:=BU;止损条件:=CLOSE/REF(OPEN,BARSLAST(BU))<(1-7/100) AND COUNT(BU,BARSLAST(BU)+1)==1 AND COUNT(SEL,BARSLAST(BU)+1)==0;SELNEW:=IFF(止损条件AND COUNT(止损条件,BARSLAST(BU)+1)==1,1,IFF(SEL AND COUNT(止损条件,BARSLAST(BU)+1)==0,1,0));重新买入:=COUNT(止损条件,BARSLAST(BUNEW)+1)>=1AND CROSS(C,0.965*REF(O,BARSLAST(BUNEW)));不在同一天1:=((重新买入AND SELNEW)==0); BUNEW2:=((BUNEW AND COUNT(SELNEW,过滤周期)==0) OR 重新买入) AND 不在同一天1;二次止损:=(CLOSE/REF(OPEN,BARSLAST(重新买入))<(1-7/100) AND COUNT(重新买入,BARSLAST(重新买入)+1)==1 AND COUNT(SEL,BARSLAST(重新买入)+1)==0);重新卖出:=(SEL AND COUNT(重新买入,BARSLAST(BUNEW2)+1)==1) OR (二次止损AND SUM(二次止损,0)==1);不在同一天2:=((重新卖出 AND BUNEW2)==0);SELNEW2:=((SELNEW AND COUNT(SELNEW,BARSLAST(BUNEW2)+1)==1) OR 重新卖出) AND 不在同一天2;BUNEW3:=BUNEW2 AND COUNT(BUNEW2,BARSLAST(SELNEW2)+1)==1;SELNEW3:=SELNEW2 AND COUNT(SELNEW2,BARSLAST(BUNEW3)+1)==1;D:=BARSLAST(BUNEW3)+1>=1 AND COUNT(SELNEW3,BARSLAST(BUNEW3)+1)==0;K:=BARSLAST(SELNEW3)+1>=1 AND COUNT(BUNEW3,BARSLAST(SELNEW3)+1)==0;修正部分定位:=IFF(COUNT(SELNEW3,BARSCOUNT(C))==0 AND COUNT(BUNEW3,BARSCOUNT(C))==0,1,0);修正部分累计:=SUM(修正部分定位,1000)+1;精准修正累计:=IFF(修正部分累计==REF(修正部分累计,1) AND REF(修正部分累计,2)<修正部分累计,修正部分累计,0);上市修正B:=修正部分定位 AND CROSS(控盘,0);上市修正S:=修正部分定位AND CROSS(0,控盘) ANDCOUNT(上市修正B,BARSLAST(C>0))>=1;上市D:=COUNT(上市修正B,BARSLAST(上市修正B)+1)==1 AND COUNT(上市修正S,BARSLAST(上市修正B)+1)==0 AND COUNT (SELNEW3,BARSCOUNT(C))==0;上市K:=COUNT(上市修正S,BARSLAST(上市修正S)+1)==1 AND COUNT(上市修正B,BARSLAST(上市修正S)+1)==0 AND COUNT(BUNEW3,BARSCOUNT(C))==0;SSXZBZS:=COUNT(上市修正B,BARSCOUNT(C));SSXZSZS:=COUNT(上市修正S,BARSCOUNT(C));QB:=IFF(修正部分定位,上市修正B,BUNEW3);QS:=IFF(修正部分定位,上市修正S AND (SSXZBZS==SSXZSZS AND SSXZBZS>=0 AND COUNT(SELNEW3,BARSCOUNT(C))==1 AND COUNT(BUNEW3,BARSCOUNT(C))==0)==0, SELNEW3 AND (SSXZBZS==SSXZSZS AND SSXZBZS>=0 AND COUNT(SELNEW3,BARSCOUNT(C))==1 AND COUNT (BUNEW3,BARSCOUNT(C))==0)==0);K补:=(COUNT(上市修正B,BARSLAST(C>0))==0 AND COUNT(QB,BARSLAST(C>0))==0)==0;定位B68:=QB AND COUNT(L<下轨68,10)>=1;定位B71:=QB AND COUNT(L<下轨71,10)>=1;定位B75:=QB AND COUNT(L<下轨75,10)>=1;定位68B:=EXIST(定位B68,BARSLAST(BUNEW)+1) AND 重新买入 AND QB;定位71B:=EXIST(定位B71,BARSLAST(BUNEW)+1) AND 重新买入 AND QB;定位75B:=EXIST(定位B75,BARSLAST(BUNEW)+1) AND 重新买入 AND QB;概率1:=IFF(定位B68,5,IFF(定位B71,4,IFF(定位B75,3,0)));概率2:=IFF(定位68B,5,IFF(定位71B,4,IFF(定位75B,3,0)));概率:=IFF(概率1>0,概率1,概率2);STICKLINE((D AND 日线锁定) OR (上市 D AND 日线锁定),H,L,0.00,0),COLOR0000FF;STICKLINE((D AND 日线锁定) OR (上市 D AND 日线锁定),C,O,3.00,0),COLOR0000FF;STICKLINE((K AND K补 AND 日线锁定) OR (上市K AND 日线锁定),H,L,0.00,0),COLORFFFF00;STICKLINE((K AND K补 AND 日线锁定) OR (上市K AND 日线锁定),C,O,3.00,0),COLORFFFF00;STICKLINE(C==O AND (D OR 上市D) AND 日线锁定,C,C,3,0),COLOR0000FF;STICKLINE(C==O AND (K AND K补) AND 日线锁定,C,C,3,0),COLORFFFF00;绘制多头:=(D AND 日线锁定) OR (上市D AND 日线锁定);绘制空头:=(K AND K补 AND 日线锁定) OR (上市K AND 日线锁定);代修复部分:=绘制多头==0 AND 绘制空头==0;B修:=BARSLAST(QB);S修:=BARSLAST(QS);补充绘制:=IFF(B修<S修 AND 代修复部分,1,IFF(B修>S修 AND 代修复部分,2,0));STICKLINE(日线锁定AND 补充绘制==1,H,L,0.00,0),COLOR0000FF;STICKLINE(日线锁定AND 补充绘制==1,C,O,3.00,0),COLOR0000FF;STICKLINE(日线锁定AND 补充绘制==2,H,L,0.00,0),COLORFFFF00;STICKLINE(日线锁定AND 补充绘制==2,C,O,3,0),COLORFFFF00;DRAWICON(QB AND 日线锁定,LOW,1);DRAWICON(QB AND 日线锁定,LOW*0.995,7);DRAWICON(QS AND 日线锁定,HIGH,2);DRAWICON(QS AND 日线锁定,HIGH*1.005,8);DRAWICON(概率==5 AND 日线锁定,L*0.97,14);DRAWICON(概率==4 AND 日线锁定,L*0.97,13);DRAWICON(概率==3 AND 日线锁定,L*0.97,11);。
操盘助手通达信指标源码公式
抄盘新手福音,感觉还不错,分享给大家,相互交流学习B点建仓S点空仓周K红色持股,周K蓝色持币友人所赠指标,向原创老师致敬!傻瓜是操盘提示,是操盘新手和喜欢做短线者不错的参谋,日K线周K线同时显示,能更好的判断趋势,不容易被日K线迷惑,不易被庄家玩弄!MC:=C#MONTH,NODRAW;MH:=H#MONTH,NODRAW;ML:=L#MONTH,NODRAW;MO1:=IF(DAY<REF(DAY,1),O,DRAWNULL);MO:=HHV(MO1,DAY),NODRAW;STICKLINE(MC>=MO,MH,ML,4,-1)COLOR00009C;STICKLINE(MC<=MO,MH,ML,4,-1),COLOR4F2F4F;{周}周O1:=IF(WEEKDAY<REF(WEEKDAY,1),O,DRAWNULL);周开:HHV(周O1,WEEKDAY)COLORRED,NODRAW;周高:HHV(H,WEEKDAY)COLORYELLOW,NODRAW;周低:LLV(L,WEEKDAY)COLOR32CD32,NODRAW;周收:C#WEEK, COLORFF6EC7,NODRAW;STICKLINE(周收>=周开,周收,周高,4,0)COLOR600060;STICKLINE(周收>=周开,周低,周收,4,0)COLOR00009C;STICKLINE(周收<周开,周收,周高,4,0),COLOR9F3333;STICKLINE(周收<周开,周开,周低,4,0),COLOR9F3333;MA5:MA(C,5),COLORWHITE;MA10:MA(C,13),COLORYELLOW;上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);黄金线A:=A;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 黄金线A>REF(黄金线A,1),VA1*0.97,'B')COLORRED;VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 ANDIF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);DRAWTEXT(VAR3P>90,LOW*0.978,'B')COLORMAGENTA;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'S')COLORGREEN;VAR1:=EMA(EMA(CLOSE,13),13);控盘:= (VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;SS:=有庄控盘AND CROSS(EMA(C,3),EMA(C,5)) AND C>O AND C>REF(C,1) ANDC/REF(C,1)>=1.018OR CROSS(EMA(C,3),EMA(C,12)) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(EMA(C,5),EMA(C,7)) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(EMA(C,3),EMA(C,7)) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA(C,3),EMA(C,12));DRAWICON(SS,LOW*0.978,36);DRAWKLINE(H,O,L,C);AAA:=CONST(HHV(H,90));ABB:=MA(CLOSE,20);ACC:=(CLOSE > MA(CLOSE,5));ADD:=(MA(CLOSE,5) > MA(CLOSE,10));AEE:=(CLOSE > MA(CLOSE,10));AFF:=(MA(CLOSE,5) > MA(CLOSE,20));AGG:=(CLOSE > MA(CLOSE,20));AHH:=REF(ABB,1);AII:=(ABB > AHH);AVX:=(((((IF(ACC,10,(0 - 10)) + IF(ADD,10,(0 - 10))) + IF(AEE,10,(0 - 10)))+ IF(AFF,10,(0 - 10))) + IF(AGG,10,(0 - 10))) + IF(AII,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >=DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX <DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX <DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >=DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >=DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX <DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX <DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >=V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0)); T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0)); T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0)); DRAWTEXT(T1=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORRED ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORRED ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORRED ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORF0F000 ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=80,AAA*0.98 ,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORF0F000 ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORF0F000 ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望'),COLORF0F000 ;DRAWTEXT(T9=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股形态良好,强势明显,量能充足,可以继续持有'),COLORRED ;DRAWTEXT(T10=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'上行趋势不变,强势依然,量能开始转弱,注意风险'),COLORRED ;DRAWTEXT(T11=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓'),COLORFF99FF ;DRAWTEXT(T12=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股走势趋弱,量能不足,减持大部分筹码'),COLOR008FFF ;DRAWTEXT(T13=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股形态不佳,注意成交量的变化,目前不适合参与'),COLORF0F000 ;DRAWTEXT(T14=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'趋势不明,股价偏弱,注意量能变化,目前不宜参与'),COLORF0F000 ;DRAWTEXT(T15=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'有走强迹象,但量能不足,趋势不明,不适合操作'),COLORYELLOW ;DRAWTEXT(T16=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'该股走势太弱,没有参与价值'),COLOR008FFF ;DRAWTEXT(T17=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘理想,有明显走强迹象,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T18=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'如前期经过一轮下跌,最佳买点,前期有过一段涨幅需谨慎'),COLORYELLOW ;DRAWTEXT(T19=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'考虑短线进场,仓位在1/2左右,一旦量能放大,加仓买入'),COLORFF00FF ;DRAWTEXT(T20=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘形态走坏,重仓者可以减去大部分仓位'),COLOR008FFF ;DRAWTEXT(T21=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘缩量调整,注意风险,短线清仓观望'),COLOR008FFF ;DRAWTEXT(T22=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘走势良好,量能理想,可以继续持有强势股'),COLORFF00FF ;DRAWTEXT(T23=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘形态良好,但量能稍显不足,随时准备减仓'),COLORYELLOW ;DRAWTEXT(T24=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘趋势不明,注意成交量变化,目前不适宜进场'),COLORF0F000 ;DRAWTEXT(T25=1 AND CURRBARSCOUNT=80,AAA-(AAA*0.03),'大盘趋势向下,量能萎缩,不适合进场'),COLORF0F000 ;。
通达信指标公式源码大全
通达信指标公式源码大全 Revised by BLUE on the afternoon of December 12,2020.【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5)COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30:MA(CLOSE,30)COLORMAGENTA;均60:MA(CLOSE,60)COLORREDPOINTDOTLINETHICK3;均250:MA(CLOSE,250)COLORBLUELINETHICK2;魔鬼通道上:均30+2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;魔鬼通道下:均30-2*STD(CLOSE,60)COLORYELLOWPOINTDOTLINETHICK2;VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+*REF(A,1)+*REF(A,2)+*REF(A,3)+*REF(A,4))/;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4; YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4; SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*R EF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN)ANDZD>=50;KX2:=(CLOSE<OPEN)ANDZD>=50;KX3:=(CLOSE>=OPEN)ANDZD<50;KX4:=(CLOSE<OPEN)ANDZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,,1),COLOR4440FF;STICKLINE(KX1,O,L,,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,,0),COLOR4440FF;STICKLINE(KX2,C,L,,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,,1),COLORFFFF33;STICKLINE(KX3,O,L,,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,,0),COLORFFFF33;STICKLINE(KX4,C,L,,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0ANDREF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3ANDNOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3ANDSG,0,上攻周期,,0),COLORRED;XG:COUNT(COUNT(上攻周期>3,5)>=3ANDSG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN,;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED,;STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8>VAR4,VAR4,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR8<VAR4,VAR4,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR6>VAR4,VAR4,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6<VAR2,VAR2,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6>VAR8ANDVAR6>VAR2,VAR2,VAR8,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR8<VAR2,VAR2,VAR6,,1),COLORRED,; STICKLINE(VAR4>VAR2ANDVAR6<VAR8ANDVAR8>VAR2,VAR2,VAR6,,1),COLORRED,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6<VAR4,VAR4,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8<VAR4,VAR4,VAR6,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR6>VAR4,VAR4,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6<VAR4,VAR2,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6>VAR8ANDVAR6>VAR4,VAR2,VAR8,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8<VAR2,VAR2,VAR6,,1),COLORGREEN,; STICKLINE(VAR4<VAR2ANDVAR6<VAR8ANDVAR8>VAR2,VAR2,VAR6,,1),COLORGREEN,;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AA A,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+H HV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2, 5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3 ;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR 6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线ANDREF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,,0 ),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,,0),COLOR0 000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,,0),COLOR0000E5;ST ICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,,0 ),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,,0),COLOR858 500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF( T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CL OSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<PANDCROSS(慢线,ELI空)AND慢线<20,90,0); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),,1)/SMA(ABS(CLOSE-LC),,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹ORELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/,COLORRED;平衡线:LLV(SUM(EMA((C+L)/2,2),5)/,4),COLORFF00FF;平台线:LLV(SUM(EMA((C+L)/2,2),5)/,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,,0),COLORFFCCAA;STICKLINE(平衡线<启动线,启动线,平衡线,,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*,13)-EMA((C+L)/2,3)-((C+L)/2)*;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),强弱线,强弱线+,4,0),COLORFFAACC;DRAWTEXT(VAR3>0ANDREF(VAR3,1)=0AND(C+L)/2>MA((C+L)/2,8),强弱线+,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编着:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编着>75,AABB,AABB*,15,1),COLOR0000FF;VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,*(AABB+AABB*/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,,,LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF(牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF(分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81),COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。