現物アイスバーグ注文売りプラグイン
3
Follow
1507
Followers
非常にシンプルで、学習用です。
コードは最良の注釈です。
アイスバーグ注文売りは、注文を小口に分割して市場へのインパクトを回避するため、ビットコインの定量取引を学ぶ初心者に最適な戦略です。
プラグインは取引ターミナルからワンクリックで起動でき、手数料無料で手動取引にも便利です。詳しくは: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
Related strategies
Comment
All comments (0)
No data
- 1
