RealTest User Guide
RealTest User Guide

 

 

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 DebugTargetStop formula returns a non-blank string or a non-zero numeric value then whatever it returns is added to the test debug or log output.

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-2025 Systematic Solutions, LLC