|
Can Metatrader read whether Target or SL for Order Hit?
Hey guys,
New to the forum, but very interested in Metatrader4 code.
I have a request that seems like it should be simple, but to date I’ve had no luck with it. I’m looking for a snippet of code that will do one of the following:
1. Read whether Pending trade has been placed
2. Read whether a Take Profit for a trade has taken place.
3. Read whether a Stop Loss for a trade has taken place.
You see, I’m trying to build an expert that places multiple pending orders, and then based on what the market does (whether the Stops or Targets are hit) reacts with canceling certain trades. Any Help Would be very much appreciated as I’ve currently exhausted every angle I can figure. I am fairly new to the metatrader4 language, but I’ve asked several fluent people so far to no avail. Could it be that metatrader4 can’t recognize current trades? It seems unlikely.
Thanks in advance for your response!!
|