Having Trouble Adding Volatility Stop Bands to Price Chart?

Forums ProRealTime English forum ProBuilder support Having Trouble Adding Volatility Stop Bands to Price Chart?

  • This topic has 6 replies, 4 voices, and was last updated 4 years ago by avatarBard.
Viewing 7 posts - 1 through 7 (of 7 total)
  • #102555

    Hi there,

    I coded some Volatility Stop Bands and it shows up as an indicator in the lower pane (pls see image) but not on the main price chart?

    I think the coding’s correct, the idea grabbed from an article called “Maximising Risk-Adjusted gains with Trade Management – Trading Recipes” was:

    “Each day divide the close by its 144-day simple moving average. The result is a relative strength indicator we can call R. Take a 21-day simple moving average of R. Plot bands at intervals 3% above and below the 21-day smoothing. If R drops below the lower band, exit the trade on tomorrow’s open.”

    Any ideas?

    Cheers
    Bard

    #102559

    From your description in your post the indicator does not appear to be one that you apply to a price chart. It is meant to be a separate relative strength indicator. Just add R to your returned values to complete the indicator.

     

    #102563

    Cheers @Vonasi, I guess I kind of pictured it being overlaid on price to be able to see how price interacts within the indicator but take your point: “If R drops below the lower band, exit the trade on tomorrow’s open.” If they’re typical volatility bands they could be added to price, right?

    #102572

    The code is a ratio of price and normalized. It does not apply on the price chart.

    1 user thanked author for this post.
    #102594

    I have created an easier to read version by normalising the upper band as 100 and the lower as 0. Top indicator in the image is this new version with the original at the bottom.

     

    1 user thanked author for this post.
    #102598

    Link to above code added to here

    Snippet Link Library

     

    1 user thanked author for this post.
    #102664

    Nice job, thanks @Vonasi.

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

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