Type/to search

Plug-in de venda de ordens iceberg no mercado à vista

Study
3
Follow
1507
Followers

Muito simples, apenas para aprender.
O código é a melhor anotação.

Ordem de iceberg para venda, dividindo a ordem em pequenas partes para evitar impacto no mercado. É uma boa estratégia simples de aprendizado de negociação quantitativa de Bitcoin para iniciantes.
O plug-in pode ser iniciado com um clique no terminal de negociação, sem cobrança de taxas, facilitando a negociação manual. Detalhes: 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
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)