- Recall result of last trade
- orderclose problem
- How to get last close price
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor -
if(OrderSymbol()==Symbol() && OrderSelect(i, SELECT_BY_POS,MODE_HISTORY
You can not use any Trade Functions until you first select an order.
-
The loop returns each entry matching symbol — resulting in the first after loop exits. Why does that surprise you?
-
Do not assume history has only closed orders.
OrderType() == 6, 7 in the history pool? - MQL4 programming forum 2017.11.30 -
Do not assume history is ordered by date, it's not.
Could EA Really Live By Order_History Alone? (ubzen) - MQL4 programming forum 2012.04.21
Taking the last profit and storing it in a variable | MQL4 - MQL4 programming forum #3 2020.06.08 -
Total Profit is OrderProfit() + OrderSwap() + OrderCommission(). Some brokers don't use the Commission/Swap fields. Instead, they add balance entries. (Maybe related to Government required accounting/tax laws.)
"balance" orders in account history - Day Trading Techniques - MQL4 programming forum 2017.11.01Broker History FXCM Commission - <TICKET>
Rollover - <TICKET>>R/O - 1,000 EUR/USD @0.52 #<ticket> N/A OANDA Balance update
Financing (Swap: One entry for all open orders.)
-
- No! You were told to use the code button. You didn't edit your original post as requested. You didn't use it on your last post.
- If you successfully select an order you continue on to the next one. Your loop now does nothing.
[Solved]
It is totally ridiculous to edit your posts in this manner.
You have deleted the original code and so now nobody knows what mistakes you made and the reply which helped you to correct your code make no sense at all.
Now nobody else can get any benefit from this topic.
It is totally ridiculous to edit your posts in this manner.
You have deleted the original code and so now nobody knows what mistakes you made and the reply which helped you to correct your code make no sense at all.
Now nobody else can get any benefit from this topic.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use