Importer un code source depuis trading view

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #126918 quote
    Sanglier
    Participant
    Junior

    Bonjour

    est-il possible d’utiliser le code source d’un indicateur créer par la communauté trading view sur prt ?

    merci d’avance

    //
    // @author LazyBear
    // List of all my indicators: https://www.tradingview.com/v/4IneGo8h/
    //
    study(shorttitle = “SQZMOM_LB”, title=”Squeeze Momentum Indicator [LazyBear]”, overlay=false)

    length = input(20, title=”BB Length”)
    mult = input(2.0,title=”BB MultFactor”)
    lengthKC=input(20, title=”KC Length”)
    multKC = input(1.5, title=”KC MultFactor”)

    useTrueRange = input(true, title=”Use TrueRange (KC)”, type=bool)

    // Calculate BB
    source = close
    basis = sma(source, length)
    dev = multKC * stdev(source, length)
    upperBB = basis + dev
    lowerBB = basis – dev

    // Calculate KC
    ma = sma(source, lengthKC)
    range = useTrueRange ? tr : (high – low)
    rangema = sma(range, lengthKC)
    upperKC = ma + rangema * multKC
    lowerKC = ma – rangema * multKC

    sqzOn = (lowerBB > lowerKC) and (upperBB < upperKC)
    sqzOff = (lowerBB < lowerKC) and (upperBB > upperKC)
    noSqz = (sqzOn == false) and (sqzOff == false)

    val = linreg(source – avg(avg(highest(high, lengthKC), lowest(low, lengthKC)),sma(close,lengthKC)),
    lengthKC,0)

    bcolor = iff( val > 0,
    iff( val > nz(val[1]), lime, green),
    iff( val < nz(val[1]), red, maroon))
    scolor = noSqz ? blue : sqzOn ? black : gray
    plot(val, color=bcolor, style=histogram, linewidth=4)
    plot(0, color=scolor, style=cross, linewidth=2)

    squeeze-momentum-indicator.png squeeze-momentum-indicator.png
    #126920 quote
    Nicolas
    Keymaster
    Master

    Bien sûr….que non !

    Il y a des codes de squeeze sur le site par ailleurs.

    #126921 quote
    Sanglier
    Participant
    Junior

    d’accord je vais voir si je trouve quelque chose d’aussi bien.
    au revoir

    #126924 quote
    Sanglier
    Participant
    Junior

    par ailleurs une fonction recherche serait fort utile pour trouver les dits codes

    #126925 quote
    robertogozzi
    Moderator
    Master

    Chaque fois que vous survolez votre avatar, une boîte de recherche apparaît. Ne soyez pas timide!

    #126927 quote
    Sanglier
    Participant
    Junior

    effectivement je n’avais pas remarqué ! merci

    #126987 quote
    Nicolas
    Keymaster
    Master

    https://www.prorealcode.com/prorealtime-indicators/squeeze-momentum-indicator/

    Il doit s’agir du même indicateur de mémoire.

    Autres posts de la library liés au squeeze : https://www.prorealcode.com/tag/squeeze/

    #127320 quote
    Sanglier
    Participant
    Junior

    non cela n’est malheureusement pas le même.

    j’en ai testé énormément mais aucun n’est aussi précis que celui dont je parlais pour l’instant, donc je continue mes recherches…

     

    à bientôt

    #127407 quote
    Nicolas
    Keymaster
    Master

    Je vois ce dont il s’agit. La prochaine fois merci de respecter les règles de publication pour les demandes de conversion de code: Demande de conversion de code gratuite

    Je vais y regarder dés que possible.

    #127559 quote
    Sanglier
    Participant
    Junior

    ce sera fait ! merci pour votre aide, j’ignorais qu’on pouvais demander un aussi gros travail.

    #127571 quote
    Nicolas
    Keymaster
    Master

    L’indicateur a été convertit et est désormais disponible dans notre bibliothèque de code pour ProRealTime: Squeeze Momentum Indicator

    squeeze-momentum-indicator-tradingview-prorealtime.png squeeze-momentum-indicator-tradingview-prorealtime.png
    #127602 quote
    Sanglier
    Participant
    Junior

    merci beaucoup ! je suis content de voir que le nouvel indicateur a déjà un petit succès avec 16 téléchargements.

    je m’en vais tester cela !

     

    merci encore pour votre travail et au plaisir

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

Importer un code source depuis trading view


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Sanglier @sanglier Participant
Summary

This topic contains 11 replies,
has 3 voices, and was last updated by Sanglier
5 years, 10 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/19/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...