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

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

求助編寫錯誤 [金字塔]

咨詢內(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

?

?來源: www.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ù)默認值請參考input函數(shù)使用說明自行調(diào)整下。

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

    ?

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

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

    下載附件

    2021-10-15 16:37 上傳

  •  

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

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

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

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


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

    相關(guān)文章

      沒有相關(guān)內(nèi)容
    主站蜘蛛池模板: 黄毛片免费 | 青草免费 | 亚洲欧美成人永久第一网站 | 久亚洲精品不子伦一区 | 国产成人在线播放视频 | 天天色天天射天天操 | 欧洲美女高清一级毛片 | 精品成人毛片一区二区视 | 亚洲 国产 日韩 欧美 | 久久国内精品自在自线观看 | 亚洲国产韩国一区二区 | 欧美亚洲欧美日韩中文二区 | 91国内精品视频 | 色综合免费视频 | 欧美午夜寂寞影院安卓列表 | 成人影院在线观看kkk4444 | 国产欧美久久一区二区 | 欧美xxxxbbbb在线播放 | 欧美一区二区在线免费观看 | 久久精品国产欧美日韩亚洲 | 成年黄网站免费大全毛片 | 日本a在线视频 | 夜色资源站www国产在线资源 | 奇米在线777在线视频 | 四虎在线免费 | 久久久中文字幕日本 | 91久久青草精品38国产 | 亚洲欧美中文日韩综合 | 国产成人久久精品一区二区三区 | aaa大片| 免费看成人播放毛片 | 亚洲午夜视频在线 | 奇米第四色7777 | 久久久国产成人精品 | 不卡影院网 | 久久久www成人免费精品 | 国内成人免费视频 | 久久夜色精品国产噜噜小说 | 亚洲香蕉网综合久久 | 国产免费人视频在线观看免费 | 欧美精欧美乱码一二三四区 |