stop loss quand une condition change

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #89715 quote
    Mike571
    Participant
    Junior

    Bonjour

    J’aimerais savoir comment je pourrais faire pour fermer une position quand une condition change.

    En fait j’utilise une moyenne mobile pour prendre mes achat et vente.. Ce que je veux c’est que mon stop soit le croisement d’une moyenne mobile.. Exemple :

    IF a > b then

    buy 1 share at market

    SET TARGET pprofit 10

    endif

    En fait j’aimerais enlever ce “set target” et lui dire que si a crosses under b then à la ligne , SELL 1 share at market.

    De même pour une position vendeuse.. Avec SELLSHORT mais pour la libérer il me semble que ce n’est pas sell.

    Si vous pouvez m’aiguiller ça serait cool.

    Cordialement Mike.

    #89775 quote
    Nicolas
    Keymaster
    Master

    Pour sortir d’une vente à découvert, il faut utiliser l’instruction EXITSHORT.

    Ai-je répondu à ton interrogation ? car je n’en suis pas certain 😳

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

stop loss quand une condition change


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Mike571 @mike571 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 1 month ago.

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