Hello, included an indicator written with the help of a source i am not going to mention here because people might see it as commercial intentions.
I wrote this indicator to do the following:
1. Ontrade close -> check how closed -> take profit
2. If take profit -> delete current open pending orders
So once my current market order hits its TP, all remaining pending orders should close.
The code is working because i have tested this on multiple brokers. One of them is FXCM demo and it works fine.
However, on my live Pepperstone account this does not work as intended. The " ontrade close -> check how closed -> take profit -> if take profit " works fine but it does NOT delete current open pending orders here for some reason.
Why is is that this indicator works on FXCM but not on Pepperstone? I contacted Pepperstone and they had no clue, suggested me to contact the author of the EA. He claims its ECN ready so if one of you knows more... last but not least i am NOT receiving any error messages whatsoever in my journal. Help is much appreciated. Thanks.
I wrote this indicator to do the following:
1. Ontrade close -> check how closed -> take profit
2. If take profit -> delete current open pending orders
So once my current market order hits its TP, all remaining pending orders should close.
The code is working because i have tested this on multiple brokers. One of them is FXCM demo and it works fine.
However, on my live Pepperstone account this does not work as intended. The " ontrade close -> check how closed -> take profit -> if take profit " works fine but it does NOT delete current open pending orders here for some reason.
Why is is that this indicator works on FXCM but not on Pepperstone? I contacted Pepperstone and they had no clue, suggested me to contact the author of the EA. He claims its ECN ready so if one of you knows more... last but not least i am NOT receiving any error messages whatsoever in my journal. Help is much appreciated. Thanks.
Attached File(s)
Close_pending_after_TP.mq4
95 KB
|
299 downloads