How do I know current open position?

Questions about MultiCharts .NET and user contributed studies.
maisatomai
Posts: 83
Joined: 18 Mar 2013
Has thanked: 11 times

How do I know current open position?

Postby maisatomai » 30 Mar 2013

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.

User avatar
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?

Postby Henry MultiСharts » 01 Apr 2013

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.


Return to “MultiCharts .NET”