| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA for adding limit-orders https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5474 |
Page 2 of 3 |
| Author: | Gertje [ Fri Jun 01, 2018 8:16 am ] |
| Post subject: | EA for adding limit-orders |
Not sure if you understood my sarcasm, I was relating to the warning built in by Steve. I just need to remove the comments from PoS, so no harm done. Last night TradeDuplicator worked like a charm, exactly what I was looking for! I'll try the latest version, thanks again! ![]() |
|
| Author: | Gertje [ Fri Jun 01, 2018 10:20 am ] |
| Post subject: | EA for adding limit-orders |
Now I see what you mean. I was thinking it didn't copy the ordercomment at all, hence the message from PoS. But instead, it copies the comment perfectly, including the TP part that Empty4 adds to the comment. The last version still copies the [tp] comment, is it possible to remove the comment at all? I'm running PoS without comments, to be able to enter manual orders. ![]() EDIT: I tried to remove all mention of 'ordercomment' from the EA, but got an 'sendorderreliable' error in return. So much for my programming skills... |
|
| Author: | renexxxx [ Fri Jun 01, 2018 10:55 am ] |
| Post subject: | EA for adding limit-orders |
Hi Gertjan, Didn't realize that your original orderComment was blank. The built-in StringSubstr() function doesn't do what you expect if the length parameter is 0. Code is in Post 1 of this thread. |
|
| Author: | Gertje [ Fri Jun 01, 2018 2:54 pm ] |
| Post subject: | EA for adding limit-orders |
Works like a charm Rene, thanks!! ![]() |
|
| Author: | WillemJvR [ Mon Jun 04, 2018 5:20 am ] |
| Post subject: | EA for adding limit-orders |
:hi: Hi Rene .. is it possible that i can try it aswell i attached to my demo account but is not working REgards Willie |
|
| Author: | ThaiGuy [ Mon Jun 04, 2018 5:33 am ] |
| Post subject: | EA for adding limit-orders |
wow this looks awesome, great thinking gertje and superfast code support from rene!! i wont give it a shot myself yet, hence i look forward to more positive comments from gertje, and maybe there can be a PoS_v1E-LimitOrders ? I have no idea how to make 2 EA's work/interact with eachother haha |
|
| Author: | renexxxx [ Mon Jun 04, 2018 7:27 am ] |
| Post subject: | EA for adding limit-orders |
To avoid confusion, I have moved the "final" version of TradeReplicator to Post 1 of this thread and removed any other versions in earlier posts. |
|
| Author: | Gertje [ Mon Jun 04, 2018 8:25 am ] |
| Post subject: | EA for adding limit-orders |
Hi Willie, What do you want the EA to do? |
|
| Author: | Gertje [ Mon Feb 11, 2019 2:12 pm ] |
| Post subject: | EA for adding limit-orders |
Renee, Sorry to bother you [again], but I can't seem to load the EA to a newer build of Empty4. I tried compiling and got the following message; 'ordersendreliable' function not defined. The EA has worked flawlessly since you wrote it, untill I tried to add it to a new installation. Any idea's? |
|
| Author: | renexxxx [ Mon Feb 11, 2019 7:29 pm ] |
| Post subject: | EA for adding limit-orders |
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! |
|
| All times are UTC | Page 2 of 3 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|