通达信理想红买主图

[复制链接]
查看70 | 回复0 | 2022-7-24 06:31:34 | 显示全部楼层 |阅读模式

通达信理想红买主图

{MA5:MA(C,5)LINETHICK3,COLOR00CCFF;}
 MA10:=MA(C,10);
 MA20:=MA(C,20);
 MA30:=MA(C,30);
压力1:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
支撑1:MA(REF(LLV(C,30),1),2),COLORABFF46;

 LC:=REF(CLOSE,1);
 RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;
 {DRAWICON(CROSS(84,RSI) ,H*1.03,5);}
 {DRAWICON(CROSS(RSI,11) ,L*0.99,4);}
 VAR27:=REF(CLOSE,1);
 VAR28:=SMA(MAX(CLOSE-VAR27,0),5.5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;
 {DRAWICON(IF(CROSS(76,VAR28),1,0),H*1.03,5);}
 DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),
 LOW,''),LINETHICK7 , COLORFF00FF;
 VARA:=((AMOUNT)/(VOL))/(100);

 VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
 VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
 VARD:=DMA(VARB,(VOL)/(VARC));
 VARE:=((CLOSE-VARD)/(VARD))*(100);
 VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
 VARJ:=MA(VARE,20)+STD(VARE,20);
 BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
 AA:=SMA(VARF,3,1);
 SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79);
 DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND
 (AA>SS),H*1.02,''),LINETHICK7,COLORGREEN;
 VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
 VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
 STICKLINE(VAR1,C,O,8,0),COLORYELLOW,LINETHICK2;
 STICKLINE(VAR1,C,O,3,0),COLORYELLOW,LINETHICK2;
 STICKLINE(VAR1,H,L,1,0),COLORYELLOW,LINETHICK2;
 STICKLINE(VAR2,C,O,8,0),COLORFF00FF,LINETHICK2;
 STICKLINE(VAR2,C,O,3,0),COLORFF00FF,LINETHICK2;
 STICKLINE(VAR2,H,L,1,0),COLORFF00FF,LINETHICK2;

 A1:=REF(H,8)=HHV(H,2*8+1);
 B1:=FILTER(A1,8);
 C1:=BACKSET(B1,8+1);
 D1:=FILTER(C1,8);{高点}
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);
 DRAWLINE(D1,H,S11,H,1),COLORBLUE;
 A2:=REF(L,8)=LLV(L,2*8+1);
 B2:=FILTER(A2,8);
 C2:=BACKSET(B2,8+1);
 D2:=FILTER(C2,8);{低点}
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);
 DRAWLINE(D2,L,U11,L,1),COLORBLUE;
 M:=INTPART(3*8/5);
 A12:=REF(H,M)=HHV(H,2*M+1);
 B12:=FILTER(A12,M);
 C12:=BACKSET(B12,M+1);
 D12:=FILTER(C12,M);{高点}
R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);
 DRAWLINE(D12,H,S112,H,1),COLORRED;
 A22:=REF(L,M)=LLV(L,2*M+1);
 B22:=FILTER(A22,M);
 C22:=BACKSET(B22,M+1);
 D22:=FILTER(C22,M);{低点}
T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1);
 DRAWLINE(D22,L,U112,L,1),COLORRED;
 {VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
 VAR2222:=CROSS(VAR1111,0.9);
 VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
 VAR4444:=CROSS(VAR3333,0.9);
压力:= REF(HIGH,BARSLAST(VAR2222));
 STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK3;
支撑:= REF(LOW,BARSLAST(VAR4444));
 STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,LINETHICK3;
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
 RRRSV:=SMA(下档线,3,1);
 KKK:=SMA(RRRSV,3,1);}

 PH:=TROUGHBARS(2,5,1);
 LL:=HHV(H,PH);
 TJ5:=LL=HIGH AND LL<REF(LL,1);{//=1}
 TS:=SUMBARS(TJ5,2);
 TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;
 DRAWICON(TJ,HIGH*1.01+0.02,2);
警告灯:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORCYAN;
 PL:=BARSLAST(TJ);
支撑2:IF(BARSLAST(TJ5),
 REF(LOW,BARSLAST(TJ5)),DRAWNULL),COLOREA91B5;
压力2:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;
 TJ_2:=LOW>REF(REF(LOW,TS),PL);
 DRAWTEXT(ISLASTBAR,压力2,'压力2'),COLORYELLOW;
 DRAWTEXT(ISLASTBAR,支撑2,'支撑2'),COLOREA91B5;

82277641.png

82277641.png

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则