SetStopPrecedence
- set precedence of built-in stops

Trading system toolbox
(AmiBroker 60)


SYNTAX SetStopPrecedence( type1, type2, type3, type4 )
RETURNS NOTHING
FUNCTION SetStopPrecedence defines the order in which stops are executed in case many stops trigger on the very same bar, as in example given below. SetStopPrecedence should be called AFTER ApplyStop() functions.
EXAMPLE // first execute N-bar stop, then max loss, then trailing, then profit

SetStopPrecedence( stopTypeNBar, stopTypeLoss, stopTypeTrailing, stopTypeProfit );
SEE ALSO ApplyStop() function

References:

The SetStopPrecedence function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.