首页 > 编程语言 >通达信尾盘擒龙主图指标公式源码

通达信尾盘擒龙主图指标公式源码

时间:2024-02-07 09:36:08浏览次数:26  
标签:10 EMA VAR1 通达信 源码 擒龙主图 CLOSE 100 REF

{ 股票指标 }

N:=10;
M1:=11;
M2:=9;
UPPER:(1+M1/100)*ma(CLOSE,N);
LOWER:(1-M2/100)*MA(CLOSE,N);
ene:(UPPER+LOWER)/2;
A1:=crOSS(H,UPPER);
stICKLINE(A1,O,C,3,0),COLORGREEN;
DRAWTEXT(A1,H*1.01,'卖'),COLORGREEN;
X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_2:=EMA(CLOSE,89);
X_3:=EMA(EMA(EMA(HIGH,13),13),13);
X_4:=EMA(EMA(EMA(HIGH,5),5),5);
X_5:=IF(CLOSE>OPEN,CLOSE,OPEN);
X_6:=IF(CLOSE>OPEN,OPEN,CLOSE);
X_7:=LLV(X_5,4);
X_8:=HHV(X_6,4);
X_9:=X_5>=X_7 AND X_6<=X_7 AND X_5>=X_8 AND X_6<=X_8;
X_10:=REF(X_5,1)>=X_7 AND REF(X_6,1)<=X_7 AND REF(X_5,1)>=X_8 AND REF(X_6,1)<=X_8;
X_11:=REF(X_5,2)>=X_7 AND REF(X_6,2)<=X_7 AND REF(X_5,2)>=X_8 AND REF(X_6,2)<=X_8;
X_12:=REF(X_5,3)>=X_7 AND REF(X_6,3)<=X_7 AND REF(X_5,3)>=X_8 AND REF(X_6,3)<=X_8;
X_13:=X_9 AND X_10 AND X_11 AND X_12;
X_14:=REF(X_8,BArslAST(X_13));
X_15:=(REF(OPEN,5)+REF(CLOSE,5))/2;
X_16:=(HIGH+LOW+CLOSE+OPEN)/4;
X_17:=MAX(X_15,MAX(X_16,HHV(HIGH,5)));
X_18:=MIN(X_15,MIN(X_16,LLV(LOW,5)));
X_19:=X_17=X_15;
X_20:=X_19;
X_21:=REF(X_17,BARSLAST(X_20));
X_22:=EMA(CLOSE,5)>EMA(CLOSE,55);
X_23:=EMA(X_22,10);
X_24:=X_22-X_23;
X_25:=X_17>X_21*0.98 AND CLOSE>X_4 AND CLOSE>X_3 AND CLOSE>X_2 AND X_4>=REF(X_4,1);
VAR1:=1;
VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR1;
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR1;
VAR1E:=EMA(VAR1D,30)*VAR1;
VAR1F:=2*(VAR1D-VAR1E)*10*VAR1;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1;
VAR25:=IF(YEAR<9999 AND VAR1F>0.015,VAR20,0)/45*VAR1;
YZ:=VAR25/10,COLORRED;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
ZL:=IF(YEAR<9999 AND VAR28>0.1,VAR29,0)*5/10;
无红持币:=EMA((ZL+YZ),22),COLORYELLOW,LINETHICK1;
渐红持股:=IF(无红持币>REF(无红持币,1),无红持币,DRAWNULL);
XG1:=REF(渐红持股 >0,1)=0 OR REF(X_25,1)=0;
XGZ:=XG1 AND 渐红持股 >0 AND X_25;
AB1:=CLOWER;
AB2:=UPPER>REF(UPPER,1) AND LOWER>REF(LOWER,1);
XG2:=IF(XGZ,1,0) AND C/REF(C,1)-1>0.098 AND C=H AND AB1 AND AB2;
STICKLINE(XG2,O,C,3,0),COLORRED;
DRAWTEXT(XG2,H*1.01,'买'),COLORRED;

 

标签:10,EMA,VAR1,通达信,源码,擒龙主图,CLOSE,100,REF
From: https://www.cnblogs.com/zhibiao/p/18010601

相关文章

  • 通达信狙击牛股通达信副图源码
    {股票指标}VAB0:=531; VAB1:=1510000;VAB2:=VAB0+VAB1;VAB3:=IF(DATE>VAB2,0,1);LC:=REF(CLOSE,1);SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1<REF(X1,1))AND(CLOSE<X1));X31:=IF(((SG<REF(SG,1))ORX30),1,0);操作线:=SMA(MAX(CLO......
  • 通达信短中趋势判断主图指标公式见红就买吧源码
    {股票指标}短中趋势判断通达信主图指标源码A1:=C*2-REF(C,8.5/2);A2:=REF(C,19/3)*2-C;短期对称:=(A1+A2)/2;关键点:=HHV(短期对称,27/2);M1:=L*2-REF(H,27/2);M2:=REF(H,27/2)*2-L;M3:=(M1+M2)/2;中期对称:=FORCAST(M3,21);趋势判断:MA(M3,27*2),COLOR0000FF,N......
  • 通达信抄底不难副图指标公式只要是底部必有信号
    {股票指标}VAR1:=EMA(HHV(HIGH,500),21);VAR2:=EMA(HHV(HIGH,250),21);VAR3:=EMA(HHV(HIGH,90),21);VAR4:=EMA(LLV(LOW,500),21);VAR5:=EMA(LLV(LOW,250),21);VAR6:=EMA(LLV(LOW,90),21);VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/......
  • 通达信主力资金能量柱副图指标公式源码
    {股票指标}M:=55;N:=21;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);VAR1:=IF(YEAR>=2038ANDMONTH>=1,0,1);VAR2:=REF(LOW,1)*VAR1;VAR3:=SMA(ABS(LOW-VAR2),3,1)/SM......
  • 通达信回调抄底源码,一个很不错的抄底指标公式
    {股票指标}{回调抄底}OSC:=100*(CLOSE-MA(CLOSE,20));MAOSC:=EXPMEMA(OSC,6);F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<ref(o,1)and=""f<0,1,0);=""<br="">P2:=IF(C<ref(o,2)and=""f<0,1,0);=""&l......
  • 通达信宝塔线修改主图指标增加了压力支撑线源码
    {股票指标}VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2); VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOS......
  • 通达信战赢资金源码副图
    {股票指标}流通:=AMOUNT/vol;PJJ:=Dma((HIGH+LOW+CLOSE*2)/4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<open,qjj*(high-open+close-low),vol2))+if(close="">OPEN,0-QJJ*(HIG......
  • 通达信猎豹量能 豹子成交量能饱和源码副图
    {股票指标}{豹子成交量能饱和指标}{LCY增加}JE:=AMOUNT;AAA:=IF(CURRBARSCOUNT=1ANDPERIOD=5,JE*240/FROMOPEN,DRAWNULL); 预测额(万元):AAA/10000,NODRAW;STICKLINE(BARSTATUS=2,0,AAA,3.5,1),COLORWHITE;加速:=IF(100*WINNER(CLOSE*0.95)>50ANDCOST(85)   (......
  • 通达信量粉高量看盘主图源码主图
    {股票指标}{板块显示}{参数N=11,M=6}SBL:=STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK);DRAWTEXT_FIX(1,0.00,0,0,'所属板块:')COLORWHITE;DRAWTEXT_FIX(1,0.06,0,0, SBL),COLORGREEN;DRAWTEXT_FIX(1,0.06,0.05,0,FGBLOCK),COLORMAGENTA;DRAWTEXT_FIX(1,0.83,0,0,'......
  • 通达信天地玄黄主图趋势指标公式源码
    {股票指标}黄块(黄K线)就是一个相对的低位,可以关注本指标XMA未来函数源码DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);DRAWTEXT_FIX(1,0.88,5,0,''),COLORRED;HZZ:=1220601;HZ:=IF(DATE<hzz,1,drawnull);<br=""> Z1:=STRCAT(HYBLOCK,'')*HZ; Z2:=S......