Shadow Diver

TWM

Extensions


STRATEGY

Shadow Diver

Pullback strategy

Strategies

Shadow Diver is a trend-following breakout tool that focuses on how price behaves around an Exponential Moving Average (EMA) calculated on highs. It looks for specific candle patterns where price “dives” through the EMA and then is rejected, using that structure as a base for stop orders above or below recent extremes rather than entering at market. The goal is to capture continuation moves after a clear rejection of the EMA, instead of reacting to every simple cross of the average. Once a valid pattern forms and an order is placed, it stays active only for a limited number of bars, so trades are always taken close to the original setup and not on stale signals. From there, risk and reward are managed with percentage-based stops and targets that automatically adapt to the entry price and instrument volatility.

Description

There are two main signal directions that define how trades are triggered:

  1. Long signals appear when several consecutive candles close above the EMA, with opens also above the EMA, while their lows momentarily dip below it, showing a brief liquidity sweep and strong rejection by buyers.
  2. Short signals are the opposite condition, with candles closing and opening below the EMA, but their highs spiking above it and failing, indicating rejection by sellers.

Entry orders are not placed immediately at market; instead, the strategy uses stop orders beyond the high (for longs) or low (for shorts), shifted by an Entry Offset in ticks to make the trigger more or less aggressive.


Position and signal controls

Position sizing and order lifetime are controlled through a few core parameters.

  1. PosSize defines how many units or contracts are traded on each signal, making risk scalable from small to large accounts.
  2. Keep Order Bars sets how many candles an entry order can remain active; if price does not trigger the order within that window, the order is automatically canceled, preventing late entries that no longer respect the original pattern.

This keeps executions tied closely to fresh, meaningful setups instead of chasing moves after they have already played out.


Stops and targets

Stops and targets are expressed as percentages of the fill price, so they adjust naturally across different markets and price levels

After an entry is filled, the strategy:

  1. Places a profit target above (for longs) or below (for shorts) as a fraction of the entry price.
  2. Places a stop loss on the opposite side, also as a fraction of the entry price.

These are sent as linked exit orders: when either the stop or target is executed, the other is canceled, ensuring positions close with a single, clean outcome and that risk is always defined in advance.


Order management and framework idea

Additional order management logic helps avoid left alone or conflicting orders: dedicated market exit commands can close existing positions immediately when needed, such as at the end of a session or due to discretionary intervention, and the strategy cancels any remaining stop, target, or scale-in orders tied to that position. Shadow Diver is built as a simple and flexible EMA-based framework: a compact set of parameters for the moving average, offsets, and percentage exits allows traders to observe, test, and trade how markets react when price pierces and rejects a dynamic mean instead of relying on complex indicator stacks.

Main Features

Smart Trend Filtering

Trades only in conditions where price action confirms trend direction using a 3-bar check above or below a moving average.

Dynamic Entry Logic

Uses recent highs/lows and offsets to enter at likely breakout points instead of blindly jumping into the market.

Built-in Risk Management

Every position includes an automatic stop-loss and take-profit order based on percentages of entry price.

Order Time-to-Live Control

If an entry order is not filled within a predefined number of bars, it's automatically canceled to avoid stale entries.

FAQ

Do you have any more questions about our Extension? Let's see if we already have the answer.
Please read the FAQ below.

A trend-following breakout strategy with pullback confirmation.

A single moving average is used for trend direction and as a reference point for price behavior.

It waits for 3 consecutive closes above or below the moving average, plus certain candle shapes like wicks piercing the average.

With stop-market orders placed slightly above highs (for longs) or below lows (for shorts).

It's canceled after a fixed number of bars to avoid late or irrelevant entries.

Yes, both are placed automatically based on configurable percentages of entry price.

No, it enters only when strict conditions are met and stays flat otherwise.

Still have a question?

For assistance, please visit our Support page. Our dedicated team is ready
to help you 24/7.

Access Options

Choose how you want to access this extension.

Extensions in TWM can be accessed in several ways, depending on the extension and your needs. Some are free, some are included with a TWM subscription, and others are available through time-based, lifetime, or open-source access options.

Time-based access does not renew automatically, lifetime access has no expiration, ecosystem access remains active while your subscription is active, and open-source access provides full source code ownership. All extensions are used inside the TWM desktop platform.

Open Source Access

Full source code ownership

  • Complete source code included
  • Modify, study, and build upon the implementation
  • Independent from time-based access
Buy Open Source Access
$395
This extension is available inside the TWM desktop platform

Ecosystem Access

Included with a TWM subscription

  • Available as part of the TWM ecosystem
  • Access remains active while your TWM subscription is active
  • No separate purchase for this extension required
This extension is available inside the TWM desktop platform

Similar extensions

TWM users have the opportunity to create their own strategies and indicators using the C# coding language.

Necessary cookies help make the website usable by enabling basic functions such as consent storage, security protection, language preferences, authentication, and preserving the active navigation context.

  • Necessary cookies

    UserUUID

    Technical identifier used to manage and persist cookie consent preferences.

    Maximum storage duration: 12 Months | Type: Necessary cookies
    consent

    Stores your cookie consent choices and selected preferences.

    Maximum storage duration: 12 Months | Type: Necessary cookies
    site_mode

    Preserves the active navigation context, for example keeping the user in the standard website flow or the Start Trading flow when shared navigation elements are used.

    Maximum storage duration: Up to 30 Days | Type: Necessary cookies
    .AspNet.Consent

    Indicates whether the user has provided cookie consent.

    Maximum storage duration: 1 Year | Type: Necessary cookies
    .AspNetCore.Antiforgery

    Used to prevent CSRF attacks and protect form submissions and user data.

    Maximum storage duration: Session | Type: Necessary cookies
    .AspNetCore.Cookies

    Used to manage authentication information and signed-in sessions.

    Maximum storage duration: 1 Year | Type: Necessary cookies
    .AspNetCore.Culture

    Stores the user’s language and localization preferences.

    Maximum storage duration: 1 Year | Type: Necessary cookies

Functional cookies allow the website to remember preferences and support enhanced features or integrations such as Google services, maps, embedded media, or account-related personalization.

  • Functional Cookies

    LSOLH

    Used by Google to store session information and support service-related functionality.


    Maximum storage duration: Session | Type: Functional Cookies
    COMPASS

    Used by Google to remember settings and improve navigation across integrated services.

    Maximum storage duration: 6 Months | Type: Functional Cookies
    ACCOUNT_CHOOSER

    Remembers which Google accounts have been used on the device.

    Maximum storage duration: 1 Year | Type: Functional Cookies
    APISID

    Used by Google to store preferences and information when using integrated Google services such as Maps.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    LSID

    Used by Google to store preferences while viewing pages that incorporate Google services.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    NID

    Used by Google to remember preferences such as preferred language and interface settings.

    Maximum storage duration: 6 Months | Type: Functional Cookies
    SAPISID

    Used by Google services to support embedded content, maps, and account-related personalization.

    Maximum storage duration: 2 Years | Type: Functional Cookies
    __Host-GAPS

    Used by Google to support service preferences and related functionality on pages integrating Google services.

    Maximum storage duration: 2 Years | Type: Functional Cookies

Statistical cookies help us understand how visitors interact with the site, measure performance, and improve services. Depending on configuration, data may be processed in aggregated or pseudonymized form.

  • Statistical Cookies

    CLID

    Microsoft Clarity identifier used to distinguish visitors and support analytics reporting.


    Maximum storage duration: 1 Year | Type: Statistical Cookies
    MR

    Microsoft cookie used for analytics-related measurement and service improvement.

    Maximum storage duration: 7 Days | Type: Statistical Cookies
    SM

    Used by Microsoft Clarity to maintain the current analytics session.

    Maximum storage duration: Session | Type: Statistical Cookies
    ttcsid

    TikTok identifier used for event measurement, session attribution, and analytics reporting.

    Maximum storage duration: Varies by configuration | Type: Statistical Cookies
    ttcsid_D5GFV53C77U3VC0C2T50

    TikTok event and analytics cookie used for session-level attribution and measurement.

    Maximum storage duration: Varies by configuration | Type: Statistical Cookies

Marketing cookies are used for advertising, campaign attribution, conversion tracking, personalization, and cross-platform measurement by providers such as Google, Microsoft, Meta, and TikTok.

  • Marketing Cookies

    AID

    Used by Google to link activity across devices and improve ad attribution.


    Maximum storage duration: 1 Year | Type: Marketing Cookies
    ANONCHK

    Used by Microsoft Advertising to validate and support ad-related requests.

    Maximum storage duration: 10 Minutes | Type: Marketing Cookies
    MUID

    Microsoft advertising identifier used to recognize browsers across Microsoft domains.

    Maximum storage duration: 13 Months | Type: Marketing Cookies
    __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDTS, __Secure-3PSIDCC

    Google advertising and personalization cookies used to build preference profiles and support ad delivery.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    ADS_VISITOR_ID

    Used by Google to identify visitors for advertising and attribution purposes.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    OTZ

    Used by Google to support ad personalization and service optimization.

    Maximum storage duration: 1 Month | Type: Marketing Cookies
    __Secure-1PAPISID, __Secure-1PSID

    Google cookies used to support more relevant ads and account-related ad security.

    Maximum storage duration: 2 Years | Type: Marketing Cookies
    IDE, DSID, FLC

    DoubleClick / Google Ads cookies used for campaign attribution, ad delivery, and remarketing.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    datr, fr, sb, xs

    Meta / Facebook cookies used for browser recognition, security, ad measurement, and personalization across Meta services and partner sites.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    odin_tt

    TikTok cookie used for campaign attribution, browser recognition, and advertising performance measurement.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    tt_chain_token

    TikTok cookie used for event attribution and campaign linkage across sessions.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    ttwid

    TikTok browser identifier used for attribution, advertising measurement, and remarketing support.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    NID, UULE

    Google cookies that may support ad personalization, localization, and service preference handling depending on the integration and browser state.

    Maximum storage duration: Varies by cookie | Type: Marketing Cookies
    SEARCH_SAMESITE

    Google cookie used to support secure cookie handling across requests and service interactions.

    Maximum storage duration: 6 Months | Type: Marketing Cookies
About cookies and consent

This website uses cookies and similar technologies to ensure its proper functioning and, with your consent, to support functionality, measure usage, improve performance, and provide advertising, attribution, or personalized content. The legal basis for the use of necessary cookies is the legitimate interest of the data controller (Art. 6(1)(f) GDPR), while functional, statistical, and marketing cookies are used only upon your explicit consent (Art. 6(1)(a) GDPR).

Cookies are small text files stored on your device to make the website work efficiently and improve your experience. Some cookies are placed directly by us, while others may be set by third-party services integrated into our pages.

Cookie categories
  • Necessary cookies: enable core site functionality such as consent storage, navigation context, language selection, authentication, and access to secure areas. These cannot be disabled.
  • Functional cookies: allow the website to remember settings and support integrations such as embedded or third-party services.
  • Statistical cookies: collect usage and performance data to help understand and improve the site.
  • Marketing cookies: support advertising, campaign attribution, personalization, and remarketing across providers and services.
Storage and consent management

Your cookie preferences are stored locally in a cookie named consent, valid for 12 months, and pseudonymously on our systems using a technical identifier (UserUUID), which does not allow direct identification of the user. A technical cookie named site_mode may also be used to preserve the current navigation context across pages. You may change or withdraw your consent at any time via the cookie settings button visible at the bottom left of the site.

Third-party cookies

Some cookies are provided by third-party services such as Google, Microsoft, Meta, and TikTok. These third parties may act as independent controllers for the data collected through their own technologies and services.

Your rights

You can withdraw or modify your consent at any time, delete cookies through your browser settings, and exercise your rights under Articles 15–22 GDPR (access, rectification, deletion, limitation, opposition, portability) by contacting us via the details provided in the Privacy Policy.

This Cookie Policy is aligned with Regulation (EU) 2016/679 (GDPR) and the ePrivacy Directive.