大智慧正负电图指标公式

[复制链接]
查看75 | 回复0 | 2021-8-21 13:29:38 | 显示全部楼层 |阅读模式

DRAWGBK(CLOSE > 0,STRIP(RGB(0,0,333),RGB(0,0,688),0));
VAR0:=EMA((HHV(HIGH,5) - CLOSE)/(HHV(HIGH,5) - LLV(LOW,5)) * 100,2);
VAR1:=EMA((CLOSE - HHV(HIGH,5))/(HHV(HIGH,5) - LLV(LOW,5)) * 100,2) + 100;
VAR2:=BARSLAST(CROSS(CLOSE,EMA(CLOSE,4)));
VAR3:=BARSLAST(CROSS(EMA(CLOSE,4),CLOSE));
VAR4:=IF(VAR2 > VAR3,VAR2,0);
VAR5:=IF(VAR2 < VAR3,VAR3,0);
VAR6:=1;
VAR7:=-1;
正电图:VAR6 + SIN(VAR5),LINETHICK2;
负电图:VAR7 + SIN(VAR4),LINETHICK2;
PARTLINE(VAR6 + SIN(VAR5),VAR0 < VAR1,RGB(255,0,0),VAR0 > VAR1,RGB(0,250,0)),LINETHICK2;
PARTLINE(VAR7 + SIN(VAR4),VAR0 < VAR1,RGB(255,0,255),VAR0 > VAR1,RGB(250,250,0)),LINETHICK2;

202108211153.jpg

202108211153.jpg

 

回复

使用道具 举报

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

本版积分规则