eouwe

Evolution Ranger V2

eouwe Updated   
This indicator plots 4H and 15M ranges and fractals.
The ranges are formed by the fractals and breaks of these candles
It also shows in a label if the trend BIAS on the 4H is "UC, NFT, FT or SFT" (Long or Short)

This will give the user a BIAS for the coming trading day. So when price breaks out of the plotted range, you'll have a new bias trend change
If it trading within the range, the trend bias remains the same
UC = unconfirmed Bias => wait
NFT= No follow through => Take only trades in the opposite direction from the break
FT = Follow through. => Wait for price to retrace to the other side of the 4H range, than trade in the direction of the BIAS
SFT = Strong follow through => Take trades in the direction of the BIAS anywhere in the 4H range

It draws all the range lines you need, so you don't have to.
4H Range (also on 15M), on the 15M; external and internal ranges.

Lots of possibilities:
-Plots the fractals, so you don't need another indicator. (Option to let the fractals repaint or not)
-4H Fractal Range lines and BIAS (previous fractal break line) and a 4H-BIAS label both on the M15 and 4H charts. No more switching between 4H and 15M charts needed.
-Option to switch on/off historic ranges.
-BIAS label shows 'UC, NFT, FT and SFT' - Long and Short
-Lots of alerts, break of 4H range, 15M external and internal ranges. You can go wild with it. Select 'Alert Once per bar'
-Option to show the 'Inside bar' and in a different candle colour.
-Option to toggle the repaint of fractal when the current candle has not closed yet.
-Option to show the BIAS label only for a confirmed bar while trading in live markets. When 'Off' the BIAS label repaints, but gives information on what might come, when the current bar closes.
-Most of the lines can be adjusted for colour and style to your own liking.
Release Notes:
v2.3
- cleaned up code and colour options
- Delayed the drawing of Ext.range with 1 bar, to be able to see the break when it triggers on 15M charts
- removed the "Show Bias only for confirmed bar " option due to script limits reached (Instead there is a "Backtest Mode' now)
- Updated the BIAS label to show a "4H Break Wait!" and "Wait!" message when 4H candle is not yet closed or Bias is not yet confirmed.
- Fix: break of 4H range and 15M ext. range - alerts
- Fix: Backtest mode. Doing backtests together with using the indicator in live markets is still under construction. Use the backtest mode with care!
While in replay, switch on the Backtest mode.
Because the 4H candle is already known upon the start of the 1st 15M bar in that 4H candle, this could give incorrect results. I have tried to circumnavigate that with the 'Backtest Mode'
Release Notes:
v2.4
Bug fixing on the Bias logic code.
Release Notes:
v2.45
// Bug fix: Bias logic
// Added: Other TF's option. Now it is possible to select a different HTF and Entry-LTF than the default 4H and 15M.
Select the correct TF's in the settings! Otherwise the ranges are not plotted correctly.
Caution: In the very low TFs the indicator is not really usable.
// Added: 33% and 66% line option for the ranges
Take note that there is separate Backtest indicator version
Release Notes:
v2.46
// Added: 45% and 55% lines options for the ranges
// Fix: Bug that displayed an incorrect label when selecting other TF's than the 4H/15M
Release Notes:
v2.47
// Cosmetic update: replaced 'L' and 'S' Bias with up/down arrows
Release Notes:
v2.48
// Cosmetic update: replaced 'L' and 'S' Bias with up/down triangles. The tiny arrows were sometimes hard to see.
Release Notes:
v2.5
// Added Momentum filter bullets and label.
// Because the HTF momentum will change only every few days or even weeks, these items will only be shown on the HTF chart to protect loading time of the indicator.
// The filter is looking at former HTF ranges Hi/Lo's for its calculation of the momentum direction
// Reduced font size of the label.
Release Notes:
// v2.51
// Fixed: When selecting these HTF's: 1D, 1W or 1M, the Momentum filter would not show up on the HTF chart.
// I have coded a way around this error.
// Fixed: The fractals could not change color.
Release Notes:
v2.52
// Added: Momentum label on LTF. Caution: the Momentum label on the LTF chart gives the momentum of the HTF set in the indicator settings.
// So when using other timeframes than the default 4H and 15M, make sure to set these TF's correct in the settings
// Added: Timeframes set in the settings are now shown in the Bias-label WHEN these differ from the default 240 and 15 minutes.
// Make sure these set timeframes correspond with your charts timeframe.
Release Notes:
// v2.53
// Added: Option to choose of the user wants the momentum change confirmed by Close of the candle and lower/higher than previous bullet or just the break of the high/low of the previous bullet.
Default is Off (so just high/low breaks)
Release Notes:
// v2.6
// Added: Trade Matrix label logic.
// Mind: the momentum bias is based on my own take on momentum. Two HTF BODY-breaks of previous ranges. It might differ from
// EM form time to time, but when the market really has momentum (so not ranging) it will show correct momentum.
// Keep in mind that the momentum filter was designed to keep you out of CT trades in markets with strong momentum, so this
// filter will not work in ranging markets and should be disregarded IMHO.
// "P" trades pro bias (NFT,FT,SFT) and "C" stands for counter Bias trades ( CT-NFT, CT-FT, CT-SFT)
// Green matrix label is high prob, yellow matrix label is medium prob and red matrix label is low probability.
// Trade Matrix and Momentum filter can be still be switched OFF in the settings.
Release Notes:
// v2.61
// Cosmetic: on black backgrounds the Matrix text was too hard to read.
// Now the text color can be user selected.
Release Notes:
// v2.62
// Added: The Matrix P and C labels are now set in their corresponding Premium or Discount location.
// For example: FT bullish and Momentum bullish: The "P" label will now be below the "C" label to represent Pro bias buys in Discount.
Release Notes:
// v2.64
// Removed: Backtest mode boolean. (not needed)
// Added: Midfill coloring of the HTF range. (the section between Upper and Lower range)
// Added: HTF Bias line plot on LTF. This is a line which indicates the last broken fractal level. And therefore determines the BIAS on the HTF (NFT, FT SFT)
// (default = OFF)
Release Notes:
// v2.66
// Fixed Bias logic. "The Jan 9th 23 EU" bug. This bug showed an incorrect Bias in some rare situations.
Release Notes:
// v2.67
// Fix series error in big Ranges
Release Notes:
// v2.68
// Fix 20-9-23 USDCHF 4H bias bug
Release Notes:
// v2.69
// fix AUDUSD 29 aug 23 4H, bias bug
// fix BIAS for Live version. When Bias is NFT and price again breaches the hi/lo of the candle that caused the NFT, bias should go UC and then wait for HTF candle closure to determine if bias will be NFT or FT.
// changed alert logic due to Pine Script limitations
Release Notes:
// v2.69a
// Fix GBPUSD Oct 4 2023, 4H. Rare occasion where a big 4H candle sweeps the fractal high and low in one go and makes a new higher close as well.
Release Notes:
// v2.69b
// Fix #2: GBPUSD 4-10-23 4H
Release Notes:
// v2.69c
// again a fix for the NFT Bias. When there is a wick break NFT and then a 4H breach; then bias should stay NFT UNTIL candle is confirmed, where it stays NFT or becomes UC.
// When there is a two candle NFT and a 4H breach; then it becomes UC until candle is confirmed NFT or FT
Release Notes:
//v2.69d
// Added input for Alternative types of Bias naming
Release Notes:
// v2.69e
// Added input for selecting Box/Lines on LTF for external and internal Ranges
// adjusted the LTF box and range lines length
Release Notes:
// v2.83
// Leaned the code under the hood
// Added alerts for breaks of ranges when in Disc/Prem or pro Momentum
// Improved plotting of ranges lines / boxes.
// On the Lower TF the default plot for the external range is now a box.
// The default for the internal range are now lines.
// The old format (external: lines and internal: box) can still be selected in the settings.
Release Notes:
// v2.84
// Corrected plot of the external box on LTF when low or high was fresh broken
// Added optional 5% lines in HTF range.
Release Notes:
// v2.84b
// upfract and dnfract fix
Release Notes:
// v2.84c
// Typo in script
Release Notes:
// v2.84c en d
// upfract and dnfract fix and confusion USDCHF on Oct 23 2023
Release Notes:
// v2.85
// Added improved Alert Checkboxes for the range breaks, including an Alert Time Window Filter for 2 KZ's with auto DST set.
// Added optional default Discord Webhook string for alerts() to Discord or Telegram
// Added Alternative Bias Naming
// Added input for extending HTF lines on LTF chart to the left
// Added Basic Session Background Coloring for the LTF. This coloring is following the KZ time settings
Release Notes:
// v2.85 extra remark
// For the new alerts function in the settings , pls download the updated manual
Release Notes:
// v2.86
// Added Early momentum logic to be more nimble after the first HTF fractal dot has plotted.
// The 'older' conservative setting can still be selected.
// Added Supertrended Momentum logic, with optional visible SuperTrend displayed on the chart.
// So there are three choices of momentum now. Easy and conservative Previous range breaks (w. momentum dots) and the Supertrended Momentum.
//Added an 'X' and bars on the HTF chart, to make visible where the momentum has changed.
// The arrow in the Bias-label follows this logic.
// Added optional HTF fractals displayed on LTF chart option. Both HTF external as internal are displayed.
//Make sure you download the updated manual with the link you have received when contacting me. If you don't have the link anymore, write an email to the address in my TV-profile. It is not allowed to post links here.
Release Notes:
// v2.87
// Added optional HTF, Ext and Int range break detection on the LTF, with color/style change of the box/lines. With adjustable minimum Sweep required, default: 1 pip)
Box range break: upon initial break of the range the box-linestyle will be dashed for the 1st break-bar.
On the next bars, while the break is still active (no other fractal has formed), the box will show a solid linestyle.
The broken box will remain its position, until a new fractal has formed or the trade would have been executed or invalidated.
For the Range Lines break, the color will change until the next fractal has formed.
The HTF range edges on the LTF chart, will change to dashed lines if they have changed position (price) within the last 3 bars.
The manual has been updated with examples of the range breaks.
// Added a 3rd KZ for Asian TZ traders
Release Notes:
// v2.88
// Tweaked the logic of breaking the HTF, Int. and Ext. ranges.
// Alerts got sometimes triggered a second time for the same break.
// Advise to delete any alerts you have set with previous versions and re-create them with this version.
Release Notes:
// v2.88a
// Bug fix of rare Bias plot
// Added coloring option for the Matrix label
Release Notes:
// v2.89
// Removed the 'Lower Timeframe' input setting. This to be able to switch the LTF's more easily, and still having your set HTF as the reference TF
// When switching to an higher TF than the HTF set in the settings, will give an warning msg on the chart.
Release Notes:
// v2.89a
// Non critical update. Increased the max_bars_back number. Sometimes there is a big 4H range due to a big price movement (like USDJPY Oct 3 '23). This big range could give
// an error on the 15M, if the 4H-range was not broken within a 1000 15M bars. (The mentioned 4H range on USDJPY took almost 1600 15M bars to break it)
Release Notes:
// v2.89b
// Fixed Ext. break alerts. These alerts would not always trigger when all conditions were met.
// Please delete first any alerts you had set with a version prior to this version and re-create them.
Release Notes:
// v2.89c
// Bug Fixed Ext. break alerts
// Please delete first any alerts you had set with a version prior to this version and re-create them.
Release Notes:
// v2.89d
// Bug Fixed break alerts. When price breaks an int or ext range a couple of times within 1 bar, the alert would sometimes only go off once the candle closed.
// Please delete first any alerts you had set with a version prior to this version and re-create them.
Release Notes:
// v2.89e
// Bug fix, In big HTF ranges that last a long time, the plotting of the HTF range on the LTF chart would sometimes be wrong.
// Improved Ext. range break logic
Release Notes:
// v2.89f
// Added Momentum Change alert
// Fixed SuperMomentum plotting logic
// Removed New Fractal alert

Contact: evolutionranger1@gmail.com
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact eouwe for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

You can contact me preferably by EMAIL (see my profile)

Want to use this script on a chart?

Warning: please read before requesting access.