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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明