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

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer