OPEN-SOURCE SCRIPT
Expected Move Bands

Every options desk opens the week with the same question: how far is this thing supposed to travel by Friday? The answer is already priced. Implied vol is the market's own estimate of the coming move, and you can read it straight off the chart instead of running the math in your head.
This draws that estimate as bands around price. It anchors to the open of each week, or month, and holds the bands flat across the period, the way a desk marks its expected range on Monday morning and watches price work inside it.
The inner band is one standard deviation. If the market's vol read is right, price closes inside it about two times out of three. The wider band is two sigma, the tail. When price breaks the one-sigma band and holds out there, that is range expansion, the move getting repriced while it happens.
The bands are fed by whichever volatility index belongs to the instrument you are charting -- GVZ if it is gold, OVX for crude, VXN on the Nasdaq, DVOL on bitcoin, VIX on the S&P. The dashboard names the one it picked. That is the only case where implied vol is actually observed.
Where no such index exists, the bands are derived instead: a reference index scaled by the ratio of this instrument's realized vol to the reference's. The level and the event risk still come from a real options series and only the ratio is estimated, and the dashboard marks it DERIVED. It cannot see risk specific to one instrument, such as a single name going into its own earnings.
Where neither is possible nothing is drawn and the dashboard says why. There is no realized-vol fallback, deliberately: a backward-looking estimate diverges from traded implied vol exactly in the regimes you would open this for. Into a known event, implied rises while realized is still asleep. After a shock, realized stays elevated while implied mean-reverts. A band I cannot stand behind does not get drawn.
The dashboard shows the IV source and which tier it came from, the live IV, the expected move in points and percent, and the exact levels. Labels print the prices on the chart. Alerts fire when price closes outside one sigma or tags two.
Read the band correctly: an expected move is a probability statement, not a boundary. Price closing outside the one-sigma band roughly a third of the time is the model working, not failing. The realized-vol ratio behind derived mode is measured on daily bars, so it does not shift when you change chart timeframe.
This draws that estimate as bands around price. It anchors to the open of each week, or month, and holds the bands flat across the period, the way a desk marks its expected range on Monday morning and watches price work inside it.
The inner band is one standard deviation. If the market's vol read is right, price closes inside it about two times out of three. The wider band is two sigma, the tail. When price breaks the one-sigma band and holds out there, that is range expansion, the move getting repriced while it happens.
The bands are fed by whichever volatility index belongs to the instrument you are charting -- GVZ if it is gold, OVX for crude, VXN on the Nasdaq, DVOL on bitcoin, VIX on the S&P. The dashboard names the one it picked. That is the only case where implied vol is actually observed.
Where no such index exists, the bands are derived instead: a reference index scaled by the ratio of this instrument's realized vol to the reference's. The level and the event risk still come from a real options series and only the ratio is estimated, and the dashboard marks it DERIVED. It cannot see risk specific to one instrument, such as a single name going into its own earnings.
Where neither is possible nothing is drawn and the dashboard says why. There is no realized-vol fallback, deliberately: a backward-looking estimate diverges from traded implied vol exactly in the regimes you would open this for. Into a known event, implied rises while realized is still asleep. After a shock, realized stays elevated while implied mean-reverts. A band I cannot stand behind does not get drawn.
The dashboard shows the IV source and which tier it came from, the live IV, the expected move in points and percent, and the exact levels. Labels print the prices on the chart. Alerts fire when price closes outside one sigma or tags two.
Read the band correctly: an expected move is a probability statement, not a boundary. Price closing outside the one-sigma band roughly a third of the time is the model working, not failing. The realized-vol ratio behind derived mode is measured on daily bars, so it does not shift when you change chart timeframe.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Public, timestamped track record. Free month of the desk: ivanlabrie.netlify.app
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Public, timestamped track record. Free month of the desk: ivanlabrie.netlify.app
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.