aide à la programmation

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #245117 quote
    PapaPapa
    Participant
    Junior

    ===================

    Message Body:
    bonjour à tous je ne suis pas programmateur et je n’y connais pas grand chose dans ce domaine j’aimerai si cela est possible de regarder mon besoin et votre bonté va jusqu’à là m’envoyer le code ? voici mon besoin :
    je voudrais créer un programme ProRealtime pour mettre la bougie de 9h et 15h30 avec time frame de 5mn en couleur jaune, dans un petit rectangle prenant le corps et la mèche comme “exemple OPR” cela est il possible? merci pour vos retour.

     

     

    #245119 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Merci 🙂

    #245130 quote
    PapaPapa
    Participant
    Junior

    Bonjour si je peux ajouté quelques chose je suis en Heikin-Ashi et si les bougies 9h00 et 15h30 pouvez comporter dans la bogie le décompte du temps restant serait idéal ?

    #245186 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Bonjour. Ce code est pour votre première demande.

    time1 = 090000
    time2 = 153000
    n = 10  // largeur du rectangle (en nombre de bougies)
    
    // Si la bougie correspond à 9h00 ou 15h30
    IF time1 = opentime OR time2 = opentime THEN
        drawcandle(open, high, low, close) COLOURED("yellow")  // Colore la bougie
        drawrectangle(barindex, high, barindex + n, low)        // Rectangle autour de la bougie
    ENDIF
    
    RETURN
    
    #245227 quote
    PapaPapa
    Participant
    Junior

    Merci Ivan

    Très bon job.

    Tu es un boss !!

    #245228 quote
    PapaPapa
    Participant
    Junior

    Ivan,

    Ton programme fonctionne très bien mais ne prend pas en compte la mèches  pour les bougies Heikin-Ashi es-que c’est possible de modifier le programme ?

    Encore merci pour votre temps.

    #245243 quote
    Iván GonzálezIván González
    Moderator
    Legend
    time1 = 090000
    time2 = 153000
    n = 10  // largeur du rectangle (en nombre de bougies)
    
    // Heikin Ashi
    once haopen=open
    haclose=(open+close+high+low)/4
    if barindex> 0 then
    haopen=(haopen+haclose[1])/2
    endif
    halow=min(low,min(haclose,haopen))
    hahigh=max(high,max(haclose,haopen))
    
    // Si la bougie correspond à 9h00 ou 15h30
    IF time1 = opentime OR time2 = opentime THEN
    drawcandle(haopen, hahigh, halow, haclose) COLOURED("yellow")  // Colore la bougie
    drawrectangle(barindex, hahigh, barindex + n, halow)coloured("grey",100)        // Rectangle autour de la bougie
    ENDIF
    
    RETURN
    #245262 quote
    PapaPapa
    Participant
    Junior

    Encore merci pour ton temps et ton excellant travail

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

aide à la programmation


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
Papa @pappy Participant
Summary

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

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