OPEN-SOURCE SCRIPT

NBarForwardOdds

879
# 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.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.