Indicator · Pine Script v5 · On the chart

Power Of 3 ICT AMD Accumulations

by Ahmed1926· code credited to TFlab

An overlay indicator that splits the trading day into accumulation, manipulation and distribution phases using New York time sessions, by default 19:00 to 01:00, 01:00 to 07:00 and 07:00 to 13:00.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code79
Settings9inputs
LicenceNone statedfile: MPL-2.0
Last update9 months ago31 Jan 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

79 lines of Pine Script v5 from Power of 3.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

Power of 3.txt
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TFlab
//@version=5


indicator("Power Of 3 ICT 01 [TradingFinder] AMD ICT & SMC Accumulations", "TFlab AMD", overlay = true, max_bars_back = 5000, max_boxes_count = 500,max_labels_count = 500,max_lines_count = 500)

// Accumulation
show_Accumulation = input(true, 'Accumulation ', group = 'Accumulation ')
Accumulation_ses = input.session('1900-0100', '', inline = 'Accumulation', group = 'Accumulation ')
Accumulation_color = input.color(#8bbcfc, 'Color', inline = 'Accumulation', group = 'Accumulation ')
Accumulation_text = 'Accumulation'

// Manipulation
show_Manipulation = input(true, 'Manipulation ', group = 'Manipulation ') 
Manipulation_ses = input.session('0100-0700', '', inline = 'Manipulation', group = 'Manipulation ')
Manipulation_color = input.color(#F0B884, 'Color', inline = 'Manipulation', group = 'Manipulation ')
Manipulation_text = 'Manipulation'

// Distribution
show_Distribution = input(true, 'Distribution ', group = 'Distribution ') 
Distribution_ses = input.session('0700-1300', '', inline = 'Distribution', group = 'Distribution ')
Distribution_color = input.color(#0CC1C0, 'Color', inline = 'Distribution', group = 'Distribution ')
Distribution_text = 'Distribution'

//zones
On_Accumulation = math.sign(nz(time(timeframe.period, Accumulation_ses, "America/New_York")))
On_Manipulation = math.sign(nz(time(timeframe.period, Manipulation_ses, "America/New_York")))
On_Distribution = math.sign(nz(time(timeframe.period, Distribution_ses, "America/New_York")))



//High & Low  Detector 
LowHighDetector(On, Color, Text) =>
    var int Bar = 0
    var float High = 0.0 
    var float Low = 0.0
    var box BoX = na
    var line H_Line = na
    var line L_Line = na
    var label LabeL = na 
    var bool Permit = false
    if  (On[1] == 0 and On == 1)
        Bar := bar_index
        High := high
        Low := low
        
    else 
        if On[1] == 1 or On == 1
            High := math.max(high , High) 
            Low :=   math.min(low , Low)

    if On > On[1] and str.tonumber(timeframe.period) <= 60
        BoX := box.new(bar_index,High, bar_index , Low, bgcolor = color.new(Color, 85),
         border_color = color.rgb(34, 101, 155),
         border_style = line.style_dotted)
        
        LabeL := label.new(int(math.avg(Bar,bar_index)), High , text = Text ,xloc = xloc.bar_index, yloc = yloc.price, size = size.normal ,
         style =  label.style_label_down  , textcolor = color.rgb(34, 101, 155), color = color.rgb(255, 255, 255, 100))
    if On[1] == 1 or On == 1
        box.set_top(BoX, High)
        box.set_bottom(BoX, Low)
        box.set_right(BoX, bar_index)
        label.set_x(LabeL,math.round(math.avg(Bar,bar_index)))
        label.set_y(LabeL, High)
    



if show_Accumulation 
    LowHighDetector(On_Accumulation, Accumulation_color,Accumulation_text)

if show_Manipulation 
    LowHighDetector(On_Manipulation,Manipulation_color,Manipulation_text)

if show_Distribution 
    LowHighDetector(On_Distribution,Distribution_color,Distribution_text)

Note: This indicator only works on the 1H or lower timeframes.

Overview

For each phase it draws a shaded box that tracks the session high and low, with a text label above it. Each phase can be switched off, and session times and colours are editable. The boxes are drawn only on charts of one hour or lower, as the code states. It marks time ranges and gives no entry signals.

Details

Published by

Ahmed1926 on GitHub

Code credit

TFlab, as written in the script's header

Draws

On the price chart

Markets

Any symbol

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Accumulation booltrueshow_Accumulation
Accumulation_sessession1900-0100Accumulation_ses
Colorcolor#8bbcfcAccumulation_color
Manipulation booltrueshow_Manipulation
Manipulation_sessession0100-0700Manipulation_ses
Colorcolor#F0B884Manipulation_color
Distribution booltrueshow_Distribution
Distribution_sessession0700-1300Distribution_ses
Colorcolor#0CC1C0Distribution_color
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

947 stars

This indicator counts down to a fixed Litecoin halving timestamp in August 2019, using Greenwich Mean Time. It subtracts the current time from that stamp and formats the remaining days, hours, minutes, and seconds. The day, hour, and minute of the target are u

Indicator v4 Sessions & time
Updated 12 days ago · GPL-3.0 GitHub repository of Litecoin Halving UTC Countdown
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener

This indicator identifies and plots key options expiration dates on the price chart. It calculates monthly OpEx (the third Friday of each month), quarterly OpEx (March, June, September, December), and corresponding VIX expiration dates, drawing vertical lines

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Expiration Highlights: Opex, Quarterly Opex & VIX with Vanna/Charm
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Auto Trade Futures ES

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
219 stars

This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in

Indicator v4 Support & resistanceSessions & time
Updated 5 years ago · None stated GitHub repository of 昨日高低點標示

More Sessions & time scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers