大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識(shí)>>正文內(nèi)容

求助編寫(xiě)錯(cuò)誤 [金字塔]

咨詢內(nèi)容: 參數(shù)設(shè)置
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

?

?來(lái)源: m.weiqiv.net.cn

金字塔資深技術(shù): [PEL] 復(fù)制代碼
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


參數(shù)默認(rèn)值請(qǐng)參考input函數(shù)使用說(shuō)明自行調(diào)整下。

  • 技術(shù)交流: 你們用一分鐘玻摛連續(xù)回測(cè)一下,發(fā)現(xiàn)10月14日以來(lái)手?jǐn)?shù)是一下子跳到7。跳到16
    不是慢慢倍增上來(lái),所以說(shuō)這才是錯(cuò)的

    ?

  • 技術(shù)交流: 如下圖

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

    下載附件

    2021-10-15 16:37 上傳

  •  

    有思路,想編寫(xiě)各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友

    可聯(lián)系技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流或微信號(hào):cxh99cxh99  進(jìn)行 有償收費(fèi) 編寫(xiě)!

    怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!

    (注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)


    【字體: 】【打印文章】【查看評(píng)論

    相關(guān)文章

      沒(méi)有相關(guān)內(nèi)容
    主站蜘蛛池模板: 国产一级内谢a级高清毛片 国产一级片毛片 | 国产精品成人免费综合 | 思思91精品国产综合在线 | 特黄女一级毛片 | 天天干天天爽天天射 | 九九精品久久久久久噜噜 | 国产免费69成人精品视频 | 好吊妞精品视频 | 欧美特黄一级大黄录像 | 四虎综合九九色九九综合色 | 色综合欧美综合天天综合 | 成年午夜视频免费观看视频 | 变态捡到女婴h养成调教 | 欧美夜夜撸| 97免费| 老子影院午夜久久亚洲 | 国产精品久久久久毛片真精品 | 久久精品免费观看视频 | 久久精品国产久精国产80cm | 91午夜精品亚洲一区二区三区 | 一级午夜a毛片免费视频 | 天天狠狠操| 国产精品久久在线观看 | 日韩中文字幕精品 | 天天操天天爽天天射 | 日日干日日操日日射 | 亚洲福利一区二区三区 | 91爱爱视频 | 亚洲欧美第一 | 天天干天天干天天干天天干天天干 | 老王午夜69精品影院 | 久久天天躁狠狠躁夜夜2020一 | 欧美一级特毛片 | 夜夜精品视频 | 久草综合在线观看 | 欧美成人禁片在线观看网址 | 国产高清在线精品一区a | 国产福利观看 | 99re6久精品国产首页 | 亚洲欧美国产高清va在线播放 | 国产精品国产自线在线观看 |