fxdmn

dmn's ICT AMD-Goldbach

fxdmn Uppdaterad   
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.
Versionsinformation:
  • Added PO3 Stats box with all the Po3 ranges.
Versionsinformation:
  • 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.
Versionsinformation:
  • Added color customization options for Goldbach levels
Versionsinformation:
  • Added D1/D2 line (distribution cycle split)
Versionsinformation:
v. 1.31
  • Fixed Dr-calculation bug when price < 1.000
  • Added optional algo flow list to the DR box.
Versionsinformation:
  • Modified Goldbach level label positions to emphasize where the PD arrays reside in relation to the levels.
Versionsinformation:
  • Small change to the settings.
Versionsinformation:
  • Added A1/A2 line.
Versionsinformation:
  • Added GB level option to not extend GB level lines to the left (only shows a small line instead).
  • Modified GB label position logic.
Versionsinformation:
  • Added tooltips showing price to GB level labels.
Versionsinformation:
  • 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.
Versionsinformation:
  • Added the the Dealing Range Box option to only show either the Dealing Ranges, MMxM, or both.
Versionsinformation:
  • Added options for setting individual GB line colors.
  • Added options for toggling individual GB lines on/off.
Versionsinformation:
  • Label bug fix.
  • Added option to show only GB Levels labels or IPDA Name labels, or both.
Versionsinformation:
  • Fixed a bug in the Dealing Range calculation.
  • Dealing Range performance optimization.
Versionsinformation:
  • Version updated to beta 1.6
  • Updated script to use latest version of dmnLib
Versionsinformation:
  • DR calculation performance optimizations.
Versionsinformation:
  • Added highlighting of "shared" DR highs/lows to the DR table.
Versionsinformation:
Version b1.8
  • Added CE Levels.
Versionsinformation:
  • Fixed a custom GB line color array call bug
Versionsinformation:
  • Fixed autodetection not working on DXY charts.
Versionsinformation:
  • Fixed CE level custom color bug.
Versionsinformation:
  • Version 1.84.
  • Added PO3 6561 range (useful for BTC, for example).
Versionsinformation:
  • Fixed DR calculation bug when price is below 1.00
Versionsinformation:
  • 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)
Versionsinformation:
  • 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).
Versionsinformation:
  • Version 1.89
  • Complete rewrite of the po3 DR calculation. It should now work on all tickers at att price levels (hopefully)
Versionsinformation:
  • Small calculation fix.
Versionsinformation:
  • Removed debug info that was mistakenly left visible.
Versionsinformation:
  • Added "New York" and "Stockholm" to timezone settings, for auto-timezone purposes.
Versionsinformation:
  • Fixed the New York and Stockholm auto-timezones not working because of me being dumb and not naming them correctly.
Versionsinformation:
  • 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.
Versionsinformation:
  • 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.
Versionsinformation:
  • Version 1.93
  • Added non-GB levels.
Versionsinformation:
Version 1.94
  • Fixed non-GB repeating label bug.
Versionsinformation:
Version 1.95
  • Added alert conditions for price crossing GB levels.
Versionsinformation:
Version 1.96
  • Added linefill option to GB levels customization section of the settings (colors the area between GB levels).
Versionsinformation:
Version 1.97
  • Added shift DR range -1/0/+1 setting.
Versionsinformation:
Version 1.98
  • DR table contents now shift partitions according to the shift setting, and indicates shifted ranges with a +/-1 sign.
Versionsinformation:
Version 1.99
  • User request: Added po3 numbers 59049 and 177147
Versionsinformation:
Version 2.00
  • Made a quick fix for a dr range size issue that occured on DXY when price dropped below 100.000.
Versionsinformation:
Version 2.01
  • Added missing mouseover tooltips to CE levels (on the IPDA labels)
Versionsinformation:
Version 2.02
  • DR shift option is no longer limited to +/-1
Versionsinformation:
#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
Versionsinformation:
Version 2.04a
  • Added +/-1 ranges visibility option.

    Note: Initial multiple ranges version - functionality and features will be added in subsequent updates.
Versionsinformation:
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)
Versionsinformation:
Version 2.06

Changes made to the main po3 calculation that should fix most, if not all broken tickers.
Versionsinformation:
Version 2.07
Added: Automatic PO3 number selection using average daily/weekly range.
Versionsinformation:
Version 2.08
Added labels to +/-1 ranges.
Versionsinformation:
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).
Versionsinformation:
Version 2.091
• Fix: Auto PO3 ignoring asset type setting (autodetection/forex/not forex).
Versionsinformation:
Version 2.091
Versionsinformation:
Version 2.1

Added basic GB Time functionality
Versionsinformation:
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
Versionsinformation:
• Renamed script slightly.
Versionsinformation:
Version 2.12
• Added the ability to create alerts for when GB time swings occur.
Versionsinformation:
v 2.13
Added some GB time customization options.
Versionsinformation:
v 2.14
Performance optimizations.
Added hold to ERD setting.
Versionsinformation:
v 2.15
Fix: GB level labels getting removed when using GB time with nGB numbers.
Versionsinformation:
Re-upload of v.2.15 with typo fixed.
Versionsinformation:
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.
Versionsinformation:
v2.15c

No new features, only a bug fix.

Skyddat skript
Detta skript publiceras med stängd källkod och du kan använda det fritt. Du kan ange den som favorit för att använda den i ett diagram. Du kan inte visa eller ändra dess källkod.
Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?