How to get order ID from broker ?
Usually it is indicated in order and position tracker. Also there is indicated the average enter price for the position.
There is no any event of opening of trade in Easy Language, that is why it is too difficult to get information if Stop Order was performed.
I know the following functions to work with position:
positionprofit
positionprofit_checked
PosTradeProfit
PosTradeEntryCategory
PosTradeCount
PosTradeIsLong
is there any other to work with orders and trades ?
How to get order ID from broker
-
- Posts: 43
- Joined: 27 Oct 2019
- Has thanked: 29 times
- Been thanked: 1 time
Re: How to get order ID from broker
You can explore keywords in the Dictionary window of the Power Language editor, which lists keywords grouped in different categories. Particularly, you can look into the keywords like EntryName in the Strategy Position category and PosTradeEntryName in the Strategy Position Trades category. They may be what you are looking for.
-
- Posts: 43
- Joined: 27 Oct 2019
- Has thanked: 29 times
- Been thanked: 1 time