Einfache Eisberg-Verkaufsorder
3
Follow
1507
Followers
Sehr einfach, nur zum Lernen.
Code ist die beste Anmerkung.
Eisberg-Verkaufsorder, die die Order in kleine Teile aufteilt, um den Markt nicht zu beeinträchtigen, ist eine gute, einfache Einsteigerstrategie für quantitatives Bitcoin-Trading.
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
Related strategies
Comment
All comments (1)
- 1
