fxdmn

dmn's ICT AMD-Goldbach

fxdmn Updated   
OVERVIEW

This script is built on ICT time & price theory and the theory of algorithmic market maker models, and visualizes the intraday divided using powers of three into accumulation, manipulation and distribution cycles.
It also includes an automatically calculated and plotted Goldbach level (a.k.a. IPDA level or Huddleston level) overlay, to help visualize where in the current market maker profile price is in relation to the AMD cycles, and where it might trade to.

CONCEPTS

Accumulation, Manipulation, Distribution Cycles
A 24 hour day, with the default set to start at 20:00 CET (the start of the Forex CLS Settlement operational timeline) is split in three parts - 9, 6 and 9 hours for the three cycles (roughly corresponding with Asia, London Open and New York + London Close sessions).
Since charts are fractals, there's also intra-cycle time fibs available in the script, to highlight the smaller fractal equivalents in each cycle.
These cycles are used to visualize the three phases (AMD) for easier identification of the current daily profile by analyzing during what cycle highs and lows of the day are made.

An example of a bullish day could be price rallying before making a low during the accumulation cycle, being manipulated higher and retracing to form an optimal trade entry during the manipulation cycle, expanding and creating the high of the day before selling off during the distribution cycle, with a potential reversal before it ends.

Goldbach levels
The Goldbach levels are based on the size of a price range (or price swing, if you will) expressed as a factor of power of three (3^n).
To decide what number to tell the script to use for the calculation, we look at what 3^n number best fits an average swing on the preferred timeframe we're trading.
For example; PO3 27 (3^3)might be fit for scalping, while PO3 243 (3^5) may correspond to the daily or weekly range, depending on the asset.
The script then calculates a range high and a range low using a power of three formula based on the current price and divides it into levels using Goldbach numbers.
At these levels one might expect to see price form various "blocks" as defined in concept by Michael J. Huddleston.
The blocks that correspond to the Goldbach levels are labeled with abbreviations as follows:
  • Ext = External range
  • Low = Range low
  • High = Range high
  • FVG = Fair value gap
  • RB = Rejection block
  • OB = Order block
  • LV = Liquidity void
  • BR = Breaker
  • MB = Mitigation block

Using these levels and said blocks we identify where in the current running market maker profile price is offered, and trade the preferred timeframe in line with the AMD cycles accordingly.


FEATURES

  • Custom AMD time cycles session times.
  • Custom time fib for fractal cycles.
  • Color and style customization.
  • Show only current or also historical cycles.
  • Equilibrium mode for Goldbach levels (show only high/low and midpoint)
  • Autodetection of asset type, with manual override.

NOTE

  • The default timings for the AMD cycles are set up for Forex pairs. For other asset types, such as indices, other timings are nessecary for optimal results.
  • Goldbach levels requires the correct symbol type setting for the calculation to work properly. Disable the script's autodetection and enable/disable the Forex option according to the type of chart if it fails.
Release Notes:
  • Added PO3 Stats box with all the Po3 ranges.
Release Notes:
  • Made the Dealing Range box more fancy.
  • Moved the PO3 number setting to the top of the options window, for more convenient switching between ranges.
Release Notes:
  • Added color customization options for Goldbach levels
Release Notes:
  • Added D1/D2 line (distribution cycle split)
Release Notes:
v. 1.31
  • Fixed Dr-calculation bug when price < 1.000
  • Added optional algo flow list to the DR box.
Release Notes:
  • Modified Goldbach level label positions to emphasize where the PD arrays reside in relation to the levels.
Release Notes:
  • Small change to the settings.
Release Notes:
  • Added A1/A2 line.
Release Notes:
  • Added GB level option to not extend GB level lines to the left (only shows a small line instead).
  • Modified GB label position logic.
Release Notes:
  • Added tooltips showing price to GB level labels.
Release Notes:
  • Modified line x-position logic. Lines will now end at a fixed number of bars to the right of the current bar, regardless of timeframe. Short lines (extend left: off) will also begin a fixed number of bars to the right.
Release Notes:
  • Added the the Dealing Range Box option to only show either the Dealing Ranges, MMxM, or both.
Release Notes:
  • Added options for setting individual GB line colors.
  • Added options for toggling individual GB lines on/off.
Release Notes:
  • Label bug fix.
  • Added option to show only GB Levels labels or IPDA Name labels, or both.
Release Notes:
  • Fixed a bug in the Dealing Range calculation.
  • Dealing Range performance optimization.
Release Notes:
  • Version updated to beta 1.6
  • Updated script to use latest version of dmnLib
Release Notes:
  • DR calculation performance optimizations.
Release Notes:
  • Added highlighting of "shared" DR highs/lows to the DR table.
Release Notes:
Version b1.8
  • Added CE Levels.
Release Notes:
  • Fixed a custom GB line color array call bug
Release Notes:
  • Fixed autodetection not working on DXY charts.
Release Notes:
  • Fixed CE level custom color bug.
Release Notes:
  • Version 1.84.
  • Added PO3 6561 range (useful for BTC, for example).
Release Notes:
  • Fixed DR calculation bug when price is below 1.00
Release Notes:
  • Bug fix: DR calculation not working properly with forex futures.
  • Added: Autodetection for the major currencies forex futures (disable autodetection and keep the forex option enabled if you trade a future on which autodetection fails, and/or let me know and I'll fix it :D)
Release Notes:
  • Version 1.87
  • Fixed autodetection bug introduced in the previous version, that caused some tickers to get detected as forex futures even though they weren't (ES1! for example).
Release Notes:
  • Version 1.89
  • Complete rewrite of the po3 DR calculation. It should now work on all tickers at att price levels (hopefully)
Release Notes:
  • Small calculation fix.
Release Notes:
  • Removed debug info that was mistakenly left visible.
Release Notes:
  • Added "New York" and "Stockholm" to timezone settings, for auto-timezone purposes.
Release Notes:
  • Fixed the New York and Stockholm auto-timezones not working because of me being dumb and not naming them correctly.
Release Notes:
  • Version 1.90
  • Settings feature added: "Master switches" for boxes, GB levels, corner table and imbalances. Used for quickly toggling the modules on or off without scrolling through the settings.
  • Added option: Number of days to extend GB lines to the left.
Release Notes:
  • Version 1.91
  • Added an "extend right" option to the GB levels. Used to set how many bars to the right of the current bar the GB levels should go.
Release Notes:
  • Version 1.93
  • Added non-GB levels.
Release Notes:
Version 1.94
  • Fixed non-GB repeating label bug.
Release Notes:
Version 1.95
  • Added alert conditions for price crossing GB levels.
Release Notes:
Version 1.96
  • Added linefill option to GB levels customization section of the settings (colors the area between GB levels).
Release Notes:
Version 1.97
  • Added shift DR range -1/0/+1 setting.
Release Notes:
Version 1.98
  • DR table contents now shift partitions according to the shift setting, and indicates shifted ranges with a +/-1 sign.
Release Notes:
Version 1.99
  • User request: Added po3 numbers 59049 and 177147
Release Notes:
Version 2.00
  • Made a quick fix for a dr range size issue that occured on DXY when price dropped below 100.000.
Release Notes:
Version 2.01
  • Added missing mouseover tooltips to CE levels (on the IPDA labels)
Release Notes:
Version 2.02
  • DR shift option is no longer limited to +/-1
Release Notes:
#AMD-GB update version 2.03:

  • Discovered and squished a bug: IPDA/Level labels visibility inadvertently controlled by individual line settings, regardless of individual line toggle state
Release Notes:
Version 2.04a
  • Added +/-1 ranges visibility option.

    Note: Initial multiple ranges version - functionality and features will be added in subsequent updates.
Release Notes:
version 2.05

  • Fix: Stats box (the small, horizontal/vertical one) not showing range shift amount
  • New feature: Half-step dr shift increments (request by @Hopiplaka)
Release Notes:
Version 2.06

Changes made to the main po3 calculation that should fix most, if not all broken tickers.
Release Notes:
Version 2.07
Added: Automatic PO3 number selection using average daily/weekly range.
Release Notes:
Version 2.08
Added labels to +/-1 ranges.
Release Notes:
Version 2.09
• Added AxR calculation tooltip to the DR/stats boxes.
• Added auto po3 method setting - closest picks the po3 number closest to the AxR, Next picks the next po3 number above the AxR (new default method).
Release Notes:
Version 2.091
• Fix: Auto PO3 ignoring asset type setting (autodetection/forex/not forex).
Release Notes:
Version 2.091
Release Notes:
Version 2.1

Added basic GB Time functionality
Release Notes:
Version 2.11

• Added missing time zones from the settings (the weird UTC+xx:30 and xx:45 ones).
• Re-added linefills for the +/-1 ranges, which went AWOL in a previous update.
• Added a color picker for the GB time text labels
Release Notes:
• Renamed script slightly.
Release Notes:
Version 2.12
• Added the ability to create alerts for when GB time swings occur.
Release Notes:
v 2.13
Added some GB time customization options.
Release Notes:
v 2.14
Performance optimizations.
Added hold to ERD setting.
Release Notes:
v 2.15
Fix: GB level labels getting removed when using GB time with nGB numbers.
Release Notes:
Re-upload of v.2.15 with typo fixed.
Release Notes:
v2.15b

• Decided to temporarily pull the "Hold to ERD" functionality from the indicator, due to it making the indicator misbehave under certain conditions (when using certain DR shifts, for example).
Always showing the correct DR is more important than Hold to ERD, so it'll be gone until I've resolved the issue. I apologize for not being able to make it work right now.
Release Notes:
v2.15c

No new features, only a bug fix.

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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.

Want to use this script on a chart?