+1 888 340 6572

I AvgEntryPrice at Broker: Difference between revisions

From MultiCharts
mNo edit summary
 
Line 1: Line 1:
Returns the Average entry price of each open entry in a pyramided position.   
Returns the Average entry price of each open entry in a pyramided position.   


==== Usage ====
== Usage ==
<syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight>  
<syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight>  
   
   
==== Notes ====  
== Notes ==  
[[i_AvgEntryPrice_at_Broker]] only returns the average entry price for open trades.  
* Only returns the average entry price for open trades.  
 
* Can only be used in an indicator. Use [[AvgEntryPrice_at_Broker]] for using it in a signal.
[[i_AvgEntryPrice_at_Broker]] can only be used in an indicator.  
* Will only return a value if a signal is applied to the same instrument and chart.  
 
[[i_AvgEntryPrice_at_Broker]] will only return a value if a signal is applied to the same data.  
   
   
==== Example ====  
== Example ==  
<syntaxhighlight>i_AvgEntryPrice_at_Broker returns 170 if three trades are currently open and were entered at a price  
<syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight>
of 140, 170, and 200.  
Returns 170 if three trades are currently open and were entered at a price of 140, 170, and 200.  


i_AvgEntryPrice_at_Broker returns 53 if four trades are currently open and were entered at a price  
<syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight>
of 54, 48, 60, and 50.</syntaxhighlight>
Returns 53 if four trades are currently open and were entered at a price of 54, 48, 60, and 50.
   
   
[[Category:Strategy Performance]]
[[Category:Strategy Performance]]

Latest revision as of 19:03, 14 February 2012

Returns the Average entry price of each open entry in a pyramided position.

Usage

i_AvgEntryPrice_at_Broker

Notes

  • Only returns the average entry price for open trades.
  • Can only be used in an indicator. Use AvgEntryPrice_at_Broker for using it in a signal.
  • Will only return a value if a signal is applied to the same instrument and chart.

Example

i_AvgEntryPrice_at_Broker

Returns 170 if three trades are currently open and were entered at a price of 140, 170, and 200.

i_AvgEntryPrice_at_Broker

Returns 53 if four trades are currently open and were entered at a price of 54, 48, 60, and 50.