OPEN-SOURCE SCRIPT

ICT Macros

已更新
This script allows traders to visualize the range of time when a macro (an automated series of instructions/trades from large fund traders, executed by an algorithm) will likely occur in the market. It does this by drawing vertical lines and labels on the chart at these specific times:

(Macro Open) - 9:50 AM EST
(Macro Close) - 10:10 AM EST
(Macro Open) - 10:50 AM EST
(Macro Close) - 11:10 AM EST
(Macro Open) - 1:10 PM EST
(Macro Close) - 1:40 PM EST
(Macro Open) - 3:15 PM EST
(Macro Close) - 3:45 PM EST

The theory behind the use of these macros - is that the market will either seek buy side or sell side liquidity, or seek to rebalance price at a point of interest in between the open and close of the macro. Traders who follow this theory can use that information to anticipate how price might behave.

When a macro occurs, the script draws a vertical line on the chart using a dotted line style with a user-defined color. Additionally, a label is placed above the line to indicate whether it is a Macro Open or Macro Close event.

To preserve space, the labels are abbreviated on chart - "Macro Open" (M.O.) and "Macro Close" (M.C.) for both the morning and afternoon trading sessions. The labels may be turned on/off by the user.

The script also includes alerts that can notify traders when a macro occurs. These alerts can be set to go off once per bar close, and the alert message indicates the specific macro type and time.

This script is entirely open-source, meaning that traders can read the code and modify it as needed. Credit to the foundation of this script goes to TradingView user rickyzcarroll for his open source Strat Assistant Hour Flip script. Important changes include the specific time changes and alert function.


快照
版本注释
Added NY Lunch Macro (11:50am open 12:10pm close)
Added alert function for each open and close
Included NY lunch macro in Any alert
版本注释
Added 2 London Macros:
2:33am - 3:00am
4:03am - 4:30am

Times are EST (New York)
*Important - Your time frame must be set on a time in which the open/close of the candle is on the time of the macro. A 1 min candle will show all macros
版本注释
Added:
(Macro Open) - 8:50 AM EST
(Macro Close) - 9:10 AM EST

Added:
The "Any alert() function call" now includes a "2 minute warning" alert before each Macro Open.
-the purpose of this is to give you time to asses the current conditions of the chart prior to the Macro Open window.

"The reason why you're getting stopped out and you don't know why the market moved is because you're not doing what I'm teaching. It's running its macro, a short little list of things that the algorithm is supposed to do based on time, day of the week, seasonality, and the liquidity that's in play."
-Michael Huddleston
版本注释
Corrected the errors of the previous update. Times and alerts are correct now!
版本注释
DTCC fix
版本注释
-Long overdue -

-Added Timezone input
-Updated to pinescript v5
CycleseducationalforecastingictipdakillzonesessionTIMEverticalline

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明