아이스버그 매도 간단 버전
3
Follow
1507
Followers
매우 간단합니다. 단지 학습을 위한 것입니다.
코드가 최고의 주석입니다.
빙산 위임 매도(冰山委託賣出)는 주문을 소량으로 나누어 매도함으로써 시장 충격을 피하는 전략으로, 비트코인 퀀트 트레이딩을 배우기 위한 좋고 간단한 입문 학습 전략입니다.
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
