Plugin lệnh tảng băng mua giao ngay
3
Follow
1508
Followers
Rất đơn giản, chỉ để học.
Code là chú thích tốt nhất.
Lệnh mua iceberg, chia lệnh thành nhiều lệnh nhỏ M để mua, tránh tác động thị trường, là chiến lược học tập đơn giản tốt để bắt đầu giao dịch định lượng Bitcoin.
Plugin có thể khởi động một chạm trên terminal giao dịch, không thu phí, tiện lợi cho giao dịch thủ công. Chi tiết: https://www.fmz.com/digest-topic/5051
Source
JavaScript
function main(){
var initAccount = _C(exchange.GetAccount)
while(true){
var account = _C(exchange.GetAccount)
var dealAmount = account.Stocks - initAccount.Stocks
var ticker = _C(exchange.GetTicker)
if(BUYAMOUNT - dealAmount >= BUYSIZE){
var id = exchange.Buy(ticker.Sell, BUYSIZE)
Sleep(INTERVAL*1000)
if(id){
exchange.CancelOrder(id) // May cause error log when the order is completed, which is all right.Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1
