How to find Last closed order id,type?
closed order ==>> where do you have to search ??
and what trade has it to search where are you looking for
For Example try to find in code EA called moving average ....
i have to find last closed order type whether it is buy/sell and last order id?
eg: i have running many orders id as 1,2,3...
if suppose the id:2 is closed last, i have to get the value of last order id?
i have to find last closed order type whether it is buy/sell and last order id?
eg: i have running many orders id as 1,2,3...
if suppose the id:2 is closed last, i have to get the value of last order id?
Make it and show... you have an example now it is time to LEARN how to code
show your attempt doing it....
i have to find last closed order type whether it is buy/sell and last order id?
eg: i have running many orders id as 1,2,3...
if suppose the id:2 is closed last, i have to get the value of last order id?
Thanks for your support RaptorUK & WHRoeder.
I found it with your help.
To find the last order type: OrderType()
To find the order id : OrderMagicNumber()
works fine.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How to find Last closed order id,type?