Primitives

riskCap

Limits the risk per trade to a specified percentage of the account. This helps manage overall portfolio risk by controlling position sizes.

riskCap (tick)

Limits the risk per trade to a specified percentage of the account. This helps manage overall portfolio risk by controlling position sizes.

Input parameters

PropTypeDefaultDescription
percent*number-The maximum percentage of account to risk per trade

SQL example

TICK price WITH minutes=1 > 0 THEN riskCap SET percent=2

On this page