+1 888 340 6572

SetStopPosition: Difference between revisions

From MultiCharts
No edit summary
Line 1: Line 1:
Forces the built-in strategy exit functions to be applied on the entire position basis.  
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.]]  
The built-in strategy exit functions are: [[SetStopLoss]], [[SetProfitTarget]], [[SetBreakEven]], [[SetDollarTrailing]], and [[SetPercentTrailing]].
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>SetStopPosition</syntaxhighlight>  
<syntaxhighlight>SetStopPosition</syntaxhighlight>  
   
   
==== Notes ====  
== 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 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.  
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 ====
== Example ==
Force SetStopLoss strategy exit function to be applied on the entire position basis:  
Force SetStopLoss strategy exit function to be applied on the entire position basis:  


Line 20: Line 19:
An exit order for the entire position will be generated if the position loss reaches $100.
An exit order for the entire position will be generated if the position loss reaches $100.
   
   
[[Category:Strategy Orders]]
[[Category:Strategy Orders]]

Revision as of 16:48, 19 February 2012

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

SetStopPosition

Notes

Example

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.