Hull Candles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #138486 quote
    bolsatrilerabolsatrilera
    Participant
    Master

    Necesito ayuda. Encontré este indicador de Tradingview

    Tengo hecha una adaptación para Prorealtime , la única pega es que la linea de la media simple de 1 periodo (color azul) sale por detrás de las velas.¿Alguién sabría como hacer para que apareciera delante ?

    REM HULL CANDLES
    //@version=4
    
    // Pine Script v4
    // @author BigBitsIO
    // Script Library: https://www.tradingview.com/u/BigBitsIO/#published-script
    //study("Hull Candles [BigBitsIO]", overlay=true
    //adapted for Prorealtime v11.1 platform by bolsatrilera
    
    len = 10//input(10, minval=1, title="Length")
    lenBodyColor =10// input(10, minval=1, title="Body Color HMA Length")
    lenClose = 1 // input(1, minval=1, title="Close length")
    
    // I have consolidated some of this code from a prior example
    o = HullAverage[len](open)
    c = HullAverage[len](close)
    hi =HullAverage[len](high)
    l =HullAverage[len](low)
    
    ohlcFour =HullAverage[lenBodyColor]((open+high+low+close)/4)
    
    if ohlcFour > ohlcFour[1]  then
    drawcandle(o, hi, l, c) coloured (0,255,0) bordercolor (0,0,0)
    else
    drawcandle (o,hi,l,c) coloured (255,0,0) bordercolor (0,0,0)
    endif
    
    
    SMA =average[lenClose](close)
    
    return   SMA coloured(0,0,250)as "Close SMA"
    

     

    willi thanked this post
    ITX-Diario.png ITX-Diario.png
    #138532 quote
    NicolasNicolas
    Keymaster
    Legend

    Puede cambiar la transparencia alfa de la instrucción DRAWCANDLE para ver la línea SMA.

    bolsatrilera thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Hull Candles


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
6 years, 3 months ago.

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