Difference between revisions of "I AvgEntryPrice at Broker"
Jump to navigation
Jump to search
(Created page with "Returns the Average entry price of each open entry in a pyramided position. ==== Usage ==== <syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight> ==== Notes ==== ...") |
m |
||
(One intermediate revision by one other user not shown) | |||
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 == | |
<syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight> | <syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight> | ||
− | + | == 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 == | |
− | <syntaxhighlight>i_AvgEntryPrice_at_Broker | + | <syntaxhighlight>i_AvgEntryPrice_at_Broker</syntaxhighlight> |
+ | Returns 170 if three trades are currently open and were entered at a price of 140, 170, and 200. | ||
− | i_AvgEntryPrice_at_Broker | + | <syntaxhighlight>i_AvgEntryPrice_at_Broker</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.