If you would learn how to use MetaTrader4, you wouldn't have these problems.
I want an IOU for the 5 minutes of my life I wasted reading this post. :o)
All of your "suggestions" already exist.
And whats with #7? (rhetorical)
All of your "suggestions" already exist.
And whats with #7? (rhetorical)
Before writing such replies it might be wise to *read* the message.
Try to be openminded and if you don't understand a certain point, like the answers clearly show, just ask.
I guess it's me that has to claim the IOU :P
Try to be openminded and if you don't understand a certain point, like the answers clearly show, just ask.
I guess it's me that has to claim the IOU :P

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
I have a few suggestions for MT4.
I fully understand most/all of my suggestions can be accomplished by
some coding. I'm just looking for things to simplify coding.
Before I start none of the below is meant as an insult.
Just trying to help improving MT4. Which I think is in everyones
interest.
--------- 1. Stoploss
A simple stoploss setting like StopLoss(200)
If the total amount of losses becomes 200 pips *all* open and pending
orders are closed.
This stoploss overrules everything that might be set using OrderSend
and OrderModify.
--------- 2. CloseAll()
A command that closes all pending and active orders.
--------- 3. CloseAtEndOfBarActive()
A command that closes the selected order at the end of the current
candle. Maybe an order ticket value of -1 could be used to close all
live orders.
--------- 4. CloseAtEndOfBarPending()
Same as 3. but now for orders that haven't been filled yet.
--------- 5. History list in variables
The list contains 10 records with the following fields.
ticket, OpenPrice, ExitPrice, S/L hit, date
MyVar=History(5,3) would put the exit price of the 5th record in MyVar
--------- 6. Server busy
From previous threads and replies from the MQ team I understood that
sometimes orders can't be executed.
Some work arounds are given also.
But I think that MT4 itself know best what's wrong.
So when the user closes/modify/open a position I think MT4 should just close it.
If it can't it should retry or take other measures.
--------- 7. Backtester
I found some strange behavior in the MT4 backtester.
An example.
I have 10 open positions with different entry prices.
The S/L and T/P of all are the same.
When I backtest the T/P is hit.
MT4 closes only 6 of them.
Why is that?
(I use v4 build 178)
--------- 8. Reverse
Say my EA goes short on 10 lots.
Then it goes long on 3 lots.
I think EA should automatically close the 10 short positions before
opening the long.
It has no use being long and short at the same time...