STICKLINE(c 0,ss*0.382+bb,ss*0.382+bb,10,0);
STICKLINE(c 0,ss*0.5+bb,ss*0.5+bb,10,0);
STICKLINE(c 0,ss*0.618+bb,ss*0.618+bb,10,0);
STICKLINE(c 0,ss*0.809+bb,ss*0.809+bb,10,0);
STICKLINE(c 0,bb,bb,10,0);
DRAWTEXT(c 0 and ISLASTBAR=1,ss*0.382+bb,'38.2%');
DRAWTEXT(c 0 and ISLASTBAR=1,ss*0.618+bb,'61.8%');
DRAWTEXT(c 0 and ISLASTBAR=1,ss*0.5+bb,'50%');
DRAWTEXT(c 0 and ISLASTBAR=1,ss*0.809+bb,'80.9%');
DRAWTEXT(c 0 and ISLASTBAR=1,bb,'0');
{ 本指标的设计原理是:
1.将筹码进行黄金分割(0.191;0.382;0.5;0.618;0.809);
这样我们就可以根据这几条线来判断,股价(或指数)的上行压力位置,和下行的支撑位置.
其对应的语句是:
aa:=hhv(h,50000);{上市以来的最高价对应的筹码的价位}
bb:=llv(l,250); {250天以来的最低价对应的筹码的价位}
ss:=aa-bb; {最高筹码与最低筹码之间的价差}
STICKLINE(c 0,ss*0.191+bb,ss*0.191+bb,10,0); {以下几句是分别对应的黄金分割位置对应价位}
{www.9m8.cn 九毛八公式指标网 股票软件下载网_最新股票指标公式}
STICKLINE(c 0,ss*0.382+bb,ss*0.382+bb,10,0);
STICKLINE(c 0,ss*0.5+bb,ss*0.5+bb,10,0);
STICKLINE(c 0,ss*0.618+bb,ss*0.618+bb,10,0);
STICKLINE(c 0,ss*0.809+bb,ss*0.809+bb,10,0);
STICKLINE(c 0,bb,bb,10,0);