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

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