通达信]测顶底部指标公式源码
参数自己设置啊:测底(1,99999,120)测顶(1,99999,60)顶系数数(0,300,2)底系数数(0,300,7)
{测顶底部}
顶系数:(1+3*顶系数数/100),NODRAW;
底系数:(1+3*底系数数/100),NODRAW;
阶段高点:CONST(HHV(H,测底)),COLORYELLOW;
阶段低点:CONST(LLV(L,测顶)),COLORYELLOW;
测顶部:阶段低点*顶系数,COLORGREEN,DOTLINE;
测底部:阶段高点/底系数,COLORMAGENTA,DOTLINE;
DRAWTEXT_FIX(C>0,0.90,0.001,1,'测顶部:'),COLORGREEN,LINETHICK5;
DRAWNUMBER_FIX(C>0,0.902,0.001,0,CONST(测顶部)),COLORGREEN,LINETHICK5;
DRAWTEXT_FIX(C>0,0.90,0.05,1,'测底部:'),COLORMAGENTA,LINETHICK5;
DRAWNUMBER_FIX(C>0,0.902,0.05,0,CONST(测底部)),COLORMAGENTA,LINETHICK5;
DRAWTEXT_FIX(C>0,0.90,0.1,1,'顶系数:'),COLORMAGENTA,LINETHICK5;
DRAWNUMBER_FIX(C>0,0.902,0.1,0,CONST(顶系数)),COLORMAGENTA,LINETHICK5;
DRAWTEXT_FIX(C>0,0.90,0.15,1,'底系数:'),COLORMAGENTA,LINETHICK5;
DRAWNUMBER_FIX(C>0,0.902,0.15,0,CONST(底系数)),COLORMAGENTA,LINETHICK5;