Navigation: Realtest Script Language > Syntax Element Details > Sign Category General-Purpose Functions Description Returns the sign of a number Syntax Sign(value) Parameters value - formula specifying a number Notes Returns 1 if the number is positive, -1 if the number is negative, or 0 if the number is 0. Example TrendDir: Sign(C - MA(C, 200)) Returns 1 above the 200-day MA, -1 below, 0 if exactly equal. Copyright © 2020-2026 Systematic Solutions, LLC