通达信昨日的压力=今日的支撑主图公式
压力支撑源码;
AR:=IF((CLOSE < 100),CLOSE,(CLOSE / 100));
AY:=INTPART(((4 * (LOG(AR) / LOG(2))) + 1));
B:=((AY - 1) / 4);
支撑:IF((CLOSE > 100),(POW(2,B) * 100),POW(2,B)),POINTDOT,LINETHICK4,COLORBROWN;
DRAWTEXT(ISLASTBAR,支撑,'支撑'), COLORRED ;
压力:IF((CLOSE > 100),(POW(2,(B + (1 / 4))) * 100),POW(2,(B + (1 / 4)))),POINTDOT,LINETHICK4;
DRAWICON(REF(压力,1)=支撑,L*0.95,1);
DRAWTEXT(ISLASTBAR,压力,'压力'),COLORGREEN ;
175388981.PNG
|