SB经典主图公式

[复制链接]
查看73 | 回复0 | 2022-7-24 07:33:35 | 显示全部楼层 |阅读模式

{通达信主图原码}
 MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;
 MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;
 MA21:MA(CLOSE,21),LINETHICK1,COLORFF00FF,LINETHICK2;
 MA34:MA(CLOSE,34),LINETHICK1,COLOR00FF00;
 MA55:MA(CLOSE,55),LINETHICK1,COLOR0000FF;
 MA89:MA(CLOSE,89),LINETHICK1,COLORFF0000;
 VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
 VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
BUY:=ZIG(3,10);
SELL:=MA(BUY,2);
DRAWICON(CROSS(BUY,SELL),L-0.1,7);
DRAWICON(CROSS(SELL,BUY),H+0.1,8);
STICKLINE(BUY>SELL AND O>=C,C,O,-1,0),COLORRED;
 STICKLINE(BUY>SELL AND O>=C,L,H,0,0),COLORRED;
STICKLINE(BUY < SELL AND O<=C,O,C,-1,1),COLORCYAN;
 STICKLINE(BUY < SELL AND O<=C,O,L,0,1),COLORCYAN;
 STICKLINE(BUY < SELL AND O<=C,C,H,0,1),COLORCYAN;
 LJB:=1/WINNER(CLOSE);
STICKLINE(LJB >10,L-0.45,L-0.4,-1,1),COLORYELLOW;
平均:=(L+H)/2;
KB:=ZIG(平均,10);
KS:=MA(KB,2);
DRAWICON(CROSS(KB,KS),L-0.2,1);
DRAWICON(CROSS(KS,KB),H+0.2,2);

751311981.png

751311981.png

回复

使用道具 举报

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

本版积分规则