大智慧顶底公式副图指标
源码
见顶线:90,linethick3,colorred;
见底线:10,linethick3,colorffffff;
var1 := REF(OPEN,1);
var2:=SMA(MAX(OPEN-var1,0),6,1)/SMA(ABS(OPEN-var1),6,1)*100;
var3:= REF(CLOSE,1);
var4:=SMA(MAX(CLOSE-var3,0),6,1)/SMA(ABS(CLOSE-var3),6,1)*100;
var5:= REF(HIGH,1);
var6:=SMA(MAX(HIGH-var5,0),6,1)/SMA(ABS(HIGH-var5),6,1)*100;
var7:= REF(LOW,1);
var9:=SMA(MAX(LOW-var7,0),6,1)/SMA(ABS(LOW-var7),6,1)*100;
var8:=(min(Open,Close)-Low)/Low*100>vol/CAPITAL*0.001 ;
var10:=(HHV(High,5)-Close)/(HHV(High,21)-LLV(Low,13))*100;
var11:=(Close-REF(Close,1))/REF(Close,1)*100;
var12:=ema(var11,8)*10<-26;
var13:=if(var8 and ma(var10,5)<50 and var12,30,0);
开盘值:var2,POINTDOT, LINETHICK0 ;
收盘值:var4,POINTDOT, LINETHICK0 ;
最高:var6,POINTDOT, LINETHICK0 ;
最低:var9,POINTDOT, LINETHICK0 ;
STICKLINE(收盘值>开盘值,开盘值,最低,0.5,1),colorred;
STICKLINE(收盘值>开盘值,最高,收盘值,0.5,1),colorred;
STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),colorred;
STICKLINE(收盘值<开盘值,最高,开盘值,0.5,1),COLORFFFF00;
STICKLINE(收盘值<开盘值,最低,收盘值,0.5,0),COLORFFFF00;
STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;
入顶:80,POINTDOT,LINETHICK4,colorgreen;
入底:20,pointdot,linethick4,COLORMAGENTA;