아이스버그 주문 판매 간단 버전
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
