View Single Post
  #27 (permalink)  
Old 10-05-2008, 09:45 PM
fxtrader625's Avatar
fxtrader625 fxtrader625 is offline
Senior Member
 
Join Date: Nov 2006
Posts: 134
fxtrader625 is on a distinguished road
Quote:
Originally Posted by eagle647 View Post
Hi Jeff,
First of all thank you for your great EA, it works wonderfull. I've tested SendCopiedTrades EA and it works as described, there is small delay in order execution on 2nd platform (about 10 - 30 seconds), which sometimes results in different entry price (difference about 2 - 3 pips). But that is O.K., because sometimes price moves in opposite direction from entry price and you will have extra 2 - 3 pips in profit .
When I was testing SendReversedTrades EA I've noticed that on 2nd platform it executes mirrored trades as per reversed logic ( StopLoss becomes TakeProfit and Take Profit becomes StopLoss).
Example: pair GBPUSD
1st platform sell at 1.7624, TakeProfit 1.7604, StopLoss 1.7644
2nd platform buy at 1.7628, TakeProfit 1.7644, StopLoss 1.7604

So far so good. Lets say price moved to 1.7604 (this is the price we see on charts), in this case we have StopLoss on 2nd platform minus 24 pips , but on the 1st platform order is still open and it triggers to open another buy order on the 2nd platform at 1.7608 with StopLoss at 1.7604 and TakeProfit at 1.7644. And right away we have another minus 4 pips.
My question is : is it possible to add spreads into reversed trades to avoid this situation. In our example we would have:

1st platform sell at 1.7624, TakeProfit 1.7604, StopLoss 1.7644
2nd platform buy at 1.7628, TakeProfit 1.7640, StopLoss 1.7600

Thank you.
Hello,

Here is an updated EA with respect to your idea. As the market is closed at this moment, I would test it at a later moment. You can eventually test it and tell me if there are eventually bugs.

SendReversedTradesSpread.mq4 in experts folder of MT4 instance 1.
TradeCopierSpread.mq4 in experts/libraries folder of MT4 instance 1

Regards,
Jeff
Attached Files
File Type: mq4 SendReversedTradesSpread.mq4 (1.7 KB, 199 views)
File Type: mq4 TradeCopierSpread.mq4 (13.7 KB, 155 views)
__________________
New trading system at non-US broker:

Trigg'3dComTrSys @ Alpari-UK

Last edited by fxtrader625; 12-06-2008 at 07:10 PM. Reason: Fixed bug in TradeCopierSpread.mq4
Reply With Quote