- set precedence of built-in stops

Trading system toolbox
(AFL 4.0)

SYNTAX SetStopPrecedence( type1, type2, type3, type4 )
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


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

More information:

Updated on-line reference