Price Action Index

chrism665 업데이트됨   
I've created a simple oscillator which I think does a good job of easily showing you when price is worth watching or not. I think all too often you get stuck looking at something like an RSI and end up trading noise.

From my observations and experiences, I've found that there are 2 major catalysts for price movement--
  • Price is either trending and reaches a top or bottom, or
  • Price is consolidating and ready to make a move in some direction

These movements can be seen quite well from a Bollinger Band, which is what mostly gave me the inspiration. When I watch a chart with a BB on it I see that either you're looking to trade price moving out of a squeeze or riding price up/down the band until it crosses over and makes a move to the moving average.

My solution was to multiply the direction of price by the strength of its deviation.
  • Price gets converted into a signal between -1.0 (bottom of the range) and 1.0 (top of the range)
  • Standard Deviation gets converted into a stochastic signal between 0 (next to no deviation from mean) and 100 (highest deviation in lookback)
  • These 2 get multiplied by each other
  • The result tells you if price action is trending bullish and if its approaching max strength (perhaps Overbought), example: Price is hitting highs (1.0) and deviation is also at its highest (100) = 100, opposite for bearish
  • Result can also tell you if price is at the top of the range but the deviation is so tiny and we're mostly pinned to the mean (1.0 * 5 = only 5)

How to Trade this Indicator--
If the indicator is stuck near the middle and purple:
- Don't make directional trades or you'll be eaten alive by the chop
- Good idea to sell options, Iron Condors/Butterflies, etc
- Wait for a move to breakout --> the purple will fade away and give way to a direction
--- As in all trading scenarios, be mindful of fakeouts/short moves to one direction that very quickly get reversed

If the indicator is heading higher:
- This would indicate there is a bull trend going on, get long
- If we are reaching the overbought area, this is an ideal place to take profits or look at spreads like Bearish Call Spreads (sell calls)
- I think you can make your own determination of when to sell by either selling when we're in the overbought area (if it reaches there) or staying bullish so long as it is above the zone

If the indicator is heading lower:
- Bear trend, shorting is possible
- Can use this as a contrarian signal to buy lows

A couple of charts with the indicator and a purple squeeze box I've drawn (can sometimes get noisy in real-time, but hindsight is 20/20)--
Bitcoin on Daily with default 20 length

Gamestop on 30 minute time frame with 100 length

Please feel free to use this indicator for your trading or your own indicators. This particular script is very stripped down/bare bones from what I have been working on as an ongoing project. If TradingView ever returns scripts you can sell, I would probably open that up for a small premium.
릴리즈 노트:
  • Added ability to separate the Standard Deviation length from its Stochastic length
  • Added ability to adjust the "straddle box" as I like to call it
릴리즈 노트:
  • Added some other options besides Standard Deviation to measure dispersion

Personally, I really like the Signal to Noise ratio squared, Coefficient of Variation, and Standard Deviation. StDev is probably the most simple measure and the default. These additions are mostly just an add for fun, but if you find better signals or trading using different ones, then great!
릴리즈 노트:
  • Added Higher Time Frame functionality. I haven't seen much improvement in signals, I think what makes more sense is increasing the lengths instead, but some might find it more useful
  • Added ability to use Bar Colors
  • Added alert conditions and alerts-- I personally have not scripted these before and wasn't able to get any real-time alerts generated, so I am not sure this is done correctly... will likely revisit at another time
  • Found a small typo in the oscillation tuple function
  • Added a Range function to Dispersion methods

Have worked on variable/dynamic lengths, using On Balance Volume, Rates of Change, etc. but haven't seen a lot of improvement in signals, and getting to be a little too complicated for the basis of the script.

If you have any requests or additional feedback, please let me know!
릴리즈 노트:
I thought I'd revisit this script and make some changes and additions--
  • Previously there was a sort of stochastic calculation borrowed from the Fisher Transformation. I decided to swap in your standard Stochastic as it does not inherently smooth and folks can decide to put a smoothing length if desired or keep it at '1' for less lag
  • I added the TradingView "Divergence Indicator" to this oscillation and cranked the lookbacks way down. I think this helps make the indicator more actionable
    -- The inputs on Divergence are at the bottom of settings. Can always uncheck everything if its not desired
  • Restructured some of the inputs and tidied up the code a little bit
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.


이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?