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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明