大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频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("多頭開!")
       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("空頭開!")
       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("空頭開!")   
       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("收盤全平!")
       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
  
 

 

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

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

 


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

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
  主站蜘蛛池模板: 国产日韩一区二区三区在线播放 | 免费看美女吃男生私人部位 | 激情综合网五月激情 | 国产精品视频在线免费观看 | 久久精品久久精品久久精品 | 青草视频久久 | 青青草a | 人人爽天天碰天天躁夜夜躁 | 夜夜躁狠狠躁日日躁视频 | 精品视频在线观看一区二区三区 | 色之综综 | 97影院官网 | 欧美综合视频在线 | 亚洲欧美日韩一区超高清 | 免费观看一区二区 | 香港aa三级久久三级不卡 | 国产精品国产三级国产an | 亚洲激情综合 | 一级毛片一级毛片 | 国内精品伊人久久久久妇 | 国产女人嗷嗷叫 | 日日狠狠久久偷偷四色综合免费 | 狠狠色噜噜狠狠狠狠2021天天 | 天天做天天爱天天爽综合网 | 中文婷婷 | 一区二区三区在线免费观看视频 | www亚洲成人 | 综合爱爱网 | 亚洲综合激情六月婷婷在线观看 | 九九九色视频在线观看免费 | 婷婷色综合 | 亚洲va精品中文字幕动漫 | 色婷婷色综合激情国产日韩 | 亚洲成人精品 | 亚洲狼人综合干 | 欧美色综合久久 | 免费香蕉视频 | 91欧美在线| 久久性生大片免费观看性 | 激情影院在线 | 国产毛片黄片 |