Ajouts de signaux au ZIG ZAG

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #116331 quote
    jeanguy
    Participant
    Senior

    Bonjour,

    Je cherche à ajouter des signaux directement au sein de l’indicateur  ZIG ZAG (Celui que qui est expliqué dans la formation avancée).

    Voici mon signal

    // SIGNAL HAUSSIER
    
    IF MM2>MM1 and close>MM1 THEN
    IF RSI[8] crosses under 40 THEN
    drawarrowup(barindex,low-5*pointsize)coloured(0,255,0)
    ENDIF
    
    //SIGNAL BAISSIER
    
     IF MM2<MM1 and close<MM1 then
    IF RSI[8] crosses over 60 THEN
    drawarrowdown(barindex,high+5*pointsize)coloured(255,0,0)
    ENDIF
    
    
    

    Je l’ai intégré ici mais je suppose que ce n’est pas au bon endroit car les signaux haussier ne sont pas exclu quand le dernier point est un PIC (et vice versa)

    if newpeak then//Si ce pic est détecté
    Drawsegment(lastlowbar,lastlower,highbar,higher)coloured(0,255,50)
    Drawarrowdown(highbar,higher+20*pointsize)coloured(255,0,0)
    Drawtext("PIC",highbar,higher+35*pointsize)coloured(0,0,0)
    lasthighbar=highbar//coordonnées X
    lasthigher=higher//coordonnées Y
    higher=0
    lastpoint=1
    IF MM2>MM1 and close>MM1 THEN
    IF RSI[8] crosses under 40 THEN
    drawarrowup(barindex,low-5*pointsize)coloured(0,255,0)
    ENDIF
    

    Je met le graph pour être plus clair.

    merci de votre réponse

    EURAUD-15-minutes.png EURAUD-15-minutes.png
    #116363 quote
    Nicolas
    Keymaster
    Master

    Si je me souviens bien de mon code 😆 , la variable “lastpoint” indique la direction du dernier zigzag, donc tu pourrais l’utiliser pour filtrer tes signaux de trading:

    // SIGNAL HAUSSIER
    if lastpoint=-1 then 
     IF MM2>MM1 and close>MM1 THEN
      IF RSI[8] crosses under 40 THEN
       drawarrowup(barindex,low-5*pointsize)coloured(0,255,0)
     ENDIF
    endif
    
    //SIGNAL BAISSIER
    if lastpoint = 1 then 
     IF MM2<MM1 and close<MM1 then
      IF RSI[8] crosses over 60 THEN
       drawarrowdown(barindex,high+5*pointsize)coloured(255,0,0)
      ENDIF
     endif
    endif
    #116369 quote
    jeanguy
    Participant
    Senior

    J’y étais presque… merci !

    #116380 quote
    Sofitech
    Participant
    Master

    sur ce dernier code, il y a une erreur ligne 16. il y a un return ou une autre modification à faire ?

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

Ajouts de signaux au ZIG ZAG


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
jeanguy @mhscrforever Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Sofitech
6 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/09/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...