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

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

金字塔VBA日內(nèi)交易策略源碼[金字塔模型]

 

 

 

dim ss
    ss = 1
''''''''''多頭止損系數(shù)
dim n1
    n1 = 10
''''''''''空頭止損系數(shù)
dim n2
    n2 = 10
   
'''''''''   
dim n3
    n3 = 4
   
dim LastHigh
dim LastLow
dim LastClose
dim Icode
dim Imarket
sub application_vbastart()
    call MarketData.RegReportNotify("if03","zj")
end sub
// www.weiqiv.net.cn
sub MarketData_ReportNotify(ReportData)
    set ReportData = MarketData.GetReportData("if03","zj")
    NewPrice = ReportData.NewPrice
    LastHigh = ReportData.LastHigh
    'call application.MsgOut(LastHigh&" "&NewPrice)
   
    '''''''''''''''''持倉(cāng)信息
    dim BuyHoding
    dim SellHoding
    dim BuyCost
    'dim SellHoding
    call order.HoldingInfoByCode2("if03","zj", BuyHoding, BuyCost, BuyTodayHoding, SellHoding, SellCost, SellTodayHoding, PNL, UseMargin,Account)
    ''''''''''''''''品種信息
    dim MinTick
    call order.Contract("if03","zj", Multipliter, MinTick, ShortPercent, LongPercent)
'''''''''''''''''''''多頭
'BuyHoding=0 and SellHolding=0 and
    if Hour(Time) >09 and Hour(Time) <14 and    NewPrice>LastHigh and BuyHolding = 0 then
       call application.MsgOut("多頭開(kāi)!")
       call order.buy(1,ss,0,0,"if03","zj","",0)
    end if
'''''''''''''''''''''空頭
'BuyHoding=0 and SellHolding=0 and
    if  Hour(Time) >09 and Hour(Time) <14 and   NewPrice<LastHigh and SellHolding = 0 then
       // cxh99.com
       call application.MsgOut("空頭開(kāi)!")
       call order.buyshort(1,ss,0,0,"if03","zj","",0)
    end if
'''''''''''''''''''''多止損
    if BuyHoding>0 and NewPrice<BuyCost-n1*MinTick and Hour(Time) >09 and Hour(Time) <14 then
       call application.MsgOut("多頭止損!")      
       call order.Sell(1,BuyHolding,0,0,"if03","zj","",0)
    end if
'''''''''''''''''''''空止損
    if SellHoding>0 and NewPrice>BuyCost+n2*MinTick and Hour(Time) >09 and Hour(Time) <14 then
       call application.MsgOut("空頭開(kāi)!")   
       call order.SellShort(1,SellHolding,0,0,"if03","zj","",0)
    end if
'''''''''''''''''''''日內(nèi)平倉(cāng)
    if Hour(Time) >= 14 and Hour(Time) <=15 then
       call application.MsgOut("收盤(pán)全平!")
       call order.Sell(1,BuyHolding,0,0,Icode,Imarket,"",1)
       call order.SellShort(1,SellHolding,0,0,"if03","zj","",1)
    end if
End Sub

Sub UserForm1_CommandButton1_Click()
    call application.MsgOut(LastHigh&" "&NewPrice)
End Sub
  
 

 

有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 1145508240  有需要幫忙請(qǐng)點(diǎn)擊這里留言!!!進(jìn)行 有償 編寫(xiě)!不貴!點(diǎn)擊查看價(jià)格!

 


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

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
  主站蜘蛛池模板: 蘑菇视频绿巨人小黄鸭 | 日本另类αv欧美另类aⅴ | 免费国产高清精品一区在线 | 欧洲成人爽视频在线观看 | 福利视频在线免费观看 | 性大交 | 亚洲国产99在线精品一区69堂 | jzz欧美| 欧美大尺度免费一级特黄 | 中文精品视频一区二区在线观看 | 久久综合九色综合97婷婷群聊 | 色婷婷精品视频 | 日韩精品成人免费观看 | 久久精品国产麻豆不卡 | 久久精品.com | 日本免费一区二区三区在线看 | 国产精品亚洲精品日韩已满 | 国产精品亚洲玖玖玖在线靠爱 | 涩涩免费视频 | 日本一级淫片a的一级欧美 日本一级淫片a免费播放 | 99久久99久久精品免费看子 | 欧美在线一级毛片观看 | 亚洲高清免费 | 亚洲综合欧美日韩 | 日本tv欧美tv天堂 | 欧美精品一区二区三区在线 | 国产成人综合一区精品 | 国产视频一区在线观看 | 夜夜女人国产香蕉久久精品 | 番茄视频在线观看黄版本免费 | 中文字幕在线观看不卡 | 香香影院在线观看 | 毛片一级在线观看 | 在线综合网 | 成人精品第一区二区三区 | 特级按摩一级毛片 | julia在线视频 | 狼狼色丁香久久女婷婷综合 | 天天操天天擦 | 日日夜夜天天干干 | 亚洲成人免费视频在线 |