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


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

    相關文章

      沒有相關內容
    主站蜘蛛池模板: 一区二区三区亚洲 | 欧洲三级在线观看 | 午夜久草| 免费视频不卡一区二区三区 | 91免费精品国偷自产在线在线 | 午夜欧美性欧美 | 亚洲444444在线观看 | 欧美在线欧美 | 香蕉午夜视频 | 欧美视频网站免费看 | 欧美freesex呦交6_10 | 欧洲亚洲一区 | 欧美精品亚洲精品日韩专区 | 成人毛片在线 | 成人精品一区二区激情 | 久久免费特黄毛片 | 日韩人成免费网站大片 | 春意影院免费入口 | 欧美a在线播放 | 亚洲在成人网在线看 | 超级碰人人| 女攻高h全肉污文play | 在线观看黄视频 | 岛国毛片在线观看 | 久久免费99精品国产自在现线 | 成人在线看片 | 亚洲专区第一页 | 黄色免费网站在线看 | 免费黄色欧美 | 国产成人h福利小视频在线观看 | 国产精品女丝袜白丝袜 | 亚洲第一成年网 | 一二三四视频社区在线播放中国 | 亚州视频一区 | 菊花综合网 | 成人性动漫高清免费观看网址 | 久久婷婷是五月综合色狠狠 | 亚洲深夜福利视频 | 午夜日本 | 男女午夜性爽快免费视频不卡 | 亚洲精品一二三四区 |