OPEN-SOURCE SCRIPT

(5+15+60min+1D)EMA20+Y'SH/L+count

72
简介: 这是一个专为 5分钟图表 (5min Chart) 日内交易者设计的综合辅助工具。它结合了多周期趋势均线、美股核心交易时段的时间周期计数以及关键流动性位置(前一日高低点)的智能突破监测。该脚本针对美股个股及 24/7 交易的 BTC/ETH 进行了优化,强制锁定纽约时间进行运算。

核心功能:

1. 多周期 EMA 监控系统 (MTF EMAs)

5min EMA20 (蓝色):日内短期趋势核心线(默认开启)。

60min EMA20 (绿色):小时级别趋势参考(默认开启)。

15min EMA20 (红色) & 1D EMA20 (橙色):可选开启,用于捕捉更大周期的支撑阻力。

特点:所有均线采用最细线宽,平滑显示,右上角表格实时展示当前价格。

2. 美股时段 Bar Count 计数器

时间锚定:以纽约时间 (New York Time) 09:30 开盘为起点(Bar 0)。

显示规则:仅在 K 线底部显示 偶数 序号 (0, 2, 4, 6 ...),直至第 82 根 K 线停止。

关键时间窗 (Time Pivots):

Bar 18 (约 NY 10:55) 和 Bar 40 (约 NY 12:45) 会被自动高亮。

字体变为 蓝色粗体,且对应 K 线实体变为蓝色,提示潜在的变盘或宏观流动性注入时刻。

3. 智能 PDH/PDL 射线 (Smart Rays)

精确锚点:前一日高点 (PDH) 和低点 (PDL) 的射线不是从开盘画起,而是从昨日形成高低点的具体时间点射出,精确还原价格行为。

自动阻断 (Breakout Logic):一旦当前价格触碰或突破该射线,射线将自动停止延伸,直观展示“阻力/支撑已失效”。

自动清理:每日自动清除旧线,仅保留当天的参考线,保持图表整洁。

4. 视觉优化

每日分割线:自动绘制灰色虚线分隔交易日。

图表限制:脚本仅在 5分钟图表上可见,切换周期自动隐藏,避免干扰大周期分析。

设置说明:

可在设置面板中自由开关各周期 EMA 的显示。

可开关底部的计数数字显示。

English Version (for TradingView Publishing)
Title: 5min Intraday Precision Toolkit: MTF EMAs + NY Session Count + Smart Rays

Introduction: This is a comprehensive auxiliary tool designed specifically for 5-minute chart intraday traders. It combines multi-timeframe trend EMAs, time cycle counting based on the US Session, and smart breakout monitoring for key liquidity levels (Previous Day High/Low). Optimized for US Equities and Crypto (BTC/ETH) using New York Time.

Key Features:

1. Multi-Timeframe EMA System

5min EMA20 (Blue): Core short-term intraday trend (On by default).

60min EMA20 (Green): Hourly trend reference (On by default).

15min EMA20 (Red) & 1D EMA20 (Orange): Optional overlays for higher timeframe support/resistance.

Visuals: All EMAs are rendered with fine lines for a clean look, accompanied by a top-right dashboard table.

2. NY Session Bar Count

Time Anchor: Starts counting from 09:30 New York Time (Bar 0).

Display Logic: Displays only EVEN numbers (0, 2, 4...) at the bottom of the bars, stopping at count 82.

Time Pivots:

Bar 18 (~10:55 NY) and Bar 40 (~12:45 NY) are highlighted.

Labels turn Bold Blue, and the specific candles are colored Blue to indicate potential reversal or liquidity injection times.

3. Smart PDH/PDL Rays

Precise Origin: Rays for Previous Day High (PDH) and Previous Day Low (PDL) originate from the exact timestamp they were created yesterday, not just the daily open.

Breakout Stop Logic: Rays automatically stop extending once price touches or breaks them, clearly indicating that the level has been tested.

Auto-Clean: Automatically removes old rays from previous days to keep the chart clean.

4. Visual Optimization

Daily Separators: Automatic vertical dotted lines marking new days.

Visibility: All elements are hidden on non-5m charts to prevent clutter.

Settings:

Toggle visibility for individual EMAs.

Toggle visibility for the bottom bar counter.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。