Créer indicateur de dow pour intégrer a un robot

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #230451 quote
    Atemi19
    Participant
    New

    Bonjour, je voulais savoir si il existe déjà un indicateur sur la théorie de dow sinon je vous explique comment j’aimerais bien créer un tel indicateur dans le but de l’intégrer dans un système de trading.

    Il faudrait tout d’abord choisir une unité de temps puis si sur deux bougies les plus hauts sont de plus en plus hauts et bas plus haut alors signal achat et mettre un encadrer vert clair et inversement pour le signal de vente.

    Si prochaine bougie il y a toujours un plus haut alors l’encadrer vert clair continue mais si pas de plus haut alors plus de zone c neutre. Et éventuellement mettre une trendline qui correspond au milieu entre le plus haut et le plus bas de cette tendance (un peu comme tenkan ou canal de donchian).

    Cordialement.

    #230452 quote
    Atemi19
    Participant
    New

    Ah j’oubliais si jamais il y a un signal d’achat qu’il y a une zone neutre après si jamais il n’y a pas de signal de vente mais que le dernier plus haut est casser alors reprise de la zone verte clair d’achat et donc inversement pour la vente….

    #230605 quote
    Iván González
    Moderator
    Master

    Hola Podría sera quelque chose comme ça. À la place du recuadro, il peut fonder le graphique de couleur.

    
    setuplong = high > high[1] and low > low[1]
    setupshort = high < high[1] and low < low[1]
    
    if setuplong then
    long = 1
    short = 0
    elsif setupshort then
    short = 1
    long = 0
    endif
    
    if (long and long[1]=0) or (long and high>high[1]) then
    backgroundcolor(0,250,0,50)
    elsif (short and short[1]=0) or (short and low<low[1]) then
    backgroundcolor(250,0,0,50)
    endif
    
    return
    #230672 quote
    Atemi19
    Participant
    New

    Salut ivan merci, j’ai regarder sur le graphique il y a beaucoup de changements de couleurs. est il possible de modifier le code en mettant que les 2 bougies doivent etre de la meme couleur pour etre considéré valide pour la théorie de dow.

    Cordialement.

    #230702 quote
    Iván González
    Moderator
    Master

    Il a introduit la condition de 2 voiles de même couleur tant pour le début que pour la suite. Si vous voulez seulement une de ces personnes, vous devez les emprunter.

    setuplong = high > high[1] and low > low[1] and close>open and close[1]>open[1]
    setupshort = high < high[1] and low < low[1] and close<open and close[1]<open[1]
    
    if setuplong then
    long = 1
    short = 0
    elsif setupshort then
    short = 1
    long = 0
    endif
    
    if (long and long[1]=0) or (long and high>high[1] and close>open and close[1]>open[1]) then
    backgroundcolor(0,250,0,50)
    elsif (short and short[1]=0) or (short and low<low[1] and close<open and close[1]<open[1]) then
    backgroundcolor(250,0,0,50)
    endif
    
    return
    #230857 quote
    geroniman
    Participant
    Junior

    Super merci Ivan

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

Créer indicateur de dow pour intégrer a un robot


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Atemi19 @atemi19 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by geroniman
1 year, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/26/2024
Status: Active
Attachments: No files
Logo Logo
Loading...