Navigation: Realtest Script Language > Syntax Element Details >

DebugTargetStop

 

 

 

Category

Strategy Elements

Description

Log output from a running test at ExitLimit / ExitStop evaluation time

Input

Any formula returning a string (blank string "" means don't log anything)

Notes

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

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