StephXAGs

WhipLash

StephXAGs 업데이트됨   
This is a study to determine if small candle bodies (little difference between open and close), regardless of overall candle length (high/low), can be used to filter choppy markets.

The indicator will calculate the selected average "MA Mode" of (close-open). To standardize this result and ensure any filters/thresholds do not need to be recalculated for each instrument the result will be used to calculate the Z Score.

The idea is that when candle bodies are small there is very little actual price movement, and therefore price is choppy. When considering the Z Score of that result, any outliers ie larger candle bodies, could show a potential trend forming. This indicator is similar to QStick but allows more customization by the user.

MA Mode determines which MA is used to smooth the results of (close-open)

Price Smoothing is the number of running periods the MA Mode is calculated for.

The three Thresholds are preset to the 90%, 95%, and 99% levels for Z Score. If these thresholds are altered you may wish to also alter the horizontal lines programmed for each level on the positive and negative sides.

The Z Length is the period for which the Z Score is calculated

Multiple MA Options Credits to @Fractured
Bits and Pieces from @AlexGrover, @Montyjus, and @Jiehonglim

As always, trade at your own risk.
릴리즈 노트:
Added alerts programming. There are now six built in alert functions. Three LONG alerts, and three SHORT alerts that are based on price breaching a threshold level. These threshold levels correspond to the threshold levels built into the script.

Threshold 1 will alert if price breaches Threshold 1 but not Threshold 2
Threshold 2 will alert if price breaches Threshold 2 but not Threshold 3
Threshold 3 will alert if price is greater than Threshold 3

You may program these for LONG and SHORT price movements. Note: you MUST set the Threshold levels PRIOR to setting the alert.

Strongly recommend selecting "ONCE PER BAR CLOSE" as price may move the indicator while the candle is open above or below the threshold as the calculation is based on CLOSE price.

You will likely receive a "REPAINTER" alert. After reviewing the PineScript repainter information this is likely due to the fact EMAs are used within the calculation. I have not noticed the indicator changing previously recorded data EXCEPT for the OPEN candle (which is normal when close price is utilized).

Utilize all 6 or 1, whatever works best for your system.

As always, trade at your own risk.
릴리즈 노트:
No changes to code simply republishing as I forgot to update the chart view prior to most recent update.
릴리즈 노트:
Added alert conditions for indicator crossing zero by request. This can be used to prepare for an entry, or used as an exit for an open trade.

This script has not been optimized for all instruments. You will want to find the best settings for your needs.

Alert information is included in previous update regarding how to program.

As always, trade at your own risk.

오픈 소스 스크립트

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

면책사항

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

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