STOP LOSS EN POURCENTAGE DU CAPITAL

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #242397 quote
    robeen12
    Participant
    Veteran

    Bonjour à tous et meilleurs voeux pour cette année 2025,

    je cherche à coder un stop loss qui correspondrait à un pourcentage de mon capital

    j’ai essayé avec la formule suivante :

    SL = (CAPITAL*0.03)/POINTSIZE pour un SL correspondant à 3% DU CAPITAL

    mais cela ne fonctionne pas !

    merci pour votre aide

    #242399 quote
    fifi743
    Participant
    Master
    SL = (CAPITAL*0.03)/POINTSIZE/nombre de contract 
    
    SET STOP PLOSS sl 

    je l’ai mis en point

    Iván González thanked this post
    #242413 quote
    robeen12
    Participant
    Veteran

    Merci Fifi

    j’ai trouvé après coup pour le mettre en $

    sl = (capital*0.01)
    
    SET STOP $LOSS SL
    Iván González thanked this post
    #242502 quote
    Diamant
    Participant
    Junior

    Bonjour Robeen12

    Peux-tu me donner la marche à suivre pour intégrer ton STOP LOSS sur le graphique, merci.

    #242517 quote
    fifi743
    Participant
    Master

    comme ceci

    sl = (capital*0.01)
    GRAPHONPRICE sl
    #242524 quote
    Diamant
    Participant
    Junior

    Merci fifi,

    J’ai du oublier quelque chose, ce n’est pas un indicateur ni un système de trading. Je ne parvient pas à l’intégrer à mon graphique.

    Peut tu m’aider ?

    Merci

    #242526 quote
    robeen12
    Participant
    Veteran

    Bonjour,
    ca peut faire parti de ton systeme de trading…par exemple

    defparam cumulateorders = false
    
    //.....//
    capitalini = 1000
    capital = capitalini + strategyprofit
    
    //......//
    mm20 = average[20]
    
    c1 = close crosses over mm20
    sl = (capital*0.03)
    tp = (capital*0.05)
    if not onmarket and c1 then
    buy 1 contract at market
    set stop $loss sl
    set target $profit tp
    endif
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

STOP LOSS EN POURCENTAGE DU CAPITAL


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
robeen12 @robeen12 Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by robeen12
1 year, 1 month ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 01/10/2025
Status: Active
Attachments: No files
Logo Logo
Loading...