Calcul de du Levier max ProOrder

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #139604 quote
    Ichimoku Reading
    Participant
    Master

    Bonjour,

    Je souhaite créer un algorithme qui prenne en compte le levier maximum disponible.

    Mes StopLoss, étant calculer en fonction de la volatilité, il arrive que le nombre de lots soit trop élevé et mettent alors l’algorithme en défaut, cela est dû au fait que la volatilité est trop faible.

    Je voudrais donc calculer en fonction du levier 1:30, mais j’ignore le calcul à effectuer.

    L’incorporer dans la stratégie ne sera pas un problème.

    Quelqu’un aurait il une idée du calcul à effectuer dans ProOrder ?
    Merci d’avance pour vos commentaires

    #139606 quote
    Nicolas
    Keymaster
    Master

    Effet de levier = Taille de position / Capital du compte

    On ne peut pas récupérer la taille du capital dans le code, donc il faut le renseigner dans une variable et y ajouter STRATEGYPROFIT.

    Ichimoku Reading thanked this post
    #139640 quote
    Ichimoku Reading
    Participant
    Master
    Bonjour Nicolas, Merci pour ton intervention, c’était simple finalement..
    Pour ceux qui seraient intéressés, voici la formule pour un levier de 1:15, pour d’autres leviers, la suite est logique

    LotssMax = (0.0015 * Capital)
    if Lotss > LotssMax then
    Lotss = LotssMax
    endif
    #139706 quote
    brunodavid
    Participant
    Average

    Bonjour IV Mcm,

    voici comment je gère le levier sur les actions avec un réinvestissement des gains
    avec la fonction strategyprofit évoqué par Nicolas.

    leverage = 1.3 //variable
    initcapital = 20000 //variable
    capital = initcapital + strategyprofit
    n = (capital / close)*leverage
    n = round(n)

    buy n shares at market //exemple

    #139719 quote
    Ichimoku Reading
    Participant
    Master

    Bonjour je vous remercie pour l’exemple

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Calcul de du Levier max ProOrder


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Ichimoku Reading
5 years, 7 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 07/19/2020
Status: Active
Attachments: No files
Logo Logo
Loading...