OPEN-SOURCE SCRIPT

Price Move Exceed % Threshold & BE Evaluation1

Handy to see history or quick back test of moves. Enter a decimal for percentage wanted [i.e. 0.10 for 10%] and choose the time frame wanted [i.e. 1D for daily back test]. The occurrences of the up or down threshold are plotted in the panel as maroon or green squares and can be read as red or green text in the panel data and on the right hand scale [expand scale to make all values visible if wanted]. The last [blue] number in the panel is the average move for the chosen [in inputs] period.

My usage is mostly to see what % has been exceeded for break even prices of option trades. Example: in SPY a spread has a break even of 567 when the price is 570; I get the percentage of the $3 move by dividing 3/570 to get 0.0526 [rounding though not okay not to]; the results show as described above.
CyclesTrend Analysis

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明