|
In retail forex, you cannot sell the ask and buy the bid. The dealer does that and makes his money. That is why, retail forex is "commission free".
There are numerous EAs, mostly written for MT3, that did that. It did great in demo trading, due to a bug in MT3 that let you do the same. However, in reality, or in MT4, you can't do it. Occassionally, the bid/ask will move very fast and you will get filled. That is what you are seeing. I discussed the same issue with the people who wrote Metatrader and got confirmation from them about this.
Anyway, who is selling this EA? That is completely wrong.
As for your code snippet:
if (up_trend > 0.0) i = OrderSend(Symbol(), OP_BUY, Lots, old_ask, 0,0,0,"",5326,0,Red);
If it sets old_ask at any other value other than current asking price, then it is just trying to cheat the user. Any order fill and subsequent profit/loss is entirely a random trade.
If you can, try to get a refund.
Good luck.
|