ProOrder : ouverture automatique à heure fixe avec TP/SL

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

    Bonjour,

    Je souhaite réalisé un code qui semble assez simple mais pour lequel je n’y arrive pas.

    L’objectif est d’ouvrir automatiquement une position à l’achat à un horaire précis.

    Par exemple, tous les jours à 10h30 une position d’un lot est prise à l’achat.

    Il y doit y avoir une take profit automatique qui se place simultanément à 100points, et un stop à 50 points.

    Le jour suivant un nouvel ordre s’ouvre à 10h30, sauf si celui de la veille est toujours en cours.

    Merci par avance pour votre aide. 🙂

    #261745 quote
    Iván GonzálezIván González
    Moderator
    Legend
    DEFPARAM CumulateOrders = False
    
    // Heure d'entree au format HHMMSS (heure du graphique)
    heureEntree = 103000
    
    IF time = heureEntree AND NOT onmarket THEN
        BUY 1 CONTRACT AT MARKET
    ENDIF
    
    
    SET TARGET PROFIT 100
    SET STOP LOSS 50
    

    J’espère que cela vous aidera 🙂

    #261748 quote
    Benjam1Benjam1
    Participant
    New

    Super, merci beaucoup Ivan pour votre aide et pour votre retour rapide. 🙂

    Bonne journée

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

ProOrder : ouverture automatique à heure fixe avec TP/SL


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Benjam1 @benjam1 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Benjam1Benjam1
4 months, 3 weeks ago.

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