SetStopPrecedence
|
Trading system toolbox |
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
|
SEE ALSO | ApplyStop() function |
The SetStopPrecedence function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.