Type/to search

Plugin d'ordre iceberg pour vente spot

Study
3
Follow
1505
Followers

Très simple, juste pour apprendre.
Le code est la meilleure annotation.

L'ordre iceberg de vente permet de diviser une commande en petites tranches afin d'éviter un impact sur le marché. C'est une excellente stratégie d'apprentissage simple pour le trading quantitatif de Bitcoin.
Le plugin peut être lancé en un clic depuis le terminal de trading, sans frais, et facilite le trading manuel. Détails : 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)