StephXAGs

WhipLash

StephXAGs Cập nhật   
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.
Phát hành các Ghi chú:
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.
Phát hành các Ghi chú:
No changes to code simply republishing as I forgot to update the chart view prior to most recent update.
Phát hành các Ghi chú:
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.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?