आइसबर्ग ऑर्डर बेचें सरल संस्करण
3
Follow
1503
Followers
Very simple, just for learn.
Code is best annotation.
बर्फ के पहाड़ों को बेचने के लिए, आदेशों को छोटे टुकड़ों में बेचने के लिए, बाजार को झटका देने से बचने के लिए, यह एक अच्छी सरल शुरुआत है और बिटकॉइन की मात्रा में व्यापार करने के लिए सीखने की रणनीति है
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
