barmerge - Pine Script Constants
barmerge
Section titled “barmerge”Overview
Section titled “Overview”Constants under the barmerge namespace.
Constants
Section titled “Constants”| Name | Type | Description |
|---|---|---|
barmerge.gaps_off | const barmerge_gaps | Merge strategy for requested data. Data is merged continuously without gaps, all the gaps are filled with the previous nearest existing value. |
barmerge.gaps_on | const barmerge_gaps | Merge strategy for requested data. Data is merged with possible gaps (na values). |
barmerge.lookahead_off | const barmerge_lookahead | Merge strategy for the requested data position. Requested barset is merged with current barset in the order of sorting bars by their close time. This merge strategy disables effect of getting data from “future” on calculation on history. |
barmerge.lookahead_on | const barmerge_lookahead | Merge strategy for the requested data position. Requested barset is merged with current barset in the order of sorting bars by their opening time. This merge strategy can lead to undesirable effect of getting data from “future” on calculation on history. This is unacceptable in backtesting strategies, but can be useful in indicators. |