以下是通达信一目了然的智能操盘主图指标公式源码
通达信一目了然的智能操盘主图指标公式源码:
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线 =卖线,LOW,HIGH,0.0,1),COLORLIRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,1),COLORLIRED;
STICKLINE(买线 卖线,LOW,HIGH,0.0,1),COLORLIBLUE;
STICKLINE(买线 卖线,CLOSE,OPEN,2,1),COLORLIBLUE;
空:=EMA(CLOSE,5);
动平衡:EMA(空,34),COLORYELLOW,LINETHICK2;
双线持币:HHV(MA(HIGH,3),2),COLORGREEN,LINETHICK2;
单线持股:LLV(MA(HIGH,3),1),COLORRED,LINETHICK2;
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;
DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;
N8:=STRCAT(CON2STR(YEAR,0),'年');
Y8:=STRCAT(CON2STR(MONTH,0),'月');
R8:=STRCAT(CON2STR(DAY,0),'日');
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线 =卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR000055;
STICKLINE(买线 卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR663300;
DRAWNUMBER(ISLASTBAR,C,C),COLORMAGENTA;
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));
SJTJ:=DATE 1590301;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
SJ8:=STRCAT(STRCAT(N8,Y8),R8);
STICKLINE(X2 =X3ANDSJTJ,LOW,HIGH,0,1),COLORRED;
STICKLINE(X2 =X3ANDSJTJ,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(X2 X3ANDSJTJ,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(X2 X3ANDSJTJ,CLOSE,OPEN,3.2,2),COLORCYAN;
STICKLINE(CROSS(X3,X2)ANDSJTJ,OPEN,CLOSE,3.2,0),COLORCYAN;
STICKLINE(CROSS(X2,X3)ANDSJTJ,OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE((CLOSE OPEN)AND(X2 X3)ANDSJTJ,CLOSE,OPEN,3.2,2)COLORCYAN;
STICKLINE((CLOSE OPEN)AND(X2 =X3)ANDSJTJ,CLOSE,OPEN,3.2,2)COLORRED;
STICKLINE((CLOSE OPEN)AND(X2 X3)ANDSJTJ,CLOSE,OPEN,3.2,0)COLORCYAN;
STICKLINE((CLOSE OPEN)AND(X2 =X3)ANDSJTJ,CLOSE,OPEN,3.2,0)COLORRED;
做空:IF(SAR(10,2,20) =H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE;
做多:IF(SAR(10,2,20) =L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
操盘线:=EMA(EMA(EMA(CLOSE,2),2),2);
线:(MA(操盘线,5)),COLORCYAN,LINETHICK2;
IF(趋势线 REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势线 REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
最新价:IF(SJTJ,C,DRAWNULL),LINETHICK0,COLORYELLOW;
DRAWTEXT_FIX(C 0,0.88,0,0,SJ8),COLOR00FFFF;
DRAWBMP(CROSS(VAR2,MA(VAR3,6)),(LOW-(LOW*0.01)),'BUY1');
DRAWBMP(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),'SELL1');
N:=9;M:=13;
KS:=(C-MA(C,N))/MA(C,N)*(-100);
三才線:EMA(MA(KS,3)/5+EMA(C,M),3),colorred;
STICKLINE(C =三才線,C,O,8,0),color3366FF;
STICKLINE(C 三才線,C,O,8,0),colorgreen;
STICKLINE(C =三才線,C,H,2,1),color3366FF;
STICKLINE(C 三才線,O,L,2,1),color3366FF;
STICKLINE(C 三才線,C,H,2,1),colorgreen;
STICKLINE(C 三才線,O,L,2,1),colorgreen;
PARTLINE(三才線,C =三才線),color3366FF;PARTLINE(三才線,C 三才線),colorwhite;
DRAWTEXT(CROSS(C,三才線),L*0.98,'买');
DRAWTEXT(CROSS(三才線,C),H*1.04,'卖');
通达信一目了然的智能操盘主图指标公式截图