大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人
打印本文
關閉窗口
幫忙看下這有一段撤單指令的編寫問題
作者:開拓者 TB 來源:cxh99.com 發布時間:2016年04月05日
咨詢內容:
本帖最后由 fushengchenken 于 2016-1-29 16:02 編輯
這段程序代碼是在1分鐘的K線上運行的平倉指令,請幫我看下這段撤單和從新平倉的指令的問題
If(A_TotalPosition>0 And A_GetOpenOrderCount!=0)
{
A_DeleteOrder();
MyExitDelete=MyExitDelete+1;
SetGlobalVar(14,MyExitDelete);
If(MyExitDelete>0)
{
A_SendOrder(Enum_Sell,Enum_Exit,A_BuyPosition(),Close-ExitSlippage*MinMove*PriceScale);
MyBuyExit=MyBuyExit+1;
SetGlobalVar(8,MyBuyExit);
MyExitTime=Time;
SetGlobalVar(11,MyExitTime);
}
If(A_GetLastOpenOrderIndex(Enum_Sell,Enum_Exit)==InvalidInteger)
{
MyEntryTime=0;
SetGlobalVar(10,MyEntryTime);
}
}
我想實現的目標是:
1.一但有多單持倉并且有未成交的多單就立刻撤單,并將 MyExitDelete+1做為全局變量做一個記錄。
2.如果一但有過一次撤單以后立刻再次平倉多單,并且用A_GetLastOpenOrderIndex(Enum_Buy,Enum_Exit)==InvalidInteger指令來判斷平倉指令是否成功。一旦確認平倉成功了,再將MyEntryTime清0.
3.我要讓這個指令重復運行,以達到不斷的平倉撤單,再平倉再撤單直到平倉成功,這樣一個效果。
目前遇到一些始終解決不掉,又找不到問題的原因的地方,希望TB的技術人員幫忙看看:
問題1:我咨詢過你們TB的服務人員,他們告訴我TB的運行機制是會在一分鐘的K線的最后一個TICK合并下一個1分鐘的K線合并計算?我不知道這個敘述清楚沒有。這里面有個問題我下面截取一張圖表來咨詢。遇到的問題是為什么在賬戶都完全沒有持倉的情況下,程序總會在每個1分鐘的最后一個TICK上面撤單一次?(見下圖1紅色加粗數據)
問題2:
QQ截圖20160129143856.png
(6.58 KB, 下載次數: 0)
2016-1-29 14:38:41 上傳
TB技術人員:
圖1見紅色加粗部分
Time=0.1124 MyTimeSecondValue=58 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1124 MyTimeSecondValue=58 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1124 MyTimeSecondValue=0 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=1 MySellExit=0 MyExitTime=0.1124 MyExitDelete=1 Date=2016-01-29
TB客服:
圖1見紅色加粗部分
Time=0.1125 MyTimeSecondValue=57 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1125 MyTimeSecondValue=57 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1125 MyTimeSecondValue=58 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1125 MyTimeSecondValue=58 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1125 MyTimeSecondValue=59 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1125 MyTimeSecondValue=59 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=1 MySellExit=0 MyExitTime=0.1125 MyExitDelete=1 Date=2016-01-29
網友回復:
圖1見紅色加粗部分
Time=0.1126 MyTimeSecondValue=53 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1126 MyTimeSecondValue=54 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1126 MyTimeSecondValue=55 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1126 MyTimeSecondValue=56 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1126 MyTimeSecondValue=58 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1126 MyTimeSecondValue=59 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=1 MySellExit=0 MyExitTime=0.1126 MyExitDelete=1 Date=2016-01-29
網友回復:
本帖最后由 fushengchenken 于 2016-2-1 11:05 編輯
圖2見紅色加粗部分
Time=0.1333 MyTimeSecondValue=31 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=31 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=31 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=32 MyBuyEntry=0 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=32 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=33 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=33 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=34 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=35 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=35 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=36 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=36 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0.1333 MyEntryDelete=0 MyBuyExit=0 MySellExit=0 MyExitTime=0 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=37 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=1 MySellExit=0 MyExitTime=0.1333 MyExitDelete=0 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=38 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=39 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=39 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=40 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=41 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=41 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=44 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=46 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=46 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=47 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=48 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
Time=0.1333 MyTimeSecondValue=49 MyBuyEntry=1 MySellEntry=0 MyEntryTime=0 MyEntryDelete=0 MyBuyExit=2 MySellExit=0 MyExitTime=0.1333 MyExitDelete=1 Date=2016-01-29
打印本文
關閉窗口
主站蜘蛛池模板:
青青热久免费精品视频精品
|
伊人久久99亚洲精品久久频
|
国产成人mv在线观看入口视频
|
黄片123
|
天天操天天舔天天射
|
欧美又乱又伦观看
|
中文字幕一区在线观看
|
一级一片免费看
|
麻豆视频一区二区
|
在线观看男女爱视频网站
|
色综合天天综合网亚洲
|
日韩99精品
|
色狠狠一区二区
|
国产午夜精品一区二区三区
|
久久国产欧美
|
中文字幕在线精品视频入口一区
|
国产精品在线
|
国产欧美日韩综合二区三区
|
狠狠狠地在啪线香蕉
|
天堂va
|
国产成人不卡亚洲精品91
|
在线看片777av免费观看
|
激情国产白嫩美女在线观看
|
一级黄毛片
|
99视频国产精品
|
婷婷开心中文字幕
|
jizzjiz熟丰满老妇日本
|
亚洲国产精品综合久久久
|
亚洲欧美在线观看91偷拍
|
久久国产高清一区二区三区
|
国产伦精品一区二区
|
99精品久久
|
日本在线观看不卡
|
天天做夜夜操
|
中文字幕在线看日本大片
|
国产成人精品久久一区二区三区
|
欧美狠狠入鲁的视频极速
|
欧美成人午夜影院
|
欧美日韩视频在线播放
|
青草操
|
久久99国产乱子伦精品免
|