Plugin de couverture en un clic pour futures
3
Follow
1510
Followers
Peut automatiquement et immédiatement couvrir (hedger) deux contrats, en veillant à ajouter un glissement de prix approprié, car il est possible que l'ordre ne s'exécute pas. Si les positions sont nombreuses, on peut cliquer plusieurs fois par étapes.
Le plugin peut être lancé en un clic depuis le terminal de trading, gratuit, pour faciliter le trading manuel. Détails : 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
