Changes
Jump to navigation
Jump to search
Created page with "Forces the built-in strategy exit functions to be applied on the entire position basis. The built-in strategy exit functions are: [[SetStopLoss , SetProfitTarget , SetBreakE..."
Forces the built-in strategy exit functions to be applied on the entire position basis.
The built-in strategy exit functions are: [[SetStopLoss , SetProfitTarget , SetBreakEven , SetDollarTrailing ,]] and [[SetPercentTrailing.]]
==== Usage ====
<syntaxhighlight>SetStopPosition</syntaxhighlight>
==== Notes ====
If [[SetStopPositon, SetStopContract,]] and [[SetStopShare]] were not used, the exit functions will be applied on the entire position basis as a default.
If [[SetStopPositon, SetStopContract,]] and [[SetStopShare]] were used in multiple instances or in different signals applied to the same chart, the last instance will be controlling.
==== Example ====
<syntaxhighlight>Force SetStopLoss strategy exit function to be applied on the entire position basis:
SetStopPosition;
SetStopLoss(100);
An exit order for the entire position will be generated if the position loss reaches $100.</syntaxhighlight>
[[Category:Strategy Orders]]
The built-in strategy exit functions are: [[SetStopLoss , SetProfitTarget , SetBreakEven , SetDollarTrailing ,]] and [[SetPercentTrailing.]]
==== Usage ====
<syntaxhighlight>SetStopPosition</syntaxhighlight>
==== Notes ====
If [[SetStopPositon, SetStopContract,]] and [[SetStopShare]] were not used, the exit functions will be applied on the entire position basis as a default.
If [[SetStopPositon, SetStopContract,]] and [[SetStopShare]] were used in multiple instances or in different signals applied to the same chart, the last instance will be controlling.
==== Example ====
<syntaxhighlight>Force SetStopLoss strategy exit function to be applied on the entire position basis:
SetStopPosition;
SetStopLoss(100);
An exit order for the entire position will be generated if the position loss reaches $100.</syntaxhighlight>
[[Category:Strategy Orders]]