Text on candle stick and volume histogram

Forums ProRealTime English forum ProBuilder support Text on candle stick and volume histogram

Viewing 3 posts - 1 through 3 (of 3 total)
  • #66693

    Good day,

    I found this code on the ProRealCode Library.  Need some help with the following.   When the bull line crosses over the bear line I would like to insert a “BULL” text on the:

    1. Corresponding volume bar or histogram on this indicator
    2. On the corresponding Price candle. I would like the “Bull” text to appear just above the candle stick.
    3. Vice versa for when the bear line crosses the bull line.

    All credit to the original designer of the code.

    ref=(close-low)/range
    volbull=ref*volume
    volbear=volume

    if close>=open then
    greenbarcount=1
    greenvolume=volume
    redbarcount=0
    redvolume=0
    else
    greenbarcount=0
    greenvolume=0
    redbarcount=1
    redvolume=volume
    endif
    //media volumi rossi e verdi per media mobile semplice
    mmred=summation[period](redvolume)/summation[period](redbarcount)
    mmgreen=summation[period](greenvolume)/summation[period](greenbarcount)

    return volbear coloured (205,0,0) style (histogram), volbull coloured (0,190,0) style (histogram), mmred coloured (255,0,0) as “Bear average”,mmgreen as “Bull average”

     

    Regards,

    Segie

     

     

    #66694

    To write code, please use the <> “insert PRT code” button, to make code easier to read.

    Thank you.

    #66729

    Hope this helps

     

     

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login