Comment déterminer si un trade en cours est gagnant?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #133723 quote
    sophia_etoille83
    Participant
    Average

    Bonjour,

    Comment déterminer si un trade en cours est gagnant ? J’ai utiliser l’instruction positionPrice, mais je dois mal l’utiliser.

    J’ai crée une instruction de vente pour prendre son takeprofit au plus  haut des bollinger mais quand le marché baisse pour reprendre sa tendance haussière, je me suis faite sortir en perte, puisque le prix à touché le haut de la bollinger (ce qui est normal) donc, je souhaiterai mettre une condition ajoutant : uniquement si trade gagnant en cours. J’ai ajouté dans “if longonmarket and c4” and positionPrice >0 mais cela ne fonctionne pas.

    Je vous remercie de votre aide.

    Très belle journée 🙂

    //Sortie long tendance
    BBHaut= BollingerUp[19]
    c4 = (close >= BBHaut)
    
    if longonmarket and c4  then
    sell at market
    endif
    
    //Sécurité STOP LOSS
    set stop ploss s
    prorealcode2.jpg prorealcode2.jpg
    #133729 quote
    Nicolas
    Keymaster
    Master

    Avec POSITIONPERF qui renvoi le gain actuel de l’ordre en pourcentage.

    #133740 quote
    sophia_etoille83
    Participant
    Average

    Il me semblait que positionperf était dédié uniquement au trade cloturé et non en cours.

     

    Merci beaucoup Nicolas je vais testé.

    #133742 quote
    sophia_etoille83
    Participant
    Average

    oh super, cela fonctionne très bien et fait grimper mes rations 🙂

    Ps: j’ai commencé votre formation avancée et je la trouve super. Je fais des progrès et surtout je commence à comprendre et réussir mes boucles … 🙂
    Un copain va la prendre également si ce n’est pas déjà fait.

     

    Merci et encore bravo pour votre travail de qualité 🙂

    Nicolas thanked this post
    #133745 quote
    Nicolas
    Keymaster
    Master

    POSITIONPERF c’est bien l’ordre en cours. Par contre on peut récupérer les performances des trades passés avec POSITIONPERF(N), ou N est le n ième ordre en arrière.

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

Comment déterminer si un trade en cours est gagnant?


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Nicolas
5 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/29/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...