blockFlow

Key Levels Importer (blockFlow)

blockFlow 已更新   
Introduction

This script was inspired by the Chart Champions team who generously share the key levels that they are monitoring with the group.
It provides a way for TradingView users to import the levels from a text file (known as the “dataset”) which can also be shared with the community.
The script will plot the levels with different colours depending on whether they are daily, weekly, monthly. volume or fibs.
It will also calculate and draw the high/low for the previous day.

The dataset

The format for the dataset is as follows:

:<type>=<price>:<optional comment>:

The type value can be:
  • D - Daily level
  • W - Weekly level
  • M- Monthly level
  • V - Volume level (eg. VAH, POC, VAL)
  • F - Fib level
  • Alternatively you can use freeform text for the type but it may not be colour-coded as you wish

Note, lines and fields without an “=“ are ignored.

Example dataset

:#BTCUSD
:
:---------------------------
:Daily levels
:---------------------------
:
:D=57220:
:D=47724:
:D=40711:
:D=38190:
:D=29775.5:
:
:---------------------------
:Weekly levels
:---------------------------
:
:W=65560.5:
:W=50776:
:W=43190:
:W=31773:
:
:---------------------------
:Monthly levels
:---------------------------
:
:M=61421.5:
:M=43800:
:M=35027:
:
:---------------------------
:Fib levels MTF/HTF
:---------------------------
:
:F=59693.5:
:F=58521.5:
:F=44180.5:
:F=42481.5:
:F=28773:
:F=25984:
:
:---------------------------
:Other levels
:---------------------------
:
:nPOC=47980.5:
:nPOC=48340:
:Global_VAH=63775:
:Global_POC=57364.5:
:Global_VAL=40217:
:MTF_POC=47174:
:MTF_POC=34125.5:

How to import the dataset

It is recommended to create the dataset with a text editor.

To import it:

  • Open the indicator settings
  • Click the ‘Import Dataset’ field, press Control-A and Delete to clear out the contents
  • Copy/paste the dataset into the field
  • Click Ok

Additional settings

You can choose the line colour for each type of level
Show imported datarows - Check this box to displays the imported dataset values in tabular format on the bottom-left of the chart
Show yellow dots - Show yellow diamonds when price touches a level - see alerting below.
Hide levels > N% from current price - Levels more than 20% away from the current price will be hidden if this box is checked. The percentage value can be changed.


Alerting

The script can raise alerts when the price touches any of the levels.
This is visually represented on the chart by a yellow dot when the "show yellow dots option" is checked.
To avoid duplicate alerts when price repeatedly touches the level, the following criteria must be satisfied before an alert is raised (or a yellow dot printed).

1) Price first touches the level (open,high,low or close)
2) Price did not touch the level in the previous 10 candles



版本注释:
Fixed the alerts which were not firing on the very first touch of the level.
版本注释:
Minor cosmetic improvement
版本注释:
New Features:

  • Added a "Convert levels to zones" setting. This will convert all the levels into zones that are 0.1% high by default. When enabled, yellow dots and alerts are triggered whenever price hits the upper or lower part of the zone, ie. before the price level is hit, which can help with situation where key levels are front-run or when you need more time to respond before the level is hit.


Improvements:

  • Yellow dots now appear above the candle when price is rising, or below the candle when price is falling.
    The alert message now tells you if price is rising or falling.


Sample dataset:

The is a sample dataset that you can copy/paste into the "Import dataset" field on the settings menu:


:#BTCUSD
:---------------------------
:HTF levels
:---------------------------
:D=47724
:D=43884
:D=29775
:W=65560
:W=50776
:W=41841
:M=61421
:M=35027
:---------------------------
:Range volume
:---------------------------
:HTF_VAH=63637
:HTF_POC=52324
:HTF_VAL=39684.5
:MTF_POC=47216
:---------------------------
:nPOCs
:---------------------------
:nPOC=60480
:nPOC=56910
:nPOC=50875
:nPOC=49025
:nPOC=46225
:nPOC=39300
:nPOC=33450
:---------------------------
:Fib levels MTF/HTF
:---------------------------
:F=59693.5
:F=58521.5
:F=44180.5
:F=42481.5
:F=28773
:F=25984


Happy Trading.
受保护脚本
该脚本是闭源发布的,您可以自由使用它。您可以收藏它以在图表上使用。您无法查看或修改其源代码。
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?