PROTECTED SOURCE SCRIPT

Time and Price Lines and Zones (fadi)

Theo fadizeidan

Draw a red line starting from the open at 9:30
Show dotted lines between 11 and 12 and shade it
Mark the ORB high and low from 9:30 to 10:00 and extend it in orange and shade it


In trading, time and price are two crucial elements that help traders make decisions about buying and selling assets like stocks, commodities, or currencies. Forex or futures traders may prefer to trade during the Asia, London, and New York sessions to increase the probability of price moves. Additionally, traders often focus on key levels on the chart to frame their trades.

The Time and Price Lines and Zones indicator allows traders to set an unlimited number of time- and price-based levels on a chart, with full control over how they are displayed. Traders can simply type in their desired settings, and the indicator will interpret the instructions and plot the levels on the chart.

However, as it is a scripted tool, there are some limitations, and traders should keep their inputs relatively straightforward.

How It Works
In the settings, you type in the time and price levels you'd like to see, along with the timeframes for display. Each new line will render a line, a set of lines, or a price zone within a specific time interval. You can specify starting and ending times, price levels such as highs and lows, and details like color, line style, and thickness.

The following are some settings you can use:

Time
Always required, formatted as 0 to 23 for hours (with 0 representing midnight) and 0 to 59 for minutes. You can specify just a start time or both start and end times to "box" a period.

Examples:
  • 1 ( for 1:00 AM)
  • 13 (for 1:00 PM)
  • 13:50 (for 1:50 PM)


Price
Optional. If no price level is provided, the indicator will treat it as an open time window and draw vertical lines at the specified time intervals.

Color
The indicator recognizes the 17 built-in colors from TradingView (https://www.tradingview.com/pine-script-docs/concepts/colors/#constant-colors). You also have the option to override or create your own colors to match your color schema under settings. Silver (light gray) is the default if none is specified.

Line Style
There are three available line styles:
  • Solid (default)
  • Dashed
  • Dotted


Line Thickness
Line thickness can also be controlled with the following options:
  • Thin (default)
  • Medium
  • Thick


Fill or No Fill
When specifying two price levels, or two time periods, you can choose to keep the area between them empty or fill it with a semitransparent color. You can set this by specifying "shade," "shaded," "fill," or "filled."

Extend or Not
There are times, such as with the Open Range Breakout (ORB), where you may want to extend the zone without tracking additional price level changes. You can indicate this by specifying whether you want to extend it or not.

Additional Indicator Settings
Ignore lines that start with a defined character to instruct the indicator to ignore the line. For example, if you want to hide a line without deleting it, add # in front of it (default is #).

Hide Above Will hide all lines and zones above a defined timeframe.

Show Next Area Hours in Advance This will plot lines in advance to the right of the current price action, helping traders recognize upcoming points of interest.

Show Last X Days This controls the clutter on the screen by limiting the display to the most recent X number of days.

Fill Transparency The percentage of transparency applied to the background when a fill is specified.


Examples:

12 to 13 gray area shaded with dotted lines

Will result in two vertical lines, one at 12 noon and one at 1 PM, with the area between them shaded gray and a dotted line style.

ảnh chụp nhanh

0:00 vertical line red solid

Adds one vertical red line at midnight.

ảnh chụp nhanh

By specifying the open, high, low, and/or close price components, the indicator will interpret this as an instruction to draw a horizontal line at the specified price level. If two or more price levels are provided, each will be tracked accordingly.

Draw a red line starting from 0 open

Draws a line starting from midnight open until the end of the trading day.

ảnh chụp nhanh

Track high and low starting from 9:30 in a dashed green medium line

Tracks the day’s high and low, adjusting as new highs and lows are drawn in a dashed thicker green line from 9:30 AM until the end of trading hours.

ảnh chụp nhanh


# Asia
20 to 0 green high to low filled
# London
2:00 to 5 blue low and high filled
#New York
8:30 to 11:30 orange zone shaded orange between the high and low dotted

Adds three ICT Kill Zones for Asia, London, and New York based on their respective high and low.

ảnh chụp nhanh

8:30 to 11:30 orange zone shaded orange open close dotted

Will add a second New York zone overlapping the high and low zone.

ảnh chụp nhanh

#Draw Open Range Breakout (ORB)
9:30 to 10:00 purple extended zone

Extends the zone from 9:30 to 10:00 AM with a purple extended zone.

ảnh chụp nhanh


Bands and ChannelsChart patternsictictconceptskillzonelevelsandzonesohlcohlcrangeszone
fadizeidan

Mã được bảo vệ

Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm