求飞狐指标改成金字塔的 [金字塔]
- 咨询内容:
指标我也看不懂,只知道是平均K线算法,应该不难
- Ac:=(H+L+C+O)/4;
- ao:=c*0;
- fo:=o;
- ao[1]:=fo[1];
- for i=2 to datacount do ao[i]:=(ao[i-1]+ac[i-1])/2;
- AH:=max(H,Max(Ao,Ac));
- AL:=min(L,min(Ao,Ac));
- dd:=(ma(ao,2)+ma(ao,4))/2,linethick2;
- 2*dd-1*ao,colormagenta;
- ma(ao,2),color00bb00;
- STICKLINE(AC>=AO,AH,AC,1,0),color225588;
- STICKLINE(AC>=AO,AH,AC,0,0),color66ccff;
- STICKLINE(AC>=AO,AO,AL,1,0),color225588;
- STICKLINE(AC>=AO,AO,AL,0,0),color66ccff;
- STICKLINE(AC>AO,AC,AO,8,0),COLOR225588;
- STICKLINE(AC>AO,AC,AO,7,0),COLOR226699;
- STICKLINE(AC>AO,AC,AO,6,0),COLOR3377aa;
- STICKLINE(AC>AO,AC,AO,5,0),COLOR3388bb;
- STICKLINE(AC>AO,AC,AO,4,0),COLOR4499cc;
- STICKLINE(AC>AO,AC,AO,3,0),COLOR44aadd;
- STICKLINE(AC>AO,AC,AO,2,0),COLOR55bbee;
- STICKLINE(AC>AO,AC,AO,1,0),COLOR66ccff;
- STICKLINE(AC<=AO,AH,AC,1,0),color888800;
- STICKLINE(AC<=AO,AH,AC,0,0),colorffff00;
- STICKLINE(AC<=AO,AO,AL,1,0),color888800;
- STICKLINE(AC<=AO,AO,AL,0,0),colorffff00;
- STICKLINE(AC<=AO,AC,AO,8,0),COLOR888800;
- STICKLINE(AC<=AO,AC,AO,7,0),COLOR999900;
- STICKLINE(AC<=AO,AC,AO,6,0),COLORaaaa00;
- STICKLINE(AC<=AO,AC,AO,5,0),COLORbbbb00;
- STICKLINE(AC<=AO,AC,AO,4,0),COLORcccc00;
- STICKLINE(AC<=AO,AC,AO,3,0),COLORdddd00;
- STICKLINE(AC<=AO,AC,AO,2,0),COLOReeee00;
- STICKLINE(AC<=AO,AC,AO,1,0),COLORffff00;
- 金字塔客服:
请注释下代码
- 用户回复:
新手不懂代码,不好意思啊,就是平均K线的附图指标,平均K线应该用的人很多吧,这是网上的解释
平均K线的计算公式 开盘价 = (前一根平均k线的开盘价+前一根平均k线的收盘价)/2 最高价=传统k线的最高价 最低价=传统k线的最低价 收盘价=传统k线的(开+高+低+收)/4
- 网友回复:
- Ac:=(H+L+C+O)/4;
- ao:=c*0;
- fo:=o;
- ao[1]:=fo[1];
- for i=2 to datacount do ao[i]:=(ao[i-1]+ac[i-1])/2;
- AH:=max(H,Max(Ao,Ac));
- AL:=min(L,min(Ao,Ac));
- 网友回复: 复制粘贴到金字塔指标上什么也不显示啊
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容