You are looking for help, so please show you attempt, otherwise yours is not a problem but simply an ask for something, and is not allowed on the forum.
You are looking for help, so please show you attempt, otherwise yours is not a problem but simply an ask for something, and is not allowed on the forum.
It is allowed, but such requests are often ignored.
Those who actually make the effort to do something instead of just asking how to do it will be more likely to get help.
This question has been asked and answered hundreds of times in the forum and people get bored with replying to the same question over and over again when a simple search can reveal the answer..
I did not mean coding I mean some flow cause I don't know what is "Cycle all order". If you don't wish to help then just ignore my
tread.
To Keith Watford:
Actually I try to search but found none, event try to think myself. anyway if some one want to ignore it is fine though. but thank you for your reply.
I did not mean coding I mean some flow cause I don't know what is "Cycle all order". If you don't wish to help then just ignore my
tread.
I explained steps that you need to do in order to achieve your desidered result.
If you do not understand what I mean with "cycle all orders" probably you have not knowledge in coding, so you are asking for free code by someone.
Even if I don't like to share free code, because it's not right and useless if you have not knowledge in coding, I share an example to you.
double LastOrderPrice() { double price = 0; datetime open = 0; for( int i=OrdersTotal()-1; i>=0; i-- ) { if( !OrderSelect(i,SELECT_BY_POS) ) continue; if( OrderOpenTime() > open ) { price = OrderOpenPrice(); open = OrderOpenTime(); } } return(price); }
To Keith Watford:
Actually I try to search but found none, event try to think myself. anyway if some one want to ignore it is fine though. but thank you for your reply.
That's strange as a simple search with "last order ticket" shows page after page of results.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to get price of last order to calculate something, how to get that price of last order (ticket)?