Navigation: Realtest Script Language > Syntax Element Details >






Strategy Elements


Log output from a running test at EntrySetup evaluation time


Any formula returning a string (blank string "" means don't log anything) or numeric value (0 means don't log anything)


If this formula is present in a strategy, it will be evaluated for every stock every day of the test, just prior to the EntrySetup formula evaluation.

If the DebugEntry formula returns a non-empty string, then whatever it returns is added to the log window text which is displayed at the end of the test run.

If the formula returns a numeric value, that number will be logged whenever it is non-zero.

To make the best use of this debugging feature, use the IF and Format functions, as in this example (from mr_sample_debug.rts):





Copyright © 2020-2021 Systematic Solutions, LLC