ProOrder : gérer deux timeframes seconde et minute

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

    j’aimerais etre aider je n’arrive pas a gerer 2 time frame

    l’un en seconde pour detecter une couleur de bougie entre une 45 eme seconde et 59 eme

    si vert declencher un achat puis revenir a un time de minute pour le reste dutraitement

    merci de vos aide je laisse mon algo en fichier // Algo test – détection bougie verte en construction

    // Timeframe : 1 minute

    DEFPARAM cumulateorders = false

    DEFPARAM preloadbars = 50


    // Seconde courante dans la bougie en cours

    SecondeCourante = SECOND


    // Bougie en construction verte

    BougieVerte = CLOSE > OPEN


    // Fenêtre de tir : entre la 45ème et 59ème seconde

    FenetreTemps = SecondeCourante >= 45 AND SecondeCourante <= 59


    // Condition d’achat

    IF NOT LONGONMARKET AND BougieVerte AND FenetreTemps THEN

    BUY AT MARKET

    SET STOP %LOSS (1)

    SET TARGET %PROFIT (2)

    ENDIF


    // Sortie à la clôture de la bougie suivante

    IF LONGONMARKET AND SecondeCourante = 0 THEN

    SELL AT MARKET

    ENDIF

    #258621 quote
    robertogozzi
    Moderator
    Master

    Essayez ceci :

    DEFPARAM cumulateorders = false
    DEFPARAM preloadbars = 50
    Timeframe(default)
    // Seconde courante dans la bougie en cours
    SecondeCourante = SECOND
    // Bougie en construction verte
    BougieVerte = CLOSE > OPEN
    // Fenêtre de tir : entre la 45ème et 59ème seconde
    FenetreTemps = SecondeCourante >= 45 AND SecondeCourante <= 59
    //
    // Sortie à la clôture de la bougie suivante
    IF LONGONMARKET AND SecondeCourante = 0 THEN
    SELL AT MARKET
    ENDIF
    //
    Timeframe(1 minute)
    // Condition d’achat
    IF NOT LONGONMARKET AND BougieVerte AND FenetreTemps THEN
    BUY AT MARKET
    SET STOP %LOSS (1)
    SET TARGET %PROFIT (2)
    ENDIF
    // Sortie à la clôture de la bougie suivante
    IF LONGONMARKET AND SecondeCourante = 0 THEN
    SELL AT MARKET
    ENDIF
    
    
    
    Nicolas thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

ProOrder : gérer deux timeframes seconde et minute


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
psavoye04 @psavoye04 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
11 hours, 37 minutes ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 03/02/2026
Status: Active
Attachments: No files
Logo Logo
Loading...