FIBONACCI DYNAMIC

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #250092 quote
    ligonnet
    Participant
    Junior

    Bonjour,

    j’utilise dans mon trading les ratio de Fibonacci.j’ai testé l’indicateur suivant trouvé sur prorealcode qui me va bien.

    Mais une fois importé dans la plateforme ,il m’affiche uniquement les niveaux de 38.2 et 50. J’aimerai y rajouter le niveau de 61.8  avec de manière à avoir un canal ou  50% serait la middle line de ce canal.

    Merci d’avance pour votre aide.

    //PRC_Fibonacci Golden Wave
    //version = 0
    //13.03.24
    //Iván González @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge

    #250100 quote
    Iván González
    Moderator
    Master

    Bonjour. Je l’ai préparé pour que l’indicateur affiche comme niveau 1 le 38 %, niveau 2 le 62 % et une ligne médiane qui correspond à 50 %.

    //-------------------------------------------------------------------//
    //PRC_Fibonacci Golden Wave
    //version = 0
    //13.03.24
    //Iván González @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //-------------------------------------------------------------------//
    //-------------------------------------------------------------------//
    prd=20
    usepivots=0 //Boolean/ 0=Calculate Donchian Channel / 1=Calculate Pivot Points
    level1=2 //1=0.236 / 2=0.382 / 3=0.500 / 4=0.618 / 5=0.786
    level2=4//1=0.236 / 2=0.382 / 3=0.500 / 4=0.618 / 5=0.786
    //-------------------------------------------------------------------//
    //-----Level 1 Selection---------------------------------------------//
    if level1=1 then
    fibArea1=0.236
    elsif level1=2 then
    fibArea1=0.382
    elsif level1 = 4 then
    fibArea1=0.618
    elsif level1=5 then
    fibArea1=0.786
    else
    fibArea1=0.500
    endif
    //-------------------------------------------------------------------//
    //-----Level 2 Selection---------------------------------------------//
    if level2=1 then
    fibArea2=0.236
    elsif level2=2 then
    fibArea2=0.382
    elsif level2=3 then
    fibArea2=0.500
    elsif level2=5 then
    fibArea2=0.786
    else
    fibArea2=0.618
    endif
    //-------------------------------------------------------------------//
    //-----Level Top and Bottom Calculation------------------------------//
    if usepivots then
    //-----Pivot Points Method----------------------------------------//
    src1 = low
    src2 = high
    //-----pivots low
    if src1 > src1[prd] and lowest[prd](src1) > src1[prd] and src1[prd] < lowest[prd](src1)[prd+1] then
    $ply[z+1] = src1[prd]
    $plx[z+1] = barindex[prd]
    z = z+1
    endif
    //-----pivots high
    if src2 < src2[prd] and highest[prd](src2)<src2[prd] and src2[prd]>highest[prd](src2)[prd+1] then
    $phy[t+1]=src2[prd]
    $phx[t+1]=barindex[prd]
    t=t+1
    endif
    //-----Top and Bottom level
    if isset($phy[t]) and isset($ply[z]) then
    fibtop=$phy[t]
    fibbot=$ply[z]
    diff=fibtop-fibbot
    fib1=fibtop-(diff*fibArea1)
    fib2=fibtop-(diff*fibArea2)
    endif
    else
    //-----Donchian----- Method----------------------------------------//
    fibtop=highest[prd](high)
    fibbot=lowest[prd](low)
    diff=fibtop-fibbot
    fib1=fibtop-(diff*fibArea1)
    fib2=fibtop-(diff*fibArea2)
    endif
    //-------------------------------------------------------------------//
    colorbetween(fib1,fib2,"orange",100)
    //-------------------------------------------------------------------//
    myfib1=round(fib1,2)
    myfib2=round(fib2,2)
    if islastbarupdate then
    drawtext("Fibo Level #fibArea1#: #myfib1#",barindex+5,fib1)
    drawtext("Fibo Level #fibArea2#: #myfib2#",barindex+5,fib2)
    endif
    //-------------------------------------------------------------------//
    MidLine=(fib1+fib2)/2
    //-------------------------------------------------------------------//
    return fib1 as "Fibonacci Level1" coloured("orange"), fib2 as "Fibonacci Level2" coloured("orange"), MidLine coloured("blue")
    2025-08-27_10-06.png 2025-08-27_10-06.png
    #250112 quote
    ligonnet
    Participant
    Junior

    Merci Ivan

    #250362 quote
    ligonnet
    Participant
    Junior

    Bonjour Ivan,

    Suite de notre échange de la semaine dernière,

    Serait il possible sur cette dernière configuration de pouvoir y rajouter un réglage d’accès rapide dans le menu configurer  de manière à pouvoir l’utiliser sur un timeframe différent du graphique ?

    Dans l’idéal  mois , semaine, daily, H4, H1 , 30 m , 15 m , 5 m ,1m  Ou alors un réglage en nombre de minutes ?

    D’avance merci

    #250367 quote
    Iván González
    Moderator
    Master

    Bonjour. Vous pouvez mettre au début **timeframe(daily,updateonclose)** par exemple.
    Tenez compte que vous ne pourrez utiliser l’indicateur que sur des unités de temps inférieures et qui soient des multiples de l’actuelle.

    timeframe(daily,updateonclose)
    //-------------------------------------------------------------------//
    //PRC_Fibonacci Golden Wave
    //version = 0
    //13.03.24
    //Iván González @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //-------------------------------------------------------------------//
    //-------------------------------------------------------------------//
    prd=20
    usepivots=0 //Boolean/ 0=Calculate Donchian Channel / 1=Calculate Pivot Points
    level1=2 //1=0.236 / 2=0.382 / 3=0.500 / 4=0.618 / 5=0.786
    level2=4//1=0.236 / 2=0.382 / 3=0.500 / 4=0.618 / 5=0.786
    //-------------------------------------------------------------------//
    //-----Level 1 Selection---------------------------------------------//
    if level1=1 then
    fibArea1=0.236
    elsif level1=2 then
    fibArea1=0.382
    elsif level1 = 4 then
    fibArea1=0.618
    elsif level1=5 then
    fibArea1=0.786
    else
    fibArea1=0.500
    endif
    //-------------------------------------------------------------------//
    //-----Level 2 Selection---------------------------------------------//
    if level2=1 then
    fibArea2=0.236
    elsif level2=2 then
    fibArea2=0.382MyIndicator(2)
    elsif level2=3 then
    fibArea2=0.500
    elsif level2=5 then
    fibArea2=0.786
    else
    fibArea2=0.618
    endif
    //-------------------------------------------------------------------//
    //-----Level Top and Bottom Calculation------------------------------//
    if usepivots then
    //-----Pivot Points Method----------------------------------------//
    src1 = low
    src2 = high
    //-----pivots low
    if src1 > src1[prd] and lowest[prd](src1) > src1[prd] and src1[prd] < lowest[prd](src1)[prd+1] then
    $ply[z+1] = src1[prd]
    $plx[z+1] = barindex[prd]
    z = z+1
    endif
    //-----pivots high
    if src2 < src2[prd] and highest[prd](src2)<src2[prd] and src2[prd]>highest[prd](src2)[prd+1] then
    $phy[t+1]=src2[prd]
    $phx[t+1]=barindex[prd]
    t=t+1
    endif
    //-----Top and Bottom level
    if isset($phy[t]) and isset($ply[z]) then
    fibtop=$phy[t]
    fibbot=$ply[z]
    diff=fibtop-fibbot
    fib1=fibtop-(diff*fibArea1)
    fib2=fibtop-(diff*fibArea2)
    endif
    else
    //-----Donchian----- Method----------------------------------------//
    fibtop=highest[prd](high)
    fibbot=lowest[prd](low)
    diff=fibtop-fibbot
    fib1=fibtop-(diff*fibArea1)
    fib2=fibtop-(diff*fibArea2)
    endif
    //-------------------------------------------------------------------//
    colorbetween(fib1,fib2,"orange",100)
    //-------------------------------------------------------------------//
    MidLine=(fib1+fib2)/2
    //-------------------------------------------------------------------//
    timeframe(default)
    myfib1=round(fib1,2)
    myfib2=round(fib2,2)
    
    if islastbarupdate then
    drawtext("Fibo Level #fibArea1#: #myfib1#",barindex+5,fib1)
    drawtext("Fibo Level #fibArea2#: #myfib2#",barindex+5,fib2)
    endif
    //-------------------------------------------------------------------//
    return fib1 as "Fibonacci Level1" coloured("orange"), fib2 as "Fibonacci Level2" coloured("orange"), MidLine coloured("blue")

    Vous pouvez voir plus d’informations sur timeframe ici : https://www.prorealcode.com/documentation/timeframe-probacktest-proorder/

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

FIBONACCI DYNAMIC


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
ligonnet @ligonnet Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Iván González
5 months, 3 weeks ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 08/27/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...