vendre aprés avoir fait x profit par barre

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #159938 quote
    billou74billou74
    Participant
    New

    Bonjour,

    Je voudrais mettre une condition pour  vendre aprés avoir fait x profit par barre

    J’ai eesayé cela mais cela me renvois des résultats non coherents.

    Condition = (close*COUNTOFLONGSHARES)-(countoflongshares*tradeprice)>(barindex-crossbar)*X

    En sachant que crossbar=la barre d’achat

    Qu en pensez vous?

    Merci

    #159943 quote
    fifi743fifi743
    Participant
    Master

    bonsoir,

    tu es un haute savoyard ?

    le nombre de bar après ouverture du trade est : barindex-tradeindex

    #159944 quote
    billou74billou74
    Participant
    New

    Bonjour,

    Ba maintenant je suis dans l’ain mais mon pseudo date de quand j etais en haute savoie.

    J viens de corriger mais aucun changement

    #159946 quote
    fifi743fifi743
    Participant
    Master

    si tu fait barindex-tradeindex>10 par exemple

    if longonmarket and close>positionprice and barindex-tradeindex>10 then
    sell at market
    endif

    si tu es long et en profit apres 10 bar ça ferme le trade

    billou74 thanked this post
    #159947 quote
    billou74billou74
    Participant
    New

    On ne s’est pas compris:

    J ai changé la maniere de faire en faites je veux vendre quand le prix de vente permet de gagner 1.5€ par barre

    PV=tradeprice*1.004 + ((1.5/COUNTOFLONGSHARES)*(barindex-tradeindex))
    sell at PV limit

    Ca a l’air de marcher comme ca

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

vendre aprés avoir fait x profit par barre


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
billou74 @billou74 Participant
Summary

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

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