N:=3;M:=30; b:=100*PWINNER(3,close); a:=hhv(b,5); ab:=COST(a); 浮动成本:ma(ab,n); d:=100*PPART(m); e:=HHv(d,5); 锁定成本:cost(e); aa:=hhv(h,50000); bb:=llv(l,250); ss:=aa-bb; STICKLINE(c>0,ss*0.191+bb,ss*0.191+bb,10,0); 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.gpxiazai.com 股票软件下载网_最新股票指标公式} 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); |