求飛狐指標改成金字塔的 [金字塔]
- 咨詢內容:
指標我也看不懂,只知道是平均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 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容