PRC_Squeeze Light – As shadow in the chart behind the candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202636 quote
    jonpt88
    Participant
    New

    I was wondering if it would be possible to change the form of the “PRC_Squeeze Light” indicator from oscillator to a shadow behind the candle in question itself. Similar to the alpha-trend ” volatility squeeze” signal. Is that possible? I appreciate the signal will not coincide the idea is just the design.

    #202654 quote
    Nicolas
    Keymaster
    Master

    Here is the modified code with the color fill between the bollinger bands in case of “Squeeze Light”:

    //PRC_Squeeze Light | indicator
    //07.11.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    bolPrd=21
    bolDev=2.0
    keltPrd=20
    keltFactor=1.5
    // --- end of settings
    
    diff = averagetruerange[keltPrd]*keltFactor
    stdd = std[bolPrd](close)
    bbs = bolDev*stdd/diff
    
    if bbs<1 then
    alpha=100
    else
    alpha=0
    endif
    colorbetween(average[bolprd]+boldev*stdd,average[bolprd]-boldev*stdd,"crimson",alpha)
    
    return
    jonpt88 thanked this post
    #202667 quote
    jonpt88
    Participant
    New

    Thank you Nicholas – this is so beautiful addition :), and I am honoured for your reply . You are truly the legend of this forum. Mercy Beaucoup!

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

PRC_Squeeze Light – As shadow in the chart behind the candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
jonpt88 @jonpt88 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/16/2022
Status: Active
Attachments: 2 files
Logo Logo
Loading...