Type/to search

Plugin für Spot-Iceberg-Verkaufsaufträge

Study
3
Follow
1507
Followers

Sehr einfach, nur zum Lernen.
Code ist die beste Anmerkung.

Eisberg-Verkaufsorder: Die Order wird in kleine Teile aufgeteilt und verkauft, um den Markt nicht zu beeinflussen. Dies ist eine gute einfache Einstiegsstrategie für das Lernen von Bitcoin-Quantitativhandel.
Das Plugin kann mit einem Klick im Handelsendgerät gestartet werden, ist kostenlos und praktisch für manuellen Handel. Ausführliche Einführung: 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)