[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 460
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good evening all! Who knows how to close an order and select the very first order and close it?
PLEASE HELP!!!
Find a position with a minimum opening time.
Good evening all! Who knows how to select the first order and close it when closing an order?
PLEASE HELP!!!
As correctly said, you need to find the order with the earliest open time, get its ticket, select the order with that ticket, and close it.
Here is an example of how to find the order you need:
Once the ticket of the order you need is found, you need to select it with the OrderSelect(ticket, SELECT_BY_TICKET) function, and close OrderClose() with the parameters you need.
1. OrdersHistoryTotal
2. Sort the closed orders by time
3. determine the last orders in a row OrderProfit<0
1. OrdersHistoryTotal
2. Сортируем закрытые ордера по времени
3. Определяем у последних подряд идущие OrderProfit<0
Thank youGood afternoon.
Please solve the problem. When I call the MarketInfo("EURUSD", MODE_STOPLEVEL) function - minimum allowed stop loss/stake profit level in pips, it shows 10 pips.
different numbers are shown in the terminal, for example sl=30, tp=10. What should I do, how can I separate them in a function call?
Good afternoon.
Please solve the problem. When I call the MarketInfo("EURUSD", MODE_STOPLEVEL) function - minimum allowed stop loss/stake profit level in pips, it shows 10 pips.
different numbers are shown in the terminal, for example sl=30, tp=10. What should I do? How do I separate them in a function call?
When you set the minimum stop for SL and TP it will show different values.)
Уровень минимальных стопов для SL и TP один и тот же, не может она тебе показывать разных значений, иначе дц втопку )
I thought so too, but in MasterForex, SL and TP are different. Any other thoughts on the subject?
I thought so too, but in MasterForex, SL and TP are different. Any other thoughts on the subject?
how do you know they are different?
а как ты определил, что разные?
When I was looking for an error every action was overAlagged, and it turned out TP passes when modifying, but SL is not too close.