人人爽天天爽夜夜爽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或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


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

    相關文章

      沒有相關內容
    主站蜘蛛池模板: 国产在线观看成人免费视频 | 蜜桃视频黄| 亚洲综合狠狠 | 日韩a级片在线观看 | 国产11一12周岁女毛片 | 国产高清在线a视频大全 | 中国女人free性hd国浯 | 日本黄色大片网站 | 黄色成人毛片 | 色综合欧美 | 免费国产h视频在线观看 | 人人爱天天做夜夜爽2020麻豆 | 中国一级特黄真人毛片免 | 一区二区三区四区精品视频 | 日本三级欧美三级香港黄 | 男人的天堂黄色 | 九月婷婷人人澡人人添人人爽 | 黄色毛片a | 久操色 | 一道本香蕉视频 | 日韩高清性爽一级毛片免费 | 最近的2019中文字幕7 | 免费一级国产生活片 | 国产成人福利 | 又爽又黄又紧的免费视频 | 日本一区二区高清免费不卡 | 日韩精品一区在线观看 | 色播五月激情五月 | 精品一区二区三区的国产在线观看 | 精品国产不卡一区二区三区 | 97国产成人精品免费视频 | 亚洲三级成人 | 国产美女无遮挡免费视频网站 | 国产一区二区自拍视频 | 在线另类视频 | 丝袜诱惑中文字幕 | 午夜高清在线 | 北条麻妃国产九九九精品视频 | 夜天干天干啦天干天天爽 | 欧美日韩一日韩一线不卡 | 国产精品二区页在线播放 |