文华财经支撑压力自动画线日内短线多空提示指标公式源码:
使用说明:
1、设置了5跟支撑压力自动画线,主要看加粗的上中下三根白线
2、看日内偏多和日内偏空文字提示,以及多空图标
AA:=HHV(C,30);
BB:=LLV(C,30);
CC:(AA+BB)/2,COLORWHITE,LINETHICK3;
DD:CC+(AA-BB)/4,COLORWHITE,LINETHICK1;
EE:CC-(AA-BB)/4,COLORWHITE,LINETHICK1;
FF:CC+(AA-BB)/2,COLORWHITE,LINETHICK3;
GG:CC-(AA-BB)/2,COLORWHITE,LINETHICK3;
DRAWTEXT(DAYBARPOS=1 &&C<=CC,H,’日内偏多’),ALIGN0,COLORYELLOW,FONTSIZE20;
DRAWCOLORKLINE(DAYBARPOS=1 &&C<=CC,COLORYELLOW,0);
DRAWICON((CROSS(C,EE) OR CROSS(C,CC))&&REF(C<=CC,DAYBARPOS-1),L,158),VALIGN0;
DRAWTEXT(DAYBARPOS=1 &&C>CC,L,’日内偏空’),ALIGN0,COLORGREEN,FONTSIZE20;
DRAWCOLORKLINE(DAYBARPOS=1 &&C>CC,COLORGREEN,0);
DRAWICON((CROSSDOWN(C,DD) OR CROSSDOWN(C,CC))&&REF(C>CC,DAYBARPOS-1),H,157);