How to get order ID from broker

Questions about MultiCharts and user contributed studies.
andreinvest
Posts: 43
Joined: 27 Oct 2019
Has thanked: 29 times
Been thanked: 1 time

How to get order ID from broker

Postby andreinvest » 24 Nov 2020

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 ?

McGeorge
Posts: 49
Joined: 22 Jun 2018
Has thanked: 10 times
Been thanked: 6 times

Re: How to get order ID from broker

Postby McGeorge » 24 Nov 2020

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.

andreinvest
Posts: 43
Joined: 27 Oct 2019
Has thanked: 29 times
Been thanked: 1 time

Re: How to get order ID from broker

Postby andreinvest » 25 Nov 2020

thank you ! I will try


Return to “MultiCharts”