人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

求助編寫錯誤 [金字塔]

咨詢內容: 參數設置
KD:c>ma10;
pd:C<MA10;
KK:=pd;
pk:=kd;
A1:=c-AVGENTERPRICE;
if A1>0 AND A1>Q1*MINDIFFTHEN
BEGIN
SELL(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
SELLSHORT(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
END


if A1<0 AND ABS(A1) >Q2*MINDIFFTHEN
BEGIN
SELL(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
SELLSHORT(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
END

if pd and HOLDING>0 then BEGIN
sell(1,ss,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
end



if pk and HOLDING<0 then BEGIN
sellshort(1,ss,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
end

if zz=1 then ss:=1;
if zz=2 then ss:=1;
if zz=3 then ss:=2;
if zz=4 then ss:=4;
if zz=5 then ss:=8;
if zz>=6 then ss:=16;
if KD and HOLDING=0 then BEGIN
BUY( 1,ss,MARKET);
end

if Kk and HOLDING=0 then BEGIN
BUYshort( 1,ss,MARKET);
end

?

?來源: www.kzuj.com.cn

金字塔資深技術: [PEL] 復制代碼
INPUT:Q1(5,1,1000,1),Q2(5,1,1000,1),S(1,1,100,1);
ma10:ma(c,10);
SS:=S;
KD:c>ma10;
pd:C<MA10;
KK:=pd;
pk:=kd;
A1:=c-AVGENTERPRICE;
if A1>0 AND A1>Q1*MINDIFF  THEN  
BEGIN
SELL(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
SELLSHORT(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
END


if A1<0 AND ABS(A1) >Q2*MINDIFF  THEN  
BEGIN
SELL(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
SELLSHORT(1,0,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
END

if pd and HOLDING>0 then BEGIN
sell(1,ss,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
end



if pk and HOLDING<0 then BEGIN
sellshort(1,ss,MARKET);
if NUMPROFIT(1)>0 then zz:=1;
if NUMPROFIT(1)<0 then zz:=zz+1;
end

if zz=1 then ss:=1;
if zz=2 then ss:=1;
if zz=3 then ss:=2;
if zz=4 then ss:=4;
if zz=5 then ss:=8;
if zz>=6 then ss:=16;
if KD and HOLDING=0 then BEGIN
BUY( 1,ss,MARKET);
end

if Kk and HOLDING=0 then BEGIN
BUYshort( 1,ss,MARKET);
end


參數默認值請參考input函數使用說明自行調整下。

  • 技術交流: 你們用一分鐘玻摛連續回測一下,發現10月14日以來手數是一下子跳到7。跳到16
    不是慢慢倍增上來,所以說這才是錯的

    ?

  • 技術交流: 如下圖

    截圖202110151637412643.png (148.26 KB, 下載次數: 578)

    下載附件

    2021-10-15 16:37 上傳

  •  

    有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

    可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

    怎么收費,代編流程等詳情請點擊閱讀!

    (注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


    【字體: 】【打印文章】【查看評論

    相關文章

      沒有相關內容
    主站蜘蛛池模板: 在线精品国产第一页 | 男女激情视频网站 | 一区二区精品在线观看 | 人人爱干| 亚洲国产剧情在线 | 精品国产一区二区三区19 | 国产亚洲第一伦理第一区 | 35pao免费视频 | aaa在线视频| 丝袜脚在线 | 天天综合网天天综合色 | 日本午夜片成年www 日本午夜视频在线 | 丝袜美女在线播放 | 国产成人在线视频播放 | 国产黄网永久免费 | 在线观看亚洲专区 | 国产精品综合 | 亚洲三级网站 | 97人人澡人人爽人人爱 | 日韩伦理片免费在线观看 | 国产精品免费看久久久麻豆 | 美国一级特色大黄 | 成人午夜精品网站在线观看 | 天天操天天射天天色 | 一级特黄录像绵费播放 | 中文字幕精品视频在线观 | 天天舔天天摸 | 日韩精品国产一区 | 三级网站日本 | 精品无码久久久久久久动漫 | 中文字幕第13亚洲另类 | 五月天婷婷视频 | 国产h在线观看 | 成人毛片免费视频 | 日韩精品欧美精品中文精品 | 欧美日韩一区二区视频免费看 | 日韩有码视频在线 | 伦理影院在线 | 在线一级视频 | 成人三级在线 | 欧美日韩大片在线观看 |