三线至尊主图指标源码_主图操盘指标源码

hacker|
120

文章目录:

通达信主图指标源码,求老师看有没有未来,并帮改成选股和预警公式,谢谢

(1)无未来函数

(2)选股公式如下(买入):

VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));

VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));

DIR1:=ABS(CLOSE-REF(CLOSE,5));

VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);

ER1:=DIR1/VIR1;

CS1:=ER1*(0.8-2/8)+2/8;

CQ1:=CS1*CS1;

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;

CROSS(VAR2,MA(VAR3,6));

主图指标公式源码如何添加

通达信,大智慧可以直接选择主图指标,同花顺不可以,但是可以修改系统默认的主图指标达到添加主图指标的目的

求通达信三线开花的盘中预警公式

哪三条线?说清楚 。我估计你也是看到网上的三线开花主图了。是不是这个主图。附三个选股指标,一并送你:

一、主图指标:

ma20:ma(c,20),colorwhite,linethick2;

ma120:ma(c,120),colorffcccc,linethick2;

ma250:ma(c,250),colorffcc66,linethick2;

乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;

tt1:=cross(ma20,ma120) and cross(ma20,ma250) and vref(v,1);

tt2:=ma20ref(ma20,2) and vref(v,1) and cross(c,ma20);

STICKLINE(TT1,l,l-0.09,4,0),coloryellow;

DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;

STICKLINE(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l,l-0.09,4,0),coloryellow;

DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线开花'),coloryellow;

STICKLINE(tt2,l,l-0.09,4,0),coloryellow;

DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;

STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;

DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;

STICKLINE(ma250=ref(ma250,1) and ma20=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;

DRAWTEXT(ma250=ref(ma250,1) and ma20=ref(ma20,1) and cross(c,ma250),l-0.13,'牛象'),colorffcc66;

STICKLINE(ma120=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and vref(v,1),l,l-0.09,4,0),colorff00ff;

DRAWTEXT(ma120=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and vref(v,1),l-0.13,'买点2'),colorff00ff ;

A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;

A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;

A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;

DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

V1:=c-(a1+ma(c,3))/2;

V2:=c-(a2+ma(c,8))/2;

V3:=c-(a3+ma(c,21))/2;

Va1:=(C+v3-v1+macd);

Va4:=(C+v2-v1+macd);

短线:EMA(Va1,6),linethick2,Coloryellow;

二、下面是三个选股指标:

MA20:=MA(C,20);

MA120:=MA(C,120);

MA250:=MA(C,250);

乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;

买点1:CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND VREF(V,1);

----------------------------------------

MA20:=MA(C,20);

MA120:=MA(C,120);

买点2:MA120=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND VREF(V,1);

========================

MA20:=MA(C,20);

MA120:=MA(C,120);

MA250:=MA(C,250);

并线开花:CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20);

请老师帮把以下的主图指标三线合一编成在主图显示买的信号!

A111:=MA(C,5);

A211:=MA(C,21);

A311:=(A111+A211)/2;

DRAWTEXT(CROSS(A111,A311),LOW*0.99,'买入');

2条大神的评论

  • avatar
    访客 2022-07-16 上午 05:49:40

    LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1

  • avatar
    访客 2022-07-16 上午 02:49:58

    0=ref(ma20,1) and cross(c,ma250),l,l-0.09,4,0),colorffcc66;DRAWTEXT(ma250=ref(ma250,1) and ma20=ref(ma20,1) and cros

发表评论