Monday_Weekly_Range/ErkOzi/Deviation Level/V1"Hello, first of all, I believe that the most important levels to look at are the weekly Fibonacci levels. I have planned an indicator that automatically calculates this. It models a range based on the weekly opening, high, and low prices, which is well-detailed and clear in my scans. I hope it will be beneficial for everyone.
***The logic of the Monday_Weekly_Range indicator is to analyze the weekly price movement based on the trading range formed on Mondays. Here are the detailed logic, calculation, strategy, and components of the indicator:
***Calculation of Monday Range:
The indicator calculates the highest (mondayHigh) and lowest (mondayLow) price levels formed on Mondays.
If the current bar corresponds to Monday, the values of the Monday range are updated. Otherwise, the values are assigned as "na" (undefined).
***Calculation of Monday Range Midpoint:
The midpoint of the Monday range (mondayMidRange) is calculated using the highest and lowest price levels of the Monday range.
***Fibonacci Levels:
// Calculate Fibonacci levels
fib272 = nextMondayHigh + 0.272 * (nextMondayHigh - nextMondayLow)
fib414 = nextMondayHigh + 0.414 * (nextMondayHigh - nextMondayLow)
fib500 = nextMondayHigh + 0.5 * (nextMondayHigh - nextMondayLow)
fib618 = nextMondayHigh + 0.618 * (nextMondayHigh - nextMondayLow)
fibNegative272 = nextMondayLow - 0.272 * (nextMondayHigh - nextMondayLow)
fibNegative414 = nextMondayLow - 0.414 * (nextMondayHigh - nextMondayLow)
fibNegative500 = nextMondayLow - 0.5 * (nextMondayHigh - nextMondayLow)
fibNegative618 = nextMondayLow - 0.618 * (nextMondayHigh - nextMondayLow)
fibNegative1 = nextMondayLow - 1 * (nextMondayHigh - nextMondayLow)
fib2 = nextMondayHigh + 1 * (nextMondayHigh - nextMondayLow)
***Fibonacci levels are calculated using the highest and lowest price levels of the Monday range.
Common Fibonacci ratios such as 0.272, 0.414, 0.50, and 0.618 represent deviation levels of the Monday range.
Additionally, the levels are completed with -1 and +1 to determine at which level the price is within the weekly swing.
***Visualization on the Chart:
The Monday range, midpoint, Fibonacci levels, and other components are displayed on the chart using appropriate shapes and colors.
The indicator provides a visual representation of the Monday range and Fibonacci levels using lines, circles, and other graphical elements.
***Strategy and Usage:
The Monday range represents the starting point of the weekly price movement. This range plays an important role in determining weekly support and resistance levels.
Fibonacci levels are used to identify potential reaction zones and trend reversals. These levels indicate where the price may encounter support or resistance.
You can use the indicator in conjunction with other technical analysis tools and indicators to conduct a more comprehensive analysis. For example, combining it with trendlines, moving averages, or oscillators can enhance the accuracy.
When making investment decisions, it is important to combine the information provided by the indicator with other analysis methods and use risk management strategies.
Thank you in advance for your likes, follows, and comments. If you have any questions, feel free to ask."
OTE
SME Backtesting [TFO]This strategy script is an extension of my Smart Money Essentials (SME) indicator and aims to provide a simplified means of backtesting complex trade models that incorporate a variety of Smart Money Concepts.
Among other things, Smart Money Essentials contains logic for:
- Market structure
- Fair Value Gaps
- Order Blocks
- Breaker Blocks
- Optimal Trade Entries
- HTF Market Structure
The Confluence section can then be utilized to build and test trade models from any combination of the included factors. As a basic example, we could test a strategy that only utilizes market structure. With Manual Exit turned off, we would simply be flipping long on bullish market structure shifts, and reversing short on bearish market structure shifts for the duration of the user-defined session.
As one might expect, such a simple strategy isn't expected to produce very reliable results by itself. However, we could build on these ideas by adding extra layers of Confluence, like looking for entries where Market Structure aligns with Order Block interactions. We could also turn on Manual Exit with a 40 tick stop loss and 80 tick profit target (10 points and 20 points, respectively, for ES futures), for more defined exit criteria.
One could expand on these ideas by adding factors like Fair Value Gaps, HTF Market Structure, etc. Any of the core pieces of SME can be used to build and backtest strategies that would otherwise be extremely tedious to do by hand, and as the SME indicator grows, so too will this backtesting script. Ultimately, the purpose of this is to make Smart Money Concepts more objective and easily testable so that users may better understand where these concepts may perform best.
NWOG & Dynamic Event Horizon°The ICT concept of New Week Opening Gaps (NWOG) is simply an imbalance that manifests at each Week Opening time. This gap in price is formed by the Close on Friday at 5PM EST and the open of Sunday at 6PM EST.
According to ICT's studies, this gap in price holds a lot of significance when it comes to price action, acting as a magnet or a point of reference during the week (and following weeks).
The Event Horizon (EH) is simply the midpoint between two of these NWOGs. The EH can be very useful to determine where price is drawn towards from a liquidity perspective. If price reaches this level it is probable that it will continue to the next NWOG, as explained by ICT himself.
In my own studies I have noticed that price also tends to respect and use the Optimal Trade Entry (OTE) levels drawn from both NWOGs in question. OTE levels are nothing but fibonacci 0.79 – 0.705 – 0.68 levels.
I decided to put all of these into an indicator that dynamically selects the most relevant NWOG Dealing Range and plots their EH and OTE levels automatically.
Available Alerts:
– Cross Below Event Horizon
– Cross Above Event Horizon
– New NWOG Range Established
Important Remarks:
– Note that although these work on all timeframes, the lower in resolution one goes, the less gaps will be available due to data availability.
– This indicator works on charts that have the NWOG already present in chart (i.e. no crypto assets, unless one looks at CME crypto futures such as BTC1! and ETH1!).
– The dollar index's NWOGs have a slightly different timestamp, however this has been taken care of and will allow to be plotted ONLY for the TVC:DXY ticker.
TrandingView struggles to display the indicator correctly for the default view, check out its accurate appearance here:
Smart Money Essentials [TFO]This indicator utilizes “Smart Money Concepts” like liquidity, order blocks, premium & discount, and more to analyze price action.
What’s included in the initial release:
Market Structure
Liquidity
Displacement
Order Blocks
Premium / Discount
Confluence Table
Alerts
Market structure logic objectively identifies whether the current trend is bullish or bearish, based on swing highs and lows. Liquidity levels offer insight into major pivots where we can assume many traders may place their stop loss, which can also serve as areas where “Smart Money” may be accumulating or distributing positions.
Displacement adds to this by spotting rapid price movement, often accompanied by imbalances where price may come back to before continuing in the direction of the displacement. These can be filtered based on whether the imbalance is accompanied by a Break of Structure (BOS) or Market Structure Shift (MSS), which may give additional insight into the draw on liquidity.
Order blocks (OB’s) are detected and treated as areas that may offer support for price in an uptrend or resistance in a downtrend. Premium and discount zones are essentially fitted by an “auto-fib” retracement that looks at recent liquidity levels, and optionally offers areas to look for an Optimal Trade Entry (OTE) where price retraces between 62-79% of the preceding displacement leg.
The confluence table provides an organized place to visualize and identify where any of the above concepts may be present at or around the same time. We can implement a threshold where, if the number of selected factors meets or exceeds this threshold, we can potentially identify bullish and bearish opportunities where multiple layers of confluence are overlapping.
And of course, alerts are built in for all significant events related to the above concepts, for example: runs on liquidity, BOS and MSS, rejections from OB and OTE, etc.
TTrades Scalping Indicator [TFO]Specialized for the scalping strategy of TTrades, this indicator focuses on inducement / stop hunt setups, utilizing additional factors such as volume spikes and trend bias to filter out setups that don’t fit the user-defined criteria.
The idea is that price is always seeking liquidity by reaching for trivial pivots where traders may put their stop loss orders. When price seeks these levels and stops these traders out, we may observe an influx of volume due to the large number of shares/contracts being exchanged given the large number of traders that have similar orders.
If price quickly comes back into the original range, we may determine this to be a stop hunt or a fakeout, only for price to proceed in the opposing direction. If it continues running and creates a displacement leg, we look to capitalize on that movement by tracking the Optimal Trade Entry (62 - 79% retracement), anchored to the swing pivot created as a result of the stop hunt.
Aside from volume, we can also use existing technical indicators like VWAP and SMA’s to ensure we’re only taking trades with the current trend (or against it). Simple criteria like this can help keep us out of low probability market environments.
OTE optimal trade entry (ICT); visible chart only: Dynamic-simple tool based on ICT free YouTube material of many years.
-Highlights a box showing Optimal Trade Entry (OTE): 61.8% - 78.6% retracement
-Auto shifts depending on Bull or Bear move on chart.
--If visible chart is Bullish (low then high): shows OTE box 61.8-78.6% retracement down from the high
--If visible chart is Bearish (high then low): shows OTE box 61.8-78.6% retracement up from the low
-Thanks the use of PineCoders Visible Chart Library, and some of the example code there
Automated MSB OTE Fibs and Premium DiscountOTE means optimal trade entry and can give the best price point to enter a trade at lower time frames. This indicator automatically draws these OTE levels and the premium /discount of the range, following a market structure break or MSB.
It does this by finding a pivot, checking if it has been broken by a candle body, then drawing a line for that MSB.
The premium /discount range and fib levels are taken from the high/low before and after the MSB, with the most recent MSB being used.
What is particularly great is that the levels and boxes move in realtime, so there is never any need to redraw things manually, drawing is fully automated and updates with every change in price or MSBs.
Settings:
Left and Right bars for Pivot - this determines the strength of the pivot that has been broken. The stronger the pivot, the stronger the MSB.
Max Lookback - How far to look back for MSBs.
Various aesthetic options to show bullish / bearish MSBs independently, as well as colour and line settings for the MSB, Fibs and Premium/Discount.
ote 3d v0This was supposed to be an automatic ICT OTE (Optimal Trade Entry) Fib level placement on a 3-day scale, but this did not turn out anywhere near close to how I envisioned it working.
Probably with some more development and applied math for the fib levels, I can get this to work even with breached 3D levels, but currently it's an exercise in frustration.