ZONE GRISE AUTOUR DE LA SMA200

Viewing 15 posts - 31 through 45 (of 65 total)
  • Author
    Posts
  • #201652 quote
    supertitisupertiti
    Participant
    Master

    @ Jacques
    J’ai un bug dans ton code ligne 37 avant If mm400 etc = erreur commande inconnue ?

    #201654 quote
    Roland57800Roland57800
    Participant
    Veteran

    Bonsoir,

    la ligne des 2% n’est pas coder

    j’ai expliqué précédemment qu’il faut cliquer sur le graphique clique droit, ajouter un indicateur

    et ajouter l’indicateur ligne horizontale et le mettre à 2

    voilà, il n’existe pas de code

    #201655 quote
    jacquesgermainjacquesgermain
    Participant
    Veteran

    ok en itf ci joint ce sera mieux

    monster-stocks.itf
    #201657 quote
    supertitisupertiti
    Participant
    Master

    J’ai fais ça :

    // CLOSE UP ZG 29.09.2022
    
    sma200 = average [200] (close)
    
    hh = average[200](high) + 5 * averagetruerange [200] (close)
    
    If close crosses over hh then
    cup = 1 // candlestick UP
    else
    cup = 0
    endif
    
    If close crosses under hh then
    cdw = 1 // candlestick DW
    else
    cdw = 0
    endif
    
    //////////////////////////////////////////////////////////////////
    If close > hh then
    drawcandle(open,high,low,close) coloured(30,144,255) //bordercolor (143,255,31)
    endif
    
    If close < cup then
    drawcandle(open,high,low,close) coloured(200,20,60) //bordercolor (200,20,60)
    endif
    
    If close > hh then
    colorbetween (close,hh,"green",150)
    endif
    //else
    //colorbetween (close,hh,"red",150)
    //endif
    /////////////////////////////////////////////////////////////////
    Return hh as "hh" ,sma200 as "sma200" ,cup as " cup " coloured ("green") , cdw as " cdw " coloured ("red")

    ////////////////////////////////////////////////////////////////////////////////////

    // CLOSE UP ZG 29.09.2022
    
    // sma200 = average [200] (close)
    
    hh = average[200](high) + 5 * averagetruerange [200] (close)
    
    If close crosses over hh then
    cup = 1 // candlestick UP
    else
    cup = 0
    endif
    
    If close crosses under hh then
    //cdw = 1 // candlestick DW
    else
    //cdw = 0
    endif
    
    //////////////////////////////////////////////////////////////////
    If close > hh then
    //drawcandle(open,high,low,close) coloured(30,144,255) //bordercolor (143,255,31)
    endif
    
    If close < cup then
    //drawcandle(open,high,low,close) coloured(200,20,60) //bordercolor (200,20,60)
    endif
    
    If close > hh then
    //colorbetween (close,hh,"green",150)
    endif
    //else
    //colorbetween (close,hh,"red",150)
    //endif
    /////////////////////////////////////////////////////////////////
    //Return hh as "hh" ,sma200 as "sma200" ,cup as " cup " coloured ("green") , cdw as " cdw " coloured ("red")
    
    c1 = close => hh
    
    SCREENER [ c1 ]

    resultat daily du screener : EDF, BIC

    Je joins un graphe de Argan en weekly qui est pas mal

    ARRGAN-weekly.jpg ARRGAN-weekly.jpg
    #201659 quote
    Roland57800Roland57800
    Participant
    Veteran

    le code de la pente

    sous réserve

    Periode = 200              //Période de la MM
    
    nbChandelier = 20          // Nombre de chandeliers sur lesquels on évalue la pente
    MM = average[Periode](close)
    
     
    pente = (( MM-MM [ nbchandelier]) / MM[nbchandelier]) * 100
    
    
    
    
    RETURN pente as " pente " , 0 as " zero "
    #201660 quote
    supertitisupertiti
    Participant
    Master

    Ton itf va bien , j’ai rejouté close as “close ” dans ton code et mis de la couleur
    je joins le CAC40 en daily

    Moster-stocks-CAC40.jpg Moster-stocks-CAC40.jpg
    #201662 quote
    supertitisupertiti
    Participant
    Master

    le screener down qui va bien : Amplitude

    Monster-DW-Amplitude.jpg Monster-DW-Amplitude.jpg
    #201664 quote
    supertitisupertiti
    Participant
    Master
    // MONSTER DW 29.09.2022
    
    //defparam drawonlastbaronly = true
    c1=DonchianChannelUp[253]//270
    mm200=average[200](close)
    mm400=average[400](close)
    
    bandsup=average[200](close)+5*AverageTrueRange[200](close)
    //bandinf=average[200](close)-5*AverageTrueRange[200](close)
    nbChandelier=20// Nombre de chandeliers sur lesquels on évalue la pente
    pente=((MM200-MM200[nbchandelier])/MM200[nbchandelier])*100
    D=close>mm200 and close>mm400 and close >bandsup and pente>=2 and c1>=c1[1]
    if D then
    //DRAWPOINT(barindex, bandsup,2)coloured(255,255,0)
    endif
    if D[1] and (close<mm200 or close<mm400 or close <bandsup or pente<=2 or c1<c1[1]) then
    //DRAWPOINT(barindex,high,2)coloured(255,0,0)
    endif
    if IsLastBarUpdate then
    if mm200 then
    S200a    = Average[200](close)
    ENDIF
    if close > S200a then
    //RS30a = 0                    // 102
    //GS30a = 255                    // 102
    //BS30a = 0                  // 102
    elsif close < S200a then
    //RS30a = 255                  //   0
    //GS30a = 0                    // 128
    //BS30a = 0
    ENDIF
    if close crosses over mm200 then
    //DRAWARROWUP (barindex, mm200 -0.3 ) coloured(0,0,255)
    ENDIF
    //drawtext("                                      ----------- SMA 200",barindex,S200a,Dialog,Bold,10 ) coloured (RS30a,GS30a,BS30a)
    if mm400 then
    S400a    = Average[400](close)
    ENDIF
    if close > S400a then
    //RS30a = 0                    // 102
    //GS30a = 255                    // 102
    //BS30a = 0                  // 102
    elsif close < S400a then
    //RS30a = 255                  //   0
    //GS30a = 0                    // 128
    //BS30a = 0
    ENDIF
    if close crosses over mm400 then
    //DRAWARROWUP (barindex, mm400 -0.3 ) coloured(0,0,255)
    ENDIF
    //drawtext("                                      ----------- SMA 400",barindex,S400a,Dialog,Bold,10 ) coloured (RS30a,GS30a,BS30a)
    endif
    // return c1 as "donchian sup",mm200 as "mm200",mm400 as "mm400",bandsup as "bandsup", bandinf as "bandinf" , close as "close"
    
    c1 = close crosses under  bandsup
    
    SCREENER  [c1]
    #201665 quote
    supertitisupertiti
    Participant
    Master
    // MONSTER UP 29.09.2022
    
    //defparam drawonlastbaronly = true
    c1=DonchianChannelUp[253]//270
    mm200=average[200](close)
    mm400=average[400](close)
    
    bandsup=average[200](close)+5*AverageTrueRange[200](close)
    //bandinf=average[200](close)-5*AverageTrueRange[200](close)
    nbChandelier=20// Nombre de chandeliers sur lesquels on évalue la pente
    pente=((MM200-MM200[nbchandelier])/MM200[nbchandelier])*100
    D=close>mm200 and close>mm400 and close >bandsup and pente>=2 and c1>=c1[1]
    if D then
    //DRAWPOINT(barindex, bandsup,2)coloured(255,255,0)
    endif
    if D[1] and (close<mm200 or close<mm400 or close <bandsup or pente<=2 or c1<c1[1]) then
    //DRAWPOINT(barindex,high,2)coloured(255,0,0)
    endif
    if IsLastBarUpdate then
    if mm200 then
    S200a    = Average[200](close)
    ENDIF
    if close > S200a then
    //RS30a = 0                    // 102
    //GS30a = 255                    // 102
    //BS30a = 0                  // 102
    elsif close < S200a then
    //RS30a = 255                  //   0
    //GS30a = 0                    // 128
    //BS30a = 0
    ENDIF
    if close crosses over mm200 then
    //DRAWARROWUP (barindex, mm200 -0.3 ) coloured(0,0,255)
    ENDIF
    //drawtext("                                      ----------- SMA 200",barindex,S200a,Dialog,Bold,10 ) coloured (RS30a,GS30a,BS30a)
    if mm400 then
    S400a    = Average[400](close)
    ENDIF
    if close > S400a then
    //RS30a = 0                    // 102
    //GS30a = 255                    // 102
    //BS30a = 0                  // 102
    elsif close < S400a then
    //RS30a = 255                  //   0
    //GS30a = 0                    // 128
    //BS30a = 0
    ENDIF
    if close crosses over mm400 then
    //DRAWARROWUP (barindex, mm400 -0.3 ) coloured(0,0,255)
    ENDIF
    //drawtext("                                      ----------- SMA 400",barindex,S400a,Dialog,Bold,10 ) coloured (RS30a,GS30a,BS30a)
    endif
    // return c1 as "donchian sup",mm200 as "mm200",mm400 as "mm400",bandsup as "bandsup", bandinf as "bandinf" , close as "close"
    
    c1 = close crosses over  bandsup
    
    SCREENER  [c1]
    #201667 quote
    supertitisupertiti
    Participant
    Master

    Pourquoi as tu mis le Donchian à 253 alors qu’il serait optimisé à 270 ?

    une bonne raison ?

    #201669 quote
    jacquesgermainjacquesgermain
    Participant
    Veteran

    a 253  pour correspondance avec screener , car proscreener limite à 256 …  de plus il donne de bons résultats

    #201670 quote
    supertitisupertiti
    Participant
    Master

    merci pour ta réponse
    bonne soirée

    #201672 quote
    supertitisupertiti
    Participant
    Master

    On peut rajouter cela pour avoir les candlesticks en deux couleurs :

    ////////////////////////////////////////////////////////////
    If close > bandsup then
    drawcandle(open,high,low,close) coloured(0,128,0) // coloured(30,144,255) //bordercolor (143,255,31)
    endif
    
    If close < bandsup then
    drawcandle(open,high,low,close) coloured(255,0,0) //coloured(200,20,60) //bordercolor (200,20,60)
    endif
    ////////////////////////////////////////////////////////////
    Monster-GTT.jpg Monster-GTT.jpg
    #201674 quote
    fifi743fifi743
    Participant
    Master

    bonjour

    vous avez fait un super boulot

    la quantité historique est de 1024 maintenant donc le donchian peu passer en 270

    #201676 quote
    jacquesgermainjacquesgermain
    Participant
    Veteran

    hélas non pour prt version 11.1 (saxobanque) je suis toujours à 256

Viewing 15 posts - 31 through 45 (of 65 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ZONE GRISE AUTOUR DE LA SMA200


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 64 replies,
has 12 voices, and was last updated by supertitisupertiti
3 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/24/2022
Status: Active
Attachments: 17 files
ProRealCode ProRealCode
Loading...