通达信逃顶公式 源码
X:=MA(C,120);
VAR5:=(MA(H,5)-X)/X;
VAR6:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
D41:DRAWTEXT(CROSS(95,VAR6) ANDVAR5 0.3,H*1.016,'逃顶'),COLOR00FF00;
D5:DRAWTEXT( CROSS(93,VAR6) ANDHHV(H,30)/LLV(L,30) 1.1 AND REF(X,1)/X 0.997 ,H*1.016,'逃顶'),COLOR00FF00;
D6:DRAWTEXT(CLOSE X AND X REF(X,1)AND REF(VAR6,1) 90 AND VAR6 REF(VAR6,1) AND REF(VAR6,1) REF(VAR6,2),H*1.016,'逃顶'),COLOR00FF00;