RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

InitialRisk (reference)

 

 

 

 

Category

Current Position Information

Description

The value of the InitialRisk strategy element formula for this position, in price points

Notes

The value is frozen when the position is sized and is adjusted for splits during the trade the same way as FillPrice. It is 0 when the strategy has no InitialRisk.

Use it to express exits in units of the initial risk, e.g. ExitStop: FillPrice - InitialRisk or ExitLimit: FillPrice + 2 * InitialRisk for a long position.

In a strategy with a Side, Quantity can use it to size the position on the risk, because the InitialRisk formula is evaluated just before Quantity.

 

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC