Last Trade Time?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Last Trade Time?

Postby Ram » 06 Jan 2015

Hi,

when trying to get time for entry trade I successfully use:

Code: Select all

PositionEntryTime= CurrentPosition.OpenTrades.Item(0).EntryOrder.Time
however, when trying to get the time for the exit from the last trade by using the following code I get nothing in return:

Code: Select all

PositionEndTime = CurrentPosition.ClosedTrades.Item(0).ExitOrder.Time
What I'm missing here?

Thx much in advance!
Best,
R.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Last Trade Time?

Postby Henry MultiСharts » 07 Jan 2015

Hello Ram,

We will check that.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Last Trade Time?

Postby Henry MultiСharts » 12 Jan 2015

CurrentPosition cannot have ClosedTrades. All ClosedTrades can be accessed using SignalObject.Positions.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: Last Trade Time?  [SOLVED]

Postby Ram » 12 Jan 2015

Thanks much.
Best,R.


Return to “MultiCharts .NET”