PINE LIBRARY
Mis à jour rangeBreakout

Library "rangeBreakout"
markRange(trackTimePeriod, drawTimePeriod, highLineColor, lowLineColor, middleLineColor, maxLookbackDays)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low values are tracked. This is the range; any breakout above/below this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid, this is typically from the end of the `trackTimePeriod` to the end of the day (or session) for security.
highLineColor (color)
lowLineColor (color)
middleLineColor (color)
maxLookbackDays (simple int): - Number of historic days to retain the range value.
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the range values, and a boolean indicator that indicates if the current time is within the tracking time period.
The library can then be forward integrated into other indicators, strategies, and other libraries of TradingView, thus one function can be used globally.
markRange(trackTimePeriod, drawTimePeriod, highLineColor, lowLineColor, middleLineColor, maxLookbackDays)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low values are tracked. This is the range; any breakout above/below this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid, this is typically from the end of the `trackTimePeriod` to the end of the day (or session) for security.
highLineColor (color)
lowLineColor (color)
middleLineColor (color)
maxLookbackDays (simple int): - Number of historic days to retain the range value.
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the range values, and a boolean indicator that indicates if the current time is within the tracking time period.
The library can then be forward integrated into other indicators, strategies, and other libraries of TradingView, thus one function can be used globally.
Notes de version
v2Added:
volumeConfirmation(trackTimePeriod, drawTimePeriod, maxLookbackDays, volumeLength, volumeMultiplier)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low
values are tracked. This is the range, any breakout above/below
this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid,
this is typically from the end of the `trackTimePeriod` to the
end of the day (or session) for the security.
maxLookbackDays (simple int): - Number of historic days to retain the
range value.
volumeLength (simple int)
volumeMultiplier (simple float)
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the
range values, and boolean indicator that indicates if the current
time is within the tracking time period.
------------------------------------------------------------------
Notes de version
v3Fixed duplication of signal; if already short/long position is taken then avoid signal on the same trading day.
Notes de version
v4Notes de version
v5Updated:
markRange(trackTimePeriod, drawTimePeriod, highLineColor, lowLineColor, middleLineColor, maxLookbackDays, volumeLength, volumeMultiplier)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low
values are tracked. This is the range, any breakout above/below
this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid,
this is typically from the end of the `trackTimePeriod` to the
end of the day (or session) for the security.
highLineColor (color)
lowLineColor (color)
middleLineColor (color)
maxLookbackDays (simple int): - Number of historic days to retain the
range value.
volumeLength (simple int)
volumeMultiplier (simple float)
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the
range values, and boolean indicator that indicates if the current
time is within the tracking time period.
------------------------------------------------------------------
Removed:
volumeConfirmation(trackTimePeriod, drawTimePeriod, maxLookbackDays, volumeLength, volumeMultiplier)
Notes de version
v6Added:
volumeConfirmation(trackTimePeriod, drawTimePeriod, maxLookbackDays, volumeLength, volumeMultiplier)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low
values are tracked. This is the range, any breakout above/below
this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid,
this is typically from the end of the `trackTimePeriod` to the
end of the day (or session) for the security.
maxLookbackDays (simple int): - Number of historic days to retain the
range value.
volumeLength (simple int)
volumeMultiplier (simple float)
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the
range values, and boolean indicator that indicates if the current
time is within the tracking time period.
------------------------------------------------------------------
Updated:
markRange(trackTimePeriod, drawTimePeriod, highLineColor, lowLineColor, middleLineColor, maxLookbackDays)
Parameters:
trackTimePeriod (simple string): - Time range for which the high and low
values are tracked. This is the range, any breakout above/below
this period can indicate a potential long/short entry condition.
drawTimePeriod (simple string): - Time range for which the range is valid,
this is typically from the end of the `trackTimePeriod` to the
end of the day (or session) for the security.
highLineColor (color)
lowLineColor (color)
middleLineColor (color)
maxLookbackDays (simple int): - Number of historic days to retain the
range value.
Returns: [rangeHi, rangeLo, inTrackRange] - Values to print the
range values, and boolean indicator that indicates if the current
time is within the tracking time period.
------------------------------------------------------------------
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.