Type/to search

Plugin de cobertura de futuros con un clic

Plugin
Created: 2020-03-18 15:59:34
Last modified: 6 years ago
3
Follow
1510
Followers

Puede realizar una cobertura automática e inmediata de dos contratos, tenga cuidado de agregar un deslizamiento adecuado, es posible que no se ejecute. Si las posiciones son numerosas, se puede hacer clic varias veces.

El complemento se puede iniciar con un solo clic en la terminal de trading, sin costo, conveniente para la operación manual. Introducción detallada: 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
Strategy parameters
Contract A
Contract B
Open Amount
Slip Price
Reverse Direction
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)