OPEN-SOURCE SCRIPT

Longable/Shortable

StefanReich의
업데이트됨
This indicator advises intraday traders which direction NOT to take trades in, based on recent action in the daily chart. Works on any timeframe.

This is not a buy/sell indicator - it is a FILTER that is meant to SUPPRESS trades you may have wanted to take. Like a Daily Bias, but with a neutral position (no bias).

The indicator shows when NOT to take longs and when NOT to take shorts.

So you need an existing strategy to combine this with.

By default, the last 3 days are taken into account (smoothing=3). Change the threshold to get fewer or more warning signals.

The symbols are very simple:
  • Green triangle = Longs only
  • Red triangle = Shorts only

(Each signal is valid for the next candle. After that it expires.)

The current bias is also shown in the bottom right corner.

How it works: We look at which parts of the last candle overlap with the current one. When the new candle's low is far above the last candle's low, it is an indication not to go short. Similarly, when the new candle's high is far below the last candle's high, it is an indication not to go long.

For each direction, we calculate this as a percentage value (what percentage of the last candle is not overlapping the new one), smooth the value and give a signal when we are above the set threshold.
릴리즈 노트
Minimal fix
릴리즈 노트
You can now disable the triangles in the Style tab if you only want to see the current bias.
릴리즈 노트
  • Fixed the realtime label to reflect the last confirmed candle (not the current candle).
  • Improved the value display in status line/data window to show the exact "longability" and "shortabilty" scores (positive = direction is tradeable, negative = direction is not tradeable).
릴리즈 노트
Hiding triangle for non-confirmed candle (clearer that way)
릴리즈 노트
Showing the unconfirmed values in the status line so you can anticipate what the signal for the next candle may be.
릴리즈 노트
Minor fix for status line values
릴리즈 노트
Reversed the meaning of the threshold value. Thus, the default value has also changed (from 65 to 35).

This has 2 advantages:
  • The maximum value of the "longable" and "shortable" scores displayed next to the indicator is now identical to the threshold value.
  • The parameter is now much easier to explain: Threshold 35 means that 35% of the top and bottom of each candle must be revisited by the next candle - otherwise a warning signal is generated.
sentiment
StefanReich

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

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

면책사항