TradingView
pauls0101
24 Th08 2020 03:12

ATR with Impulse Alerts 

GoldOANDA

Mô tả

This is a very simple script which simply plots an ATR (the built-in ATR function, using RMA) and plots a cross when the previously closed bar is larger than the ATR by a given threshold. There are also alert conditions set so you can be alerted when these impulse bars show up, either up or down bars. Have fun and safe trading!

Phát hành các Ghi chú

Update: I also added a plot for the actual range of each bar since I found myself calculating it occasionally.

Phát hành các Ghi chú

Reordered plots.

Phát hành các Ghi chú

Several updates to the format and visibility of the indicator.

Phát hành các Ghi chú

Added a minimum size setting for the impulse move bars.

Phát hành các Ghi chú

Added the option to adjust the filter by another ATR multiplier rather than flat values so it works across more assets.

Phát hành các Ghi chú

Added an alertcondition that captures both up and down moves so alerts can be set that don't use as many alert slots if used on multiple instruments.

Phát hành các Ghi chú

Updated to v5 and added a multiplier for easily using with other indicators for SL/TP.

Phát hành các Ghi chú

Updated to plot the multiplied ATR. Oops.

Phát hành các Ghi chú

Minor updates; will need to rollback some of these updates at a later point. Trying to plot the numerics without visually updating it as it squashes the plots.
Bình luận
BryceWH
Phenomenal indicator. Wow. I've copied and modified it with the following line: barcolor(impulseUp ? color.lime : impulseDn ? color.red : na)

Thêm nữa