Type/to search

Plugin de compra de Spot Iceberg Entrust

Study
3
Follow
1503
Followers

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

La compra por encargo de icebergs, que divide los pedidos en pequeñas compras de M, para evitar impactos en el mercado, es una buena estrategia de aprendizaje para entrar en el comercio cuantitativo de Bitcoin.
El complemento se puede iniciar en el terminal de negociación con un solo toque, sin cargo, para facilitar la negociación manual. Más información: 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
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)