Crear codigo Volumen climatico

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #138193 quote
    bolsatonimora2bolsatonimora2
    Participant
    Average

    Buenas noches,

    tengo un indicador de la plataforma Tradingview que me parece muy interesante ya que marca el soporte y resistencia de un volumen climatico:

    // © Dreadblitz
    //@version=4
    //
    study(“Climatic Volume X”, shorttitle = “CVX”, overlay=true)

    col_line= color.new(color.black, 30)
    //
    Length = input(10,title=”🔹 Length”)
    AverageVolume = sma(volume, Length)
    RelativeVolume = volume / AverageVolume
    HighVolume = input(2, minval=0.01,title=”🔹 High Volume = “)
    show_relative_volume= input(true,title=”Show Relative Volume”)
    show_lines = input(true,title=”Show Lines”)
    Extend_lines= input(10,title=”🔹 Extend Lines =”)

    //
    barcolor(RelativeVolume > HighVolume? color.white : na)
    //
    dt = time – time[1]

    if RelativeVolume > HighVolume and show_relative_volume
    label.new(bar_index, high, style=label.style_none,text=tostring(RelativeVolume,”#.#”), size=size.small, textcolor=color.black)
    if RelativeVolume > HighVolume and show_lines
    a=line.new(time -1*dt , low, time + Extend_lines*dt , low, xloc.bar_time, extend=extend.none, style=line.style_solid, color=col_line, width=1)
    b=line.new(time -1*dt , high, time + Extend_lines*dt , high, xloc.bar_time, extend=extend.none, style=line.style_solid, color=col_line, width=1)
    // Alert
    alertcondition(RelativeVolume > HighVolume,title=”Climatic Volume”,message=”Climatic Volume”)

     

    Alguien podria ayudarme a convertirlo a indicador de Prorealtime?

     

    gracias por vuestro esfuerzo y trabajo!!

    #138238 quote
    bolsatrilerabolsatrilera
    Participant
    Master

    Buenos Días Bolsatonimora2 :

    Se dá la coincidencia de que tengo una adaptación hecha para Prorealcode.

    Aquí te pongo tanto el código como un archivo itf listo para incorporar a tu plataforma.

    Antes que nada , debo decirte que cuando lo adapté me resultó un indicador familiar , y es que el Critical Volume es en realidad (cambiando alguna variable) el Volumen Proporcional Medio de Blai5 : https://www.blai5.net/blai5-volumen-proporcional-medio-vpm/

    No es la primera vez que ese forero de Tradingview publica un código sin ninguna referencia a su código fuente original.

    REM CRITICAL VOLUME X
    // on the Tradingview Platform by Dreadblitz
    // adapted for Prorealtime by Bolsatrilera
    //@version=4
    
    //study("Volumen Critico X", shorttitle = "VCX", overlay=false)
    
    volmax = highest[89](volume)
    vol = volume * 100 / volmax * 4 / 5
    volpmed = ExponentialAverage[21](vol)
    hvpm = vol - volpmed
    nivcrit= highest[89](hvpm)*0.618
    
    if hvpm > 0 and hvpm < nivcrit then
    r=30
    g=144
    b=255
    elsif hvpm > 0 and hvpm >= nivcrit then
    r=255
    g=0
    b=0
    else
    r=255
    g=255
    b=255
    endif
    
    
    return hvpm coloured(r,g,b)style (histogram)as "Critical volumex", 0 coloured(128,128,128)as "Nivel 0"
    
    Nicolas thanked this post
    TEF-Diario.png TEF-Diario.png CRITICAL-VOLUMEN-X.itf
    #138298 quote
    bolsatonimora2bolsatonimora2
    Participant
    Average

    Gracias por tu respuesta @bolsatrilera. Habría alguna posibilidad de poner las líneas de soporte y resistencia en la barra del precio del volumen climático? Gracias de nuevo

    Imagen-PNG-4.png Imagen-PNG-4.png
Viewing 3 posts - 1 through 3 (of 3 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

Crear codigo Volumen climatico


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 07/02/2020
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...