您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔模型>>正文內容

金字塔[VBA策略] 自行處理拆單的算法處理模塊范例模板 PEL范例源碼[金字塔模型]

: none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> : none; color: rgb(85,85,85); font-style: normal; widows: 1; letter-spacing: normal; line-height: 18px; background-color: rgb(246,249,251); text-indent: 0px; -webkit-text-stroke-width: 0px"> \'定時器觸發事件函數,當有符合觸發條件的時間出現后將調用這里,本范例是5秒循環調用一次
Sub APPLICATION_Timer(ID)
?If Id = 0 Then
??If strCode.Count > 0 Then
???\'定時器中的代碼比較簡單,只要循環將數組的下單直接發送交易即可
???Code = strCode.GetAt(0)
???Market = strMarket.GetAt(0)
???Vol = arVol.GetAt(0)
???OrderType = arOrderType.GetAt(0)
???
???Set Report1 = marketdata.GetReportData(Code,Market)
???If Report1 is nothing Then
????Exit Sub
???End If
???
???If OrderType = 0 Then
????Price = Report1.SellPrice1 \'獲取當前對手價格
????If Price = 0 Then \'防止漲停板判斷
?????Price = Report1.NewPrice
????End If
????call Order.Buy(0,Vol,Price,0,Code,Market,"",0)
???ElseIf OrderType = 1 Then
????Price = Report1.BuyPrice1
????If Price = 0 Then
?????Price = Report1.NewPrice
????End If
????call Order.Sell(0,Vol,Price,0,Code,Market,"",0)
???ElseIf OrderType = 2 Then
????Price = Report1.BuyPrice1
????If Price = 0 Then
?????Price = Report1.NewPrice
????End If
????call Order.BuyShort(0,Vol,Price,0,Code,Market,"",0)
???ElseIf OrderType = 3 Then
????Price = Report1.SellPrice1
????If Price = 0 Then
?????Price = Report1.NewPrice
????End If
????call Order.Sell(0,Vol,Price,0,Code,Market,"",0)
???End If
???
???\'處理完畢刪除數組隊列
???strCode.RemoveAt(0)
???strMarket.RemoveAt(0)
???arVol.RemoveAt(0)
???arOrderType.RemoveAt(0)
??End If
?End If
End Sub


?

?

?

{別忘了將本網告訴您身邊的朋友,向朋友傳達有用資料,也是一種人情,你朋友會感謝你的。}

?

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!

 


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

相關文章

    沒有相關內容
  主站蜘蛛池模板: 国产小视频在线观看网站| 好朋友4韩国完整版观看| 亚洲欧洲久久精品| 色橹橹欧美在线观看视频高清| 国产精品视频网| 一区二区精品在线| 日本高清免费不卡在线| 亚洲最大av网站在线观看| 精品国产国产综合精品| 国产情侣真实露脸在线| 97一区二区三区四区久久| 成人免费ā片在线观看| 久久成人免费电影| 欧美性xxxx禁忌| 人妻少妇精品专区性色AV| 色吊丝中文字幕| 国产成人免费一区二区三区| 91嫩草私人成人亚洲影院| 嫩草影院在线入口| 久久99九九国产免费看小说| 最近最新在线中文字幕| 亚洲欧美日韩色图| 疯狂吃奶freesex| 四虎影视永久在线yin56xyz| 黑白高清在线观看| 国产精品极品美女自在线| jzzjzz免费观看大片免费| 无码国产成人av在线播放| 亚洲AV无码一区二区二三区软件 | 国产精品色午夜免费视频| 一区二区三区日本| 无遮无挡非常色的视频免费| 九九视频在线观看6| 欧美性猛交xxxx乱大交蜜桃| 亚洲高清视频在线播放| 精品综合久久久久久蜜月| 国产人妖视频一区二区| 欧美精品videossex欧美性| 国产精品视频色拍拍| 99精品视频观看| 好吊妞这里有精品|