OPEN-SOURCE SCRIPT

Market Profile [p2pasta]

已更新
Ever since the big bitcoin crash I have been looking a lot at decent metrics to learn.
Never spent much time learning about Market Profiles so I started with the 2 scripts below:

High Timeframe POC

Low Timeframe POC


There was however still some things that needed to be done, including combining both into one.

Feel free to use/fiddle around before I publish it to the public.
For obvious reasons, if any of my code gets reuses then make sure to give credit where credit is due.
If any suggestion or issue is not noted below, I would appreciate a direct message to sort this out.


/* BACKLOG */

*Timeframes*
- More timeframes, currently only 'D' (daily) and 'M' (monthly) is supported.
- More property customization of the poc, channels and labels.
- A secondary timeframe to show on the chart. Using two timeframes can give more confluence to your trade ideas.
^ The problem is that above will probably run run into the maximum amount of possible lines TradingView is willing to render (max is 500).
- More placement options for the label. Currently only supports 'Current bar'. Will add 'Left', 'Center' and 'Right' (of the poc).

*Touch Confirmation*
- Count touches on POC and give the user a number to set for the POC to break.
- Show touch confirmation amount inside the label.

*Code*
- Add comments everywhere.
- Make sure this code is reusable and readable for anyone to use.

/* CREDIT */

Thanks to LonesomeTheBlue for providing me with the calculations
Thanks to PineCoders for providing me with the time offset framework
Thanks to @Frien_dd for providing me with inspiration and motivation to keep this going
版本注释
- Fixed the title of the indicator.
- Added "Small", "Normal" and "Large" to the labelSize options input.
版本注释
Updated the screenshot
版本注释
+ Added the 4 hour, weekly and 3 months timeframe ('4H', 'W' and '3M' under the Timeframe options)
+ Added single prints (You can enable or disable them in the user input screen).
The calculation I use is the following: average the whole channel -> single print where value is only 20% of the average. In general, this will sho low volume untapped liquidity points that can be used as support or resistance in the future.
+ Simplified the calculation for stopping a POC or SP from extending further to the right.
版本注释
+ Doubled the lines that were used by the channel to make channels more granular and detailed.
+ Added a secondary timeframe. Using two timeframes can give more confluence to your trade ideas.
+ More customization of the channels. You can now set channel highs/lows and value area highs/lows. (Only 'timeframe' supported for placement at the moment which renders the line until the next channel).
+ Reorganized user input.

Trend Analysis

开源脚本

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

想在图表上使用此脚本?


更多:

免责声明