+1 888 340 6572

GetPositionAveragePrice: Difference between revisions

From MultiCharts
(Undo revision 5011 by Dave Masalov (talk))
No edit summary
Line 2: Line 2:
   
   
== Usage ==
== Usage ==
<syntaxhighlight>GetPositionAveragePrice(Account, Symbol)</syntaxhighlight>
<syntaxhighlight>GetPositionAveragePrice(Symbol,Account)</syntaxhighlight>


Where:  
Where:  

Revision as of 18:33, 8 August 2013

Returns average price of the position.

Usage

GetPositionAveragePrice(Symbol,Account)

Where:

Symbol - the name of the instrument.
Account - account number at broker.

Example

Will return a value of 1.3456 if the average entry price for the position, defined by specified account/symbol pair is 1.3456.