Volatilité explosive

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

    Bonjour

    Serait il possible de convertir ce code de TradingView ?

    //@version=2
    study(title='[RS]Volatility Explosive Measure V0′)
    f_bullish_sequence()=>
    _output = 0
    _range = close – open
    _doji = _range == 0
    _up_bar = _range > 0 or _doji and _range[1] > 0
    _counter = barssince(not _up_bar)
    if (_up_bar)
    for _i = 0 to max(0, _counter – 1)
    _output := _output + _range[_i]
    _output

    f_bearish_sequence()=>
    _output = 0
    _range = close – open
    _doji = _range == 0
    _up_bar = _range < 0 or _doji and _range[1] < 0
    _counter = barssince(not _up_bar)
    if (_up_bar)
    for _i = 0 to max(0, _counter – 1)
    _output := _output + _range[_i]
    _output

    bull_seq = f_bullish_sequence()
    bear_seq = f_bearish_sequence()

    length = input(10)
    bull_ma = ema(bull_seq, length)
    bear_ma = ema(bear_seq, length)
    width = bull_ma – bear_ma

    plot(width, color=color(black, 0), style=area)
    // plot(bull_seq, color=color(lime, 0), style=columns)
    // plot(bear_seq, color=color(red, 0), style=columns)
    // plot(bull_ma, color=color(purple, 25), style=area)
    // plot(bear_ma, color=color(purple, 25), style=area)

    #189858 quote
    Victor5Victor5
    Participant
    Senior
    #189943 quote
    NicolasNicolas
    Keymaster
    Legend

    L’indicateur a été convertit, tu pourras le trouver ici: Volatility Explosive Measure

    #189995 quote
    Victor5Victor5
    Participant
    Senior

    Merci

Viewing 4 posts - 1 through 4 (of 4 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

Volatilité explosive


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Victor5 @lucky5 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Victor5Victor5
4 years, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/12/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...