I have 2 functions, one is called good1LE and another is called good1SE
good1LE is to long and good1SE is to close the position if the long position of good1LE suffer a 5 basis loss. Is there any function for good1SE to call such that "if (current value<good1LE trade price-5) close the position.
It is something like GenerateStopLoss.
How do I know current open position?
-
- Posts: 83
- Joined: 18 Mar 2013
- Has thanked: 11 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: How do I know current open position?
Hello maisatomai,
Check IStrategyPerformance Members:
AvgEntryPrice - Returns average entry price.
AvgEntryPriceAtBroker Read - Returns average entry price for position that was requested from the broker.
AvgEntryPriceAtBrokerForTheStrategy - Returns average entry price for position requested from the broker for the current strategy.
Check IStrategyPerformance Members:
AvgEntryPrice - Returns average entry price.
AvgEntryPriceAtBroker Read - Returns average entry price for position that was requested from the broker.
AvgEntryPriceAtBrokerForTheStrategy - Returns average entry price for position requested from the broker for the current strategy.