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.
Optimaltradeentry
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