大智慧顶部明确顶部提示主图源码
var1:=REF(CLOSE,1);
var2:=((SMA(MAX((CLOSE - var1),0),7,1) / SMA(ABS((CLOSE - var1)),7,1)) * 100);
var3:=CROSS(79,var2);
var4:=FILTER(var3,4);
VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);
VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 5));
VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8);
VAR10:=IF((CLOSE > 1000),VAR8,VAR9);
var11:=VAR10;
DRAWTEXT(var4,(H*1.03),'顶'),COLORyellow;