Most trade system functions allow you to specify which trades should be included in calculation, as a trade system may have multiple trades. Possible values are:
• All Trades = total of the corresponding values of all trade system’s trades
• Long Trades = total of the corresponding values for trades that are set to Use as Long
• Short Trades = total of the corresponding values for trades that are set to Use as Short
• This Trade Only = this specific trade only
• Specific trade name = a specific trade, identified by name
For example, consider a trade system that has 6 trades with these open position entry sizes:
Trade Name |
Use As |
OpenPositionEntrySize(@, ThisTradeOnly) |
L1 |
Long |
3 |
L2 |
Long |
6 |
L3 |
Long |
7 |
S1 |
Short |
-4 |
S2 |
Short |
-9 |
S3 |
Short |
-5 |
OpenPositionEntrySize(@, All Trades) = 3 + 6 + 7 - 4 - 9 - 5 = -2
OpenPositionEntrySize(@, Long) = 3 + 6 + 7 = 16
OpenPositionEntrySize(@, Short) = -4 - 9 - 5 = -18
Trade System functions are listed in the Formula Toolbox when the Trade System Formula Builder window is active: