PRC_Squeeze Light – As shadow in the chart behind the candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202636 quote
    jonpt88jonpt88
    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.

    Docs20Guide20Fakout2.png Docs20Guide20Fakout2.png
    #202654 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    squeeze-light.png squeeze-light.png
    #202667 quote
    jonpt88jonpt88
    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.
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

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 jonpt88jonpt88
3 years, 11 months ago.

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