seba34e

Range Gap/Open to Close/Close to Close

This indicator shows the percentage variation of:

gap
close to close (day including gap)
open to close (without gap)

The green bars represent the days when the variation did not reach the selected range. The red bars show the days when the variation was higher than the selected range.

Best timeframe : DAY
Notas de prensa:
Description
This indicator allows you to see in a quick and friendly way the number of occurrences that exist in an index, stock or ETF.

It is an indicator that is useful for those who are interested in the world of options and study strategies such as IRON CONDORS, IRON BUTTERFLIES, spreads, verticals and others.

For statistical purposes, it shows how many times an asset exceeded or not a certain percentage of a gap (daily), from a close to the next close (daily) or from the open to the close in the same day.

It is recommended to use it in daily temporality, although it can be used in any other one you want.

Parameters
Conditions: .
* Gap: or Close to Open, refers to the gap from the close of one day to the open of the next day.
* Close To Close, refers to the close of one day to the close of the next day.
* Open To Close, refers to the open of one day until the close of the same day.

Target Percentage: refers to the percentage of deviation to be tested. Note that it does not matter if the deviation was positive or negative.

Star Date: Start date of the sample.
End Date: End date of the sample.

Apply Filter From: Uncheck if you do not want to select a start date (the sample starts from the first day TV has in its history).
Apply Filter Until: Uncheck if you want the sample to end on the current day.

Output Table:
The table at the top right shows:

Condition: your current selected condition (Gap, Close to Close or Open To Close).
Deviation: your current selected deviation.
Total Days: number of days the sample has.
Under Condition Days: number of days that do not reach the selected deviation percentage.
Over Condition Days: number of days that exceeded the selected deviation percentage.
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?