stop loss et bougie précédente

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #185308 quote
    Ptitlilou87
    Participant
    Average

    Bonjour,

    Désolé si ma question a déjà été posé mais j’ai parcouru le forum et je n’ai pas trouvé a réponse.

    Je vous explique ma stratégie: j’attends qu’une PINBAR se forme, à la clôture de la bougie j’entre à l’achat (ou à la vente en fonction de la PINBAR).

    Prenons l’exemple d’une PINBAR haussière (marteau) qui se forme, à la clôture de celle-ci j’entre à lachat, mon target est de 10 point et je souhaiterai mettre mon stop loss sous la mèche de la PINBAR, mais je n’ai trouvé aucun code qui fonctionne en backtest.

    J’ai essayé avec SET SOP LOSS low[1],ça mais ca ne marche pas.

    Pouvez-vous m’aider?

    Merci par avance.

    #185311 quote
    robertogozzi
    Moderator
    Master

    SET STOP LOSS nécessite une différence de prix, pas un prix.

    Vous écrivez:

    SET STOP LOSS abs(close - low[1])
    Bodaris thanked this post
    #185553 quote
    Ptitlilou87
    Participant
    Average

    Super, ça marche.

    Merci

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

stop loss et bougie précédente


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Ptitlilou87
4 years, 1 month ago.

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