Hello -
Is there a way to get the name of the current open entry?
Entryname references the last closed trade.
Get active Entry name
-
- Posts: 223
- Joined: 16 Oct 2011
- Has thanked: 66 times
- Been thanked: 20 times
Re: Get active Entry name
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.
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.
-
- Posts: 223
- Joined: 16 Oct 2011
- Has thanked: 66 times
- Been thanked: 20 times
Re: Get active Entry name
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
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
Re: Get active Entry name
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).
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).
-
- Posts: 223
- Joined: 16 Oct 2011
- Has thanked: 66 times
- Been thanked: 20 times
Re: Get active Entry name
I can get the second entry name if I use "postradeentryname(0,1)"
Thanks for the suggestion
Thanks for the suggestion