启明互联,平台突破主图公式(通达信公式 主图 源码 测试图)

[复制链接]
查看90 | 回复0 | 2022-6-27 16:17:25 | 显示全部楼层 |阅读模式

 {启明互联}

DG:=1;YLX:=0;ZCX:=0;N:=12;
MA5:MA(CLOSE,5),LINETHICK1,COLORWHITE;
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK1,COLORFF00FF;
MA60:MA(CLOSE,60),LINETHICK1,DOTLINE,COLORGREEN;
MA120:MA(CLOSE,120),LINETHICK1,DOTLINE,COLORGRAY;
MA240:MA(CLOSE,240),LINETHICK1,DOTLINE,COLORBLUE;
 
A1:=REF(C,N)=HHV(C,2*N+1); B1:=FILTER(A1,N); C1:=BACKSET(B1,N+1); HD:=FILTER(C1,N);
A2:=REF(C,N)=LLV(C,2*N+1); B2:=FILTER(A2,N); C2:=BACKSET(B2,N+1); LD:=FILTER(C2,N);
 
UU:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);VV:=UU>REF(UU,1);
 
前期高位:=REF(C,BARSLAST(HD));
前期低位:=REF(C,BARSLAST(LD));
STICKLINE(H AND YLX=1,前期高位,前期高位,5,0),COLORYELLOW;
STICKLINE(L AND ZCX=1,前期低位,前期低位,5,0),COLORGRAY;
 
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),H,L,0,0),COLOR33FFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,3,0),COLOR33CFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2.5,0),COLOR33DFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,2,0),COLOR33EFDD;
STICKLINE(CROSS(C,REF(前期高位,1)) AND (VOL>=REF(V,1)*2 OR VOL>=REF(V,2)*2),C,O,1,0),COLOR33FFDD;
 
前高:REF(C,BARSLAST(VV)),COLORWHITE,LINETHICK2;
顶高:REF(C,BARSLAST(VV))*DG,COLORGRAY,LINETHICK2;
 
PTZQ:=BARSLAST(VV);
PTZF:=(HHV(H,PTZQ)-LLV(L,PTZQ))/LLV(L,PTZQ)*100;
 
DRAWTEXT_FIX(1,0.01,0.04,0,STRCAT(STRCAT('平台周期 ',CON2STR(PTZQ,0)),' 天')),COLORRED;
DRAWTEXT_FIX(1,0.01,0.08,0,STRCAT(STRCAT('平台振幅 ',CON2STR(PTZF,0)),' %')),COLORYELLOW;

 

20211214838222278.png

20211214838222278.png

202112148381056670.png

202112148381056670.png

202112148375378035.rar

2.68 KB, 下载次数: 0

售价: 2 金钱  [记录]  [购买]

202112148375378035.rar

回复

使用道具 举报

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

本版积分规则