HA NORMALISES A ZERO

Viewing 15 posts - 1 through 15 (of 36 total)
  • Author
    Posts
  • #186652 quote
    supertiti
    Participant
    Master

    Bonjour à tous,

    Serait-il possible de placer tous les “drawpoints” sur la ligne de zéro afin de pouvoir intégrer cet indicateur sur un autre borné de 0 à 100.

    merci de votre aide

    bonne journée et bons trades

     

    // HEIKIN ASHI TRANSPARENTS ROBERTO V1 25.01.2022
    
    // cul plat Nicolas 07.01.2022
    
    defparam CALCULATEONLASTBARS = 100
    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
    green = xopen<xclose and xlow=xopen
    red   = xopen>xclose and xhigh=xopen
    greensum = summation[5](xClose > xOpen) = 5
    redsum   = summation[5](xClose < xOpen) = 5
    ////////////////////////////////////////////////////
    if green and not green[1] then
    lastpointx = 1
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,xlow,5) coloured (9,82,40,255) // green
    ENDIF
    elsif red and not red[1] then
    lastpointx = 2
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,xhigh,5) coloured(200,0,0,255)// red
    ENDIF
    endif
    /////////////////////////////////////////////////OK
    if  green > green [1] then
    lastpointy = 1
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,xlow,3) coloured (255,255,240)// Ivoire
    ENDIF
    elsif  red > red [1] then
    lastpointy = 2
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,xhigh,3) coloured (255,255,240)// Ivoire
    ENDIF
    endif
    //IF close > open THEN
    if  greensum then //green > green [1] then
    DrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) //bordercolor(6,43,22)    // vert clair bordure vert foncé
    //ELSE
    elsif  redsum then //red > red [1] then
    DrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) //bordercolor(255,0,0)  // rose magenta bordure rouge
    ENDIF
    
    
    
    RETURN t
    
    
    // Variables :
    // t = 0
    // décocher heikin A transp Roberto V1
    // décocher Chandelier
    HA-normalises-0.jpg HA-normalises-0.jpg
    #186662 quote
    Khaled
    Participant
    Veteran

    Serait-il possible de placer tous les “drawpoints” sur la ligne de zéro afin de pouvoir intégrer cet indicateur sur un autre borné de 0 à 100.

    // HEIKIN ASHI TRANSPARENTS ROBERTO V1 25.01.2022
     
    // cul plat Nicolas 07.01.2022
     
    defparam CALCULATEONLASTBARS = 1000
    
    base=0
    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
    green = xopen<xclose and xlow=xopen
    red   = xopen>xclose and xhigh=xopen
    greensum = summation[5](xClose > xOpen) = 5
    redsum   = summation[5](xClose < xOpen) = 5
    ////////////////////////////////////////////////////
    if green and not green[1] then
    lastpointx = 1
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,base,5) coloured (9,82,40,255) // green
    ENDIF
    elsif red and not red[1] then
    lastpointx = 2
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,base,5) coloured(200,0,0,255)// red
    ENDIF
    endif
    /////////////////////////////////////////////////OK
    if  green > green [1] then
    lastpointy = 1
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,base,3) coloured (255,255,240)// Ivoire
    ENDIF
    elsif  red > red [1] then
    lastpointy = 2
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,base,3) coloured (255,255,240)// Ivoire
    ENDIF
    endif
    //IF close > open THEN
    //if  greensum then //green > green [1] then
    //DrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) //bordercolor(6,43,22)    // vert clair bordure vert foncé
    ////ELSE
    //elsif  redsum then //red > red [1] then
    //DrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) //bordercolor(255,0,0)  // rose magenta bordure rouge
    //ENDIF
     
    //DRAWPOINT(barindex, close, 2) coloured(255,0,0)
     
    RETURN
    

    J’ai désactive Drawcandle et mis drawpoint sur zéro.

    A priori ça donne le même résultat. Il y avait un “t” devant RETURN

    #186668 quote
    supertiti
    Participant
    Master

    Merci beaucoup Khaled ça fonctionne pile-poil.

    Bonne soirée

    #186955 quote
    supertiti
    Participant
    Master

    Bonjour à tous

    @ Khaled

    En reprenant ton code de base 100, pourrais-t’on scinder cet indicateur en deux réponses (base 0 et base 100) pour avoir les signaux verts sur 0 et les rouges sur 100.

    merci de ton retour

    Bon week end

    #187001 quote
    Khaled
    Participant
    Veteran

    Peux-tu m’envoyer un screenshot de ce que tu souhaites exactement?

    #187048 quote
    supertiti
    Participant
    Master

    Voilà j’ai pris un RSI 14 sur le site Central Charts pour illustrer mon souhait.

    l’enjeu est de placer les “drawpoints” sur les lignes 0 ou 100 selon leur couleur : vert sur 0 et rouge sur 100.

    les points sur l’exemple ne sont pas les reflet de l’indicateur c’est juste pour montrer le principe.

    Je joins le graphe de Sartorius

    HA-exemple-points.jpg HA-exemple-points.jpg
    #187051 quote
    Khaled
    Participant
    Veteran

    Tiens, essayes ça et dis moi si ça marche comme tu veux

    // HEIKIN ASHI TRANSPARENTS ROBERTO V1 25.01.2022
     
    // cul plat Nicolas 07.01.2022
     
    defparam CALCULATEONLASTBARS = 1000
     
    baseUP=0
    baseDN=100
    
    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
    green = xopen<xclose and xlow=xopen
    red   = xopen>xclose and xhigh=xopen
    greensum = summation[5](xClose > xOpen) = 5
    redsum   = summation[5](xClose < xOpen) = 5
    ////////////////////////////////////////////////////
    if green and not green[1] then
    lastpointx = 1
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,baseUP,5) coloured (9,82,40,255) // green
    ENDIF
    elsif red and not red[1] then
    lastpointx = 2
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,baseDN,5) coloured(200,0,0,255)// red
    ENDIF
    endif
    /////////////////////////////////////////////////OK
    if  green > green [1] then
    lastpointy = 1
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,baseUP,3) coloured (255,255,240)// Ivoire
    ENDIF
    elsif  red > red [1] then
    lastpointy = 2
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,baseDN,3) coloured (255,255,240)// Ivoire
    ENDIF
    endif
    
    iRSI = RSI[14](close)
    //IF close > open THEN
    //if  greensum then //green > green [1] then
    //DrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) //bordercolor(6,43,22)    // vert clair bordure vert foncé
    ////ELSE
    //elsif  redsum then //red > red [1] then
    //DrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) //bordercolor(255,0,0)  // rose magenta bordure rouge
    //ENDIF
     
    //DRAWPOINT(barindex, close, 2) coloured(255,0,0)
     
    RETURN iRSI, 0, 100
    Test-2022-01-30-114957.png Test-2022-01-30-114957.png
    #187058 quote
    supertiti
    Participant
    Master

    Khaled Champion du monde ! ton code fonctionne au mieux, c’est exactement ce que je souhaitais.

    Je joins un graphe de Sartorius où il semblerait opportun d’être à l’achat

    merci encore pour ton aide appréciée

    Bon dimanche

     

    // HA KHALED 0 100  le 30.01.2022
    
    // HEIKIN ASHI TRANSPARENTS ROBERTO V1 25.01.2022
    // cul plat Nicolas 07.01.2022
    
    defparam CALCULATEONLASTBARS = 100
    baseUP=0
    baseDN=100
     
    xClose = (open+high+low+close)/4
    IF BarIndex=0 THEN
    xOpen = open
    xHigh = high
    xLow = low
    ELSe
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(Max(high, xOpen), xClose)
    xLow = Min(Min(low, xOpen), xClose)
    ENDIF
    green = xopen<xclose and xlow=xopen
    red   = xopen>xclose and xhigh=xopen
    greensum = summation[5](xClose > xOpen) = 5
    redsum   = summation[5](xClose < xOpen) = 5
    ////////////////////////////////////////////////////
    if green and not green[1] then
    lastpointx = 1
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,baseUP,5) coloured (9,82,40,255) // green
    ENDIF
    elsif red and not red[1] then
    lastpointx = 2
    IF lastpointx <> lastpointx[1] THEN
    drawpoint(barindex,baseDN,5) coloured(200,0,0,255)// red
    ENDIF
    endif
    /////////////////////////////////////////////////OK
    if  green > green [1] then
    lastpointy = 1
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,baseUP,3) coloured (255,255,240)// Ivoire
    ENDIF
    elsif  red > red [1] then
    lastpointy = 2
    IF lastpointy <> lastpointy[1] THEN
    drawpoint(barindex,baseDN,3) coloured (255,255,240)// Ivoire
    ENDIF
    endif
     
    RETURN 0 , 100 
    
    SARTORIUS-KHALED.jpg SARTORIUS-KHALED.jpg
    #187139 quote
    supertiti
    Participant
    Master

    Sartorius a l’air de partir dans le bon sens ?!

    Sartorius-310122.jpg Sartorius-310122.jpg
    #187141 quote
    supertiti
    Participant
    Master

    Bon timing pour ASML

    ASML-310122.jpg ASML-310122.jpg
    #187143 quote
    Khaled
    Participant
    Veteran

    Je ne trade pas les actions, encore moins tout ce qui s’apparente de la BioTech. Si cela t’intéresse, on pourrait créer un Screener sur la base de tes critères incluant celui du premier post.

    #187144 quote
    supertiti
    Participant
    Master

    Fin du purgatoire pour Eurofins, un beau champion national

    EUROFINS-310122.jpg EUROFINS-310122.jpg
    #187146 quote
    supertiti
    Participant
    Master

    @ Khaled

    Si tu sens bien l’affaire je suis partant pour un screener  Up  et un   DOWN , j’ai essayé mais c’est pas trop concluant : il me donne bien les points mais pas toujours sur le dernier jour de cotation.

    Ce qui m’intéresse ce sont les signaux de début de tendance ( comme tout le monde je pense) donc du dernier jour de cotation.

    #187149 quote
    Khaled
    Participant
    Veteran

    On peut essayer avec du MTF. J’imagine que Heikin Ashi n’est pas ton seul critère. Donnes moi tous tes critères et j’essayerai de composer avec.

    #187150 quote
    supertiti
    Participant
    Master

    Lyxor Robotics pour ceux qui s’intéresse à l’intelligence artificielle

    Lyxor-Robotics-310122.jpg Lyxor-Robotics-310122.jpg
Viewing 15 posts - 1 through 15 (of 36 total)
  • You must be logged in to reply to this topic.

HA NORMALISES A ZERO


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

This topic contains 35 replies,
has 2 voices, and was last updated by supertiti
4 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/26/2022
Status: Active
Attachments: 16 files
Logo Logo
Loading...