Type/to search

現物アイスバーグ注文買いプラグイン

Study
3
Follow
1508
Followers

非常にシンプルで、学習用です。
コードが最高の注釈です。

アイスバーグ注文(買い)は、注文を小口Mに分割して市場への影響を避ける、ビットコインの定量取引を学ぶのに最適なシンプルな戦略です。
プラグインは取引端末でワンクリック起動でき、無料で手動取引に便利です。詳細はこちら:https://www.fmz.com/digest-topic/5051

Source
JavaScript
function main(){
    var initAccount = _C(exchange.GetAccount)
    while(true){
        var account = _C(exchange.GetAccount)
        var dealAmount = account.Stocks - initAccount.Stocks
        var ticker = _C(exchange.GetTicker)
        if(BUYAMOUNT - dealAmount >= BUYSIZE){
            var id = exchange.Buy(ticker.Sell, BUYSIZE)
            Sleep(INTERVAL*1000)
            if(id){
                exchange.CancelOrder(id) // May cause error log when the order is completed, which is all right.
Strategy parameters
Strategy parameters
amount to buy
iceberg order size
orders exist time(second)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)