OPEN-SOURCE SCRIPT

ATR with Impulse Alerts

Telah dikemas kini
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!
Nota Keluaran
Update: I also added a plot for the actual range of each bar since I found myself calculating it occasionally.
Nota Keluaran
Reordered plots.
Nota Keluaran
Several updates to the format and visibility of the indicator.
Nota Keluaran
Added a minimum size setting for the impulse move bars.
Nota Keluaran
Added the option to adjust the filter by another ATR multiplier rather than flat values so it works across more assets.
Nota Keluaran
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.
Nota Keluaran
Updated to v5 and added a multiplier for easily using with other indicators for SL/TP.
Nota Keluaran
Updated to plot the multiplied ATR. Oops.
Nota Keluaran
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.
ATRimpulseVolatility

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian