TradingView
RedKTrader
24 Mar 2021 21:09

RedK Trader Pressure Index (TPX v1.0)  

Microsoft CorporationNASDAQ

Açıklama

Quick Summary
---------------------
The RedK Trader Pressure Index (REDK_TPX) analyzes the changes in price bars to give the trader a clear visual insight that represents the ongoing fight between the bulls (buyers) and bears (sellers) in the market - to determine who is in control of the price action, which in turn can be helpful in a trader’s decision about how the price action may be unfolding, what type of trade and positions to take (or to close) and when is the ideal time to action.

How the TPX calculation works
---------------------------------------
The TPX uses a simple logic and that’s one of the things I like about it – there is no complex calculation or magic stuff - and the core idea makes sense to me, as well as being one of the ways I needed to analyze my price charts.

The underlying assumption is that the buyers and sellers are competing for control of the market at all time.
- if there’s more buyers than sellers in the market, and if the buyers’ (or bull) pressure is stronger (than the sellers’), they will be able pull the “price range” up – and that means that on the price chart we can expect to see an increase in value in both the “high” and the “low” of the next price bar.

- Similarly, if there’s more sellers than buyers in the market, and if the sellers’ (or bear) pressure is stronger (than the buyers’), they will be able push the “price range” down – on the price chart we can expect to see a decrease in value in both the “high” and the “low” of the next price bar.

So, we will use the change in high and low price, between 2 consecutive price bars, as a proxy for the bull and bear “pressures” – a (weighted) moving average of these “pressure” values are then calculated along with the “Net Pressure” – the final results are plotted.

The importance of the "Control Level"
-----------------------------------------------
As in similar price-action based indicators, there’s a certain threshold or “control level”, above which, the pressure becomes “dominant”

when the bull or bear pressure is above that threshold, they will dominate and control the price move – this level can be found around the 25 or 30. I have included the ability to plot and adjust that control level in the TPX’s settings – and I also show some examples in the chart above (weekly chart for MSFT)

The code is commented and the chart is annotated to explain how to “read” the TPX – and how to interpret the values on the price chart

Using the Trader Pressure Index (TPX) in trading
------------------------------------------------------------
  • TPX can be valuable in showing well-supported (up or down) price moves that may lead to a strong trend that we can ride (when the pressure value is above the control level) - see exampled above

  • TPX is also valuable in showing when there’s “lack of interest” from the buyers or the sellers (or both) – which is great in exploring chub or no-trade zones - so basically when to avoid trading.

  • As usual, it's always recommended to use these types of "price action insight" indicators in conjunction with other trend and momentum indicators (moving averages, MACD..etc), so the insight we gain from them can be properly placed within the broader "context" - and to receive additional confimtion signals to support the trading decision.


I will come back later to post something about how the TPX differs from my recently-posted Strength of Movement (SoM) because they wok completely differently but can be used together with great synergy – and also how the TPX compares to the classic DMI/ADX which uses a similar concept.

Please feel free to integrate in your trading – hope you find this useful - comments and feedback are always welcome

Sürüm Notları

- v2 adds couple of minor changes
1. protect against gaps causing bulls or bears pressure shooting above 100% (although the averaging took care of these)
2. replace the "transp=" keyword from plots to be "Pine future-proof"

Sürüm Notları

TPX v3.0 adds few usability improvements:
- Smoothed Bull / Bear pressure "mountains" by introducing a "pre-smoothing" option - which is applied on the average bull / bear pressure *before* the Net Pressure is calculated
** this produces a smoother plot - be aware that (like any smoothing) this option will cause a slight signal lag (1 bar for a value of 3 or 4 pre-smoothing)
** this pre-smoothing option will be turned off by default - pre-smoothing value can be adjusted from the settings - default is 3
** also be aware that when pre-smoothing is turned on, the Net Pressure will in effect be "double-smoothed"
- some further coding clean-up
- precision brought down to 1 to simplify value display & interpretation - no impact to calculations

here's how TPX v3 with the new pre-smoothing turned on compares to TPX v2.0 which had no pre-smoothing

Sürüm Notları

RedK Trader Pressure Index (TPX) v4.0 adds couple of new features:
- new "Dominant Pressure Signal" - that will show up as crosses (or circles) as the pressure of bulls (or bears) is equal to or exceeds the user's control / dominance level
-- this plot acts as an additional "visual signal" - it will be off by default - user needs to turn it on in settings - and can also adjust the level these signals are plotted on to further customize the TPX

- added alerts: to be set using the "Set Alert" function in TV. This will enable TPX to trigger a user alert when bulls or bears are in control (level >= control level)

This is how the TPX v4 looks like with all options enabled.
I hope these updates are valuable - feel free to leave me a comment below


Sürüm Notları

A quick update to TPX v5.0 :
- Code upgraded to Pine v5.0
- Added alert for when the Net Pressure swings around the 0 line (Changes color = changes mode from net positive to net negative or vice versa)
Yorumlar
PineCoders
RedKTrader
@PineCoders, thank you
TradingSafely
Awesome!
RedKTrader
@TradingSafely, Wow! :) thank you ... glad if this is valuable in your trading and love to learn about how you use the TPS
cpartipi
Awesome, thank you!
RedKTrader
@cpartipi, thanks ..
xcrypt0surf3r
I can't see the "Bull Pressure", "Bear Pressure", etc, on my charts... how to enable them to show up? I can only see the bottom volume charts...
RedKTrader
@xcrypt0surf3r, what you see on the top chart are annotations and drawings i added to explain how to interpret the TPX values .. they're not part of the indicator.

Think of TPX like an RSI or other lower indicators that you use in your chart / technical analysis - and once you're familiar with how it works and what the concept behind it is, you can put it to use based on your own trading style, timeframe, etc...
jamespoundiv
Thanks @RedKTrader, this has really helped me visualize the direction the market is going. The only issue I am having: I am using a 1 minute chart to trade, but it seems the indicator waits for each new bar to update, and sometimes repaints just a tad (for instance, the line showing when TPX goes from bearish to bullish can be updated to be on the previous candle when a new one forms).

Is there a way to have it update with the live data as it comes in, but still in the timeframe of the chart you're in?

An alternate solution might be to use a tick chart or sub-minute seconds chart, but I wasn't sure if that would affect the results of the data given by the script. It seems pretty reliable at 1 minute.
RedKTrader
@jamespoundiv, thank you for your feedback - i tested on a 1-min chart but i'm afraid i couldn't observe what you described .. or maybe i didn't fully understand ..

the code is very straight-forward and it will re-calculate in real-time with each "tick" - and once the bar is closed, its related data won't change.

what i suggest you try, is to add a standard RSI to your chart and observe how it behaves vs the TPX - they should behave in pretty much the same way in terms of reacting to data change, regardless of the timeframe. please feel free to share move observations and thank you for using this script .. hope it's useful to your trading.
Daha Fazla