Script fermeture de plusieurs positions sur une seule bougie ?

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

    Bonjour,

    J’ai un script qui entre une position unique par bougie en achetant ou vendant un nombre Q de contracts par position.

    J’aimerais pouvoir clôturer sur une seule bougie l’ensemble des positions prises sur une seule bougie, hors le script ne cloture qu’une seule position par bougie.

    Voici un extrait de mon script :

    “IF LongEntryCondition THEN
    BUY Q CONTRACT AT MARKET
    ENDIF

    IF LongExitCondition THEN
    SELL Q CONTRACT AT MARKET
    ENDIF

    IF ShortEntryCondition THEN
    SELLSHORT Q CONTRACT AT MARKET
    ENDIF

    IF ShortExitCondition THEN
    EXITSHORT Q CONTRACT AT MARKET
    ENDIF”

    Merci pour votre aide 🙂 !

    Capture-decran-2023-06-02-a-22.12.21.png Capture-decran-2023-06-02-a-22.12.21.png
    #215601 quote
    GraHal
    Participant
    Master

    Essayer …

    IF LongExitCondition THEN
    SELL AT MARKET
    ENDIF

    #215602 quote
    pincherman
    Participant
    New

    Génial !!! Merci Grahal 🙂

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

Script fermeture de plusieurs positions sur une seule bougie ?


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
pincherman @pincherman Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 06/02/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...