[RS][ALPHA]Predictive Range Analysis V0

this code is untested use at your own risk...
applying timed price change over the square to predict price expansion or contraction of the range, it is not predicting the future price only the range that is possible for the price to be in within a margin of error of possibility, with that said i think its very unlikely for price to fall outside the range, due to virtual constraint applied by the auto corrective/cyclical nature of price action.
Release Notes: update for V4, added option to show only last point in each series.
Release Notes: added option to select multiple last bars.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Hi, great work. Is it possible to only have the dots show up from the current trading day going forward?
So I can just see future dots and not the dots from the past?
It would make the chart a lot cleaner. Is this possible?
@Sebrox, it would be very similar to this:
Sebrox RicardoSantos
@RicardoSantos, Thanks, I found that script and applied it but I still like this one better :)
Is there a way this script can still be used but just have the dots in the past disappear and only have dots in the future appear?
If not I will just possibly turn the brightness way down so it doesn't clutter the chart but I can still see future dots maybe.
@Sebrox, you may just edit the script and add show_last=1 parameter to the plot() functions, will hide history except last value
+1 Reply
Sebrox RicardoSantos
@RicardoSantos, I put that inside the () area. When I saved it, it said Error: Unknown argument `show_last`;
@Sebrox, you need to

at the top
Sebrox RicardoSantos
@RicardoSantos, thanks. it saved successfully but when i add it to the chart it now shows:
Processing script...
line 40: Undeclared identifier 'olive';
line 40: Undeclared identifier 'circles';
It does to about line 55 I think.
@Sebrox, code updated for v4 + the option to toggle the last point only
Sebrox RicardoSantos
@RicardoSantos, Thanks! I deleted the script from my chart and tried to apply the new one but nothing has changed. Maybe it takes a while for it to be available or something.
@Sebrox, indicator options, toggle show_only_last to true
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out