Type/to search

Plugin lệnh Iceberg bán Spot

Study
3
Follow
1505
Followers

Very simple, just for learn.
Code is best annotation.

Lệnh bán iceberg, chia đơn hàng thành nhiều lệnh nhỏ để bán, tránh tác động đến thị trường, là chiến lược học tập đơn giản và tốt để bắt đầu giao dịch định lượng Bitcoin.
Plugin có thể khởi động một chạm trên terminal giao dịch, không thu phí, thuận tiện cho giao dịch thủ công. Chi tiết: https://www.fmz.com/digest-topic/5051

Source
JavaScript
function main(){
    var initAccount = _C(exchange.GetAccount)
    if (initAccount.Stocks < SELLAMOUNT){
        throw 'check your account amount to sell'
    }
    while(true){
        var account = _C(exchange.GetAccount)
        var dealAmount =  initAccount.Stocks - account.Stocks
        var ticker = _C(exchange.GetTicker)
        if(SELLAMOUNT - dealAmount >= SELLSIZE){
            var id = exchange.Sell(ticker.Buy, SELLSIZE)
            Sleep(INTERVAL*1000)
Strategy parameters
Strategy parameters
amount to sell
sell orders size
order exist time(second)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)