Difference between revisions of "FilledOrderContracts"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, representing the number of contracts of the filled order. ==Usage== <syntaxhighlight>FilledOrderContracts</syntaxhighlight> The following values ca...")
 
 
Line 9: Line 9:
  
 
==Notes==
 
==Notes==
This function can only be used in signals.
+
This function can only be used in signals.<br>
 +
This function is executed only when the "Order Filled" event is enabled in Strategy Properties - Auto Trading tab
  
 
==Example==
 
==Example==

Latest revision as of 17:05, 30 June 2017

Returns a numerical value, representing the number of contracts of the filled order.

Usage

FilledOrderContracts

The following values can be returned:

0 - no filled order event

otherwise

number of contracts of the filled order

Notes

This function can only be used in signals.
This function is executed only when the "Order Filled" event is enabled in Strategy Properties - Auto Trading tab

Example

Assign a value, indicating number of contracts of the filled order, to Value1 variable:

Value1= FilledOrderContracts;