Script fermeture de plusieurs positions sur une seule bougie ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215599 quote
    pinchermanpincherman
    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
    GraHalGraHal
    Participant
    Legend

    Essayer …

    IF LongExitCondition THEN
    SELL AT MARKET
    ENDIF

    #215602 quote
    pinchermanpincherman
    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.
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

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 pinchermanpincherman
3 years, 4 months ago.

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