Type/to search
0
Follow
0
Followers
نقلی سطح کے بہترین نتائج اور حقیقی سطح دونوں میں فرق کیوں ہے، حکمت عملیوں کے لیے پوسٹ دیکھیں
Help
Created 2019-08-01 14:54:24  Updated 2019-08-01 15:19:30
 1
 2059
def CancelPendingOrders(): orders = _C(exchange.GetOrders) Log(len(orders)) for order in orders: exchange.CancelOrder(order.Id,order) def onTick(): depth = _C(exchange.GetDepth) askprice = depth.Asks[0].Price-0.01 bidprice = depth.Bids[0].Price+0.01 if bidprice<askprice: bidprice = askprice+0.01 CancelPendingOrders() exchange.Sell(askprice,30) exchange.Buy(bidprice,30) def main(): while (true): onTick() Sleep(2000)
Related Recommendations
Comment
All comments (1)

    可以看下这个帖子: https://www.fmz.com/bbs-topic/662
    实盘级别回测 和 模拟级别回测 回测机制不同。

    7 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)