Plugin hedge một chạm cho hợp đồng tương lai
3
Follow
1510
Followers
Có thể tự động ngay lập tức hedge hai hợp đồng, chú ý thêm mức trượt giá phù hợp, có thể không khớp lệnh. Nếu khối lượng vị thế lớn, có thể nhấn nhiều lần.
Plugin có thể khởi chạy một cú nhấp chuột trong terminal giao dịch, không thu phí, thuận tiện cho giao dịch thủ công. Giới thiệu chi tiết: https://www.fmz.com/digest-topic/5051
Source
JavaScript
function main(){
exchange.SetContractType(Reverse ? Contract_B : Contract_A)
var ticker_A = exchange.GetTicker()
if(!ticker_A){return 'Unable to get quotes'}
exchange.SetDirection('buy')
var id_A = exchange.Buy(ticker_A.Sell+Slip, Amount)
exchange.SetContractType(Reverse ? Contract_B : Contract_A)
var ticker_B = exchange.GetTicker()
if(!ticker_B){return 'Unable to get quotes'}
exchange.SetDirection('sell')Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1
