Navigation: Realtest Script Language > Syntax Element Details > #Pad Category Cross-Sectional Functions Description #Pad is a special Data Section tag that looks like a cross-sectional function name but is not one. This tag specifies that a Data item should replace any NaN values in the calculated data array for this item with zeros. Example IndexSignal: #Pad Extern($$SPX, C > MA(C, 200)) If the formula cannot be calculated, e.g. for US holiday bars when calculating it for a non-US symbol, the result will be 0 rather than NaN. Notes If #Pad were not specified, this IndexSignal would be NaN on US holiday bars when referencing it from a non-US symbol. See #Fill for an alternative way to replace NaN values. Copyright © 2020-2026 Systematic Solutions, LLC