Conditions de TP et vente

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186946 quote
    zebrazebra
    Participant
    New

    Bonjour à tous,

    1/ Je cherche la formule permettant de vendre toutes mes positions si une de ces positions atteint le Takeprofit?

    Pas trop d’idées comment le faire!

     

    2e formule que je cherche: c’est éditer le Stop loss si la différence entre la fermeture de la bar courante et la bar d’ouverture du trade précédent et supérieur ou égal à 1, comme ça je peux faire monter le SL de 52 à  0 par exemple. (sans stop suiveur)

    sl = 52
    
    SL1 = ((close) - (TRADEINDEX(1)) => 1)
    
    IF SL1 then
    sl = 0
    endif
    
    SET STOP pLOSS sl
    
    SET TARGET pPROFIT 27

    Merci pour votre aide

    Archi

    PS: je trouve la recherche dans le forum pas très pratique. :-/

    #188510 quote
    zebrazebra
    Participant
    New

    le forum est mort…

    #188511 quote
    zebrazebra
    Participant
    New

    enfaite c’est bon j’ai trouvé mes réponses…

Viewing 3 posts - 1 through 3 (of 3 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

Conditions de TP et vente


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
zebra @zebra Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by zebrazebra
4 years, 9 months ago.

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