极品等价K线主副图均可

源码

INPUT:N(5,1,100);
fc:=c;fo:=o;cc:0*c,PRECISION4,LINETHICK0;oo:0*c,PRECISION4,LINETHICK0;t1:=0*c;t2:=0*c;
for i=1 to datacount do begin
  if i=1 and fc[i]>fo[i] then
  cc[i]:=fc[i];
  oo[i]:=fc[i];
  if i=1 and fc[i]<fo[i] then
  cc[i]:=fc[i];
  oo[i]:=fc[i];
  if i>1 then
  cc[i]:=cc[i-1];
  oo[i]:=oo[i-1];
  if i>1 and fc[i]>cc[i]*(1+n/1000) then begin
  cc[i]:=cc[i-1]*(1+n/1000);
  oo[i]:=cc[i-1];
end;
  if i>1 and fc[i]<oo[i]/(1+n/1000) then begin
  oo[i]:=oo[i-1]/(1+n/1000);
  cc[i]:=oo[i-1];
end;
  if oo[i]=oo[i-1] then
    t1[i]:=t1[i-1]+1;
  if cc[i]=cc[i-1] then
    t2[i]:=t2[i-1]+1;
end;
o1:=ref(oo,t1+1);
c1:=ref(cc,t2+1);
格子点数:abs(cc-oo),PRECISION4,linethick0;
STICKLINE(c1=oo,ref(cc,1),ref(oo,1),1,1)COLORRED;
STICKLINE(c1=oo,cc,oo,8,1)COLORRED;
STICKLINE(o1=cc,ref(cc,1),ref(oo,1),1,1)COLORCYAN;
STICKLINE(o1=cc,cc,oo,8,1)COLORCYAN;



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图