OPEN-SOURCE SCRIPT
NBarForwardOdds

# N Bar Forward Odds
## Description
Calculates the probability of a closing price exceeding a closing price at a specified interval away from the
current bar. It does this by iterating through a series of intervals (1 to 20) and determining if the closing
price of the current bar is greater than the closing price of the bar at that interval.
## Usage:
Selectable base interval from the input configuration panel is calculated with a value step in a range `1:20` to get the final interval displayed.
## Description
Calculates the probability of a closing price exceeding a closing price at a specified interval away from the
current bar. It does this by iterating through a series of intervals (1 to 20) and determining if the closing
price of the current bar is greater than the closing price of the bar at that interval.
## Usage:
Selectable base interval from the input configuration panel is calculated with a value step in a range `1:20` to get the final interval displayed.
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código abierto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.