@keyword() = ...
, starting with @
, with an identifier, and ()
.=
will assign to the action a condition. When the assigned condition is true the action will trigger.()
, adding further degrees of control over the action.
@long
action allows entering a long position when the associated condition is true.
@short
action allows entering a short position when the associated condition is true.
@exit_long
action closes all open long positions when the associated condition is true.
@exit_short
action closes all open short positions when the associated condition is true.
@exit_all
action closes all open position (long or short) when the associated condition is true.
@only_scripted
action determines if only scripted entries/exits should be considered during the backtest. If true
it will ignore any other entry condition set in the other Backtester settings.