Latest update in post 1:
- fixed a bloop where I had forgotten to add tp to the first sell trade
- added Matt's OR stuff to check that a trade has been recognised by the platform
- a couple of other thingies that are highly significant safety features that were not available when I coded Ibuks' ea.
One thing you guys should be aware of is this: the utter, total, unmitigated crap that is represented by MT4 makes coding nearly impossible - presumably deliberately.
One of the most impossible things to achieve is sending out two trades quickly. It cannot be done. Therefore, there will be occasions where:
- the open price of the second trade differs from that of the first by several pips
- the second trade will not always send at all.
The only way to overcome this is to send pending trades rather than market orders. Before we decide to go down this route:
- remove JR from your platform
- start a new account
- re-download the bot and start again
Let's see what happens for a few days before making radical changes.