ouvrir une position tous les jours de la semaine

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #246390 quote
    dominique57dominique57
    Participant
    New

    Bonjour,

    Je souhaite ouvrir une position tous les jours de la semaine du lundi au vendredi à 0h (1ère barre de l’ouverture de la journée)

    et la fermer à 7h par ex, choisir un lot et positionner un stop loss et un take profit.

    Merci pour votre aide

    Dominique

    #246421 quote
    Iván GonzálezIván González
    Moderator
    Legend
    defparam flatafter=070000
    
    if IntradayBarIndex = 0 then 
    buy 1 contract at market
    set target %profit 2
    set stop %loss 2
    endif
    #246434 quote
    dominique57dominique57
    Participant
    New

    merci

    #246435 quote
    dominique57dominique57
    Participant
    New

    moi j’ai fait ça:

     

    ////Choisir jours d’entrée/sortie
    c1 = dayofweek = 1 or 2 or 3 or 4 or 5

    ////Choisir heure d’entrée/sortie
    c5 = time = 000000
    c6 = time = 070000

    if not onmarket and c1 and c5 then
    buy 1 share at market
    endif

    if onmarket and c1 and c6 then
    sell at market
    endif

    //Stop Loss à -15
    SET STOP pTRAILING 10
    //Take Profit à +50
    SET TARGET pPROFIT 80

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

ouvrir une position tous les jours de la semaine


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by dominique57dominique57
1 year, 6 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 04/25/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...