Stop valeur ATR

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #227732 quote
    JrmjrmJrmjrm
    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
    GraHalGraHal
    Participant
    Legend
    If BuyCond Then
    Buy at Market
    Set Stop pLoss averagetruerange[14]
    Endif
    #227759 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    JrmjrmJrmjrm
    Participant
    New

    Merci 🙂

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 JrmjrmJrmjrm
2 years, 9 months ago.

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