Stop valeur ATR

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #227732 quote
    Jrmjrm
    Participant
    New

    Bonjour,

    J’aimerais fixer un stop loss fixe de la valeur de l’ATR au moment de l’entrée en position.

    Avec cette commande, ça ne fonctionne pas:

    if onmarket then
    SET STOP  averagetruerange[14]

     

    Auriez-vous la bonne formule svp?

     

    Merci

    #227743 quote
    GraHal
    Participant
    Master
    If BuyCond Then
    Buy at Market
    Set Stop pLoss averagetruerange[14]
    Endif
    #227759 quote
    robertogozzi
    Moderator
    Master

    La ligne 3 devrait indiquer LOSS, sans le « p » initial, car ATR renvoie une fourchette de prix, pas des pips.

    Si vous préférez utiliser p LOSS,  ajoutez simplement * PipSize à la fin de la ligne.

    GraHal thanked this post
    #228520 quote
    Jrmjrm
    Participant
    New

    Merci 🙂

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

Stop valeur ATR


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Jrmjrm @jrmjrm Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Jrmjrm
2 years ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/09/2024
Status: Active
Attachments: No files
Logo Logo
Loading...