Get active Entry name

Questions about MultiCharts and user contributed studies.
waveslider
Posts: 223
Joined: 16 Oct 2011
Has thanked: 66 times
Been thanked: 20 times

Get active Entry name

Postby waveslider » 12 Sep 2021

Hello -
Is there a way to get the name of the current open entry?
Entryname references the last closed trade.

Mydesign
Posts: 177
Joined: 15 Feb 2017
Has thanked: 32 times
Been thanked: 39 times

Re: Get active Entry name

Postby Mydesign » 13 Sep 2021

Hi,

EntryName(PosBack)

Where: PosBack - a numerical expression, specifying the position:

0 - open position;

1 - one position back (the last position closed);

2 - two positions back, etc.

waveslider
Posts: 223
Joined: 16 Oct 2011
Has thanked: 66 times
Been thanked: 20 times

Re: Get active Entry name

Postby waveslider » 13 Sep 2021

Thanks for the response, but I am looking for the active (open) entry and entryname isn't doing it.
To clarify, I am using multiple data series, Realtime History Matching, and IOG is on.
The strategy allows up to 2 entries.
Entryname only picks up the name of the first entry. If/when that entry exits and the 2nd position is on, entryname does not get the name of the second entry, it still lists the name of the first entry

Mydesign
Posts: 177
Joined: 15 Feb 2017
Has thanked: 32 times
Been thanked: 39 times

Re: Get active Entry name

Postby Mydesign » 13 Sep 2021

You should then check out for "PosTradeEntryName" keyword.

Usage
PosTradeEntryName(PosAgo,TradeNumber)
Where: PosAgo - a numerical expression, specifying the position:
0 - open position;
1 - one position back (the last position closed);
2 - two positions back, etc.
TradeNumber - a numerical expression, specifying the number of trade (zero-based).

waveslider
Posts: 223
Joined: 16 Oct 2011
Has thanked: 66 times
Been thanked: 20 times

Re: Get active Entry name

Postby waveslider » 14 Sep 2021

I can get the second entry name if I use "postradeentryname(0,1)"
Thanks for the suggestion


Return to “MultiCharts”