As noted above, I would like to add a feature to my EA that closes all pending orders if a trade was previously closed at break-even ($0.00) or higher.
I've tried messing around with a few features, but they haven't been successful thus far. (I've tried using various Orderselect(), Ordertype(), Orderdelete(), But unfortunately I have not been able to successfully do what I need the code to do)
Background:
This EA opens 3 trades when a signal is set.
One at .01, one at .03, one at .15.
Only one trade is open at a time, and they open in this order:
(.01/.03/.15).
When .01 hits its SL, .03 opens. When .03 hits its SL, .15 opens.
The coding needs to close .15 if .03 closes with a profit or $0.00, and both .03 & .15 need to close if .01 closes with a profit or $0.00.
I thank anyone in advance willing to take this on, and I will continue to try myself.
I've tried messing around with a few features, but they haven't been successful thus far. (I've tried using various Orderselect(), Ordertype(), Orderdelete(), But unfortunately I have not been able to successfully do what I need the code to do)
Background:
This EA opens 3 trades when a signal is set.
One at .01, one at .03, one at .15.
Only one trade is open at a time, and they open in this order:
(.01/.03/.15).
When .01 hits its SL, .03 opens. When .03 hits its SL, .15 opens.
The coding needs to close .15 if .03 closes with a profit or $0.00, and both .03 & .15 need to close if .01 closes with a profit or $0.00.
I thank anyone in advance willing to take this on, and I will continue to try myself.
Attached File(s)
Peak_Trader_V1.41_BUY.mq4
11 KB
|
498 downloads