OPEN-SOURCE SCRIPT

Catastrophe Distance

Theo entomologyx
Catastrophe Distance is a tool to visually explore the time between catastrophic price moves.

Catastrophes are defined with 2 variables:

drawdown_threshold: the amount of percent the price has to fall
lookback_period = the amount of last candles in which drawdown_threshold was reached.

Drawdown_threshold per default is 25% and lookback_period is 5, meaning per default if price moves -25% in the last 5 candles you have a catastrophe.
Feel free to play around with this values to fit all the events you consider a catastrophe.

This indicator does not provide signals. It however implies caution if the time since the last catastrophe is higher then the average time between catastrophes (of last x catastrophes).

This is marked by the label over the current price showing the actual and average time since last catastrophe turning from green to black.

Given that the distance between catastrophes is somewhat cyclical:
Maybe now is a good time to start phishing for low limit orders and reduce leverage?
Cycles

Mã nguồn mở

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

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

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