stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

EA for adding limit-orders
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5474
Page 3 of 3
Author:  Gertje [ Tue Feb 12, 2019 9:41 am ]
Post subject:  EA for adding limit-orders

renexxxx » Mon Feb 11, 2019 7:29 pm wrote: You must copy the OrderReliable.mqh file (from Post 1) into the \Include folder. When TradeReplicator.mq4 is compiled, the pre-compiler tries to insert the contents of OrderReliable.mqh into the main code, before the whole lot is compiled and a .ex4 file is generated.

Good luck!
I had that, re-downloaded to no avail.
Downloading the .ex4 solved the problem.

Thanks!
Author:  r1ch4rd [ Tue Feb 26, 2019 10:21 pm ]
Post subject:  EA for adding limit-orders

Would it be possible for one of you gents to help a dunderhead out with a slight variation to this marvelous piece of kit? I have gone over the code several times with my very limited coding knowledge, removed lines, made adjustments and have come up against a brick wall every time.

I would like to keep all existing pending orders in play (as opposed to canceling pendings as the ea does now) and just replace the trade that closed in profit "in a loop" if the trade is profitable on several occasions, as part of a grid senario.


Thank you in advance.
Richard
Author:  renexxxx [ Wed Feb 27, 2019 7:53 am ]
Post subject:  EA for adding limit-orders

r1ch4rd » Wed Feb 27, 2019 8:21 am wrote: I would like to keep all existing pending orders in play (as opposed to canceling pendings as the ea does now) and just replace the trade that closed in profit "in a loop" if the trade is profitable on several occasions, as part of a grid senario.
Just stop the EA from deleting the existing pending trades by changing (in OnTimer()):

Code: Select all

               // Remove other limit orders
               deletePendingTrades(orderSymbol, limitType);
to

Code: Select all

               // Remove other limit orders
               // deletePendingTrades(orderSymbol, limitType);
(or remove the code entirely).

Not sure if this is what you want though ...

Rene.
Author:  r1ch4rd [ Wed Feb 27, 2019 10:29 am ]
Post subject:  EA for adding limit-orders

Thank you Rene much appreciated.
I'll give it a go when I get home from work later.

Richard

Did as instructed and it works a treat, thank you once again. :good:
Author:  Gertje [ Fri Jun 07, 2019 6:36 pm ]
Post subject:  EA for adding limit-orders

I really love this little gem.
It does what it is supposed to do, again and again, and.....
My main direction is up on H4, and have a stop order every 25 pips, TP=25 as well.
In this 125 pip distance, this EA made it possible to bank 300 pips.
5115A745-7D12-4ACE-8E63-213FC0F00CAC.png
:!!: :!!: :!!:
Author:  Bruster400 [ Mon Jun 10, 2019 7:55 pm ]
Post subject:  EA for adding limit-orders

Gertje » Fri Jun 07, 2019 7:36 pm wrote: My main direction is up on H4, and have a stop order every 25 pips, TP=25 as well.
In this 125 pip distance, this EA made it possible to bank 300 pips.
Just out of interest, how are you placing the initial stop orders? Manually?

Thanks.
Author:  Gertje [ Mon Jun 10, 2019 8:04 pm ]
Post subject:  EA for adding limit-orders

Bruster400 » Mon Jun 10, 2019 7:55 pm wrote:
Gertje » Fri Jun 07, 2019 7:36 pm wrote: My main direction is up on H4, and have a stop order every 25 pips, TP=25 as well.
In this 125 pip distance, this EA made it possible to bank 300 pips.
Just out of interest, how are you placing the initial stop orders? Manually?

Thanks.
Yes.
PoS has no grit abilities.
All times are UTC Page 3 of 3