double pending orders
-
How's it going, everybody. I am trying to creat a little EA and it is turning out to be a bigger deal than I thought.
Strategy
5min chart on the first candle open. Place a sell order 15 pips above and a buy order 15 pips below. Tp and SL is 15 pips for both orders. If a trade is not triggered within the first 2 hours no trade.
For some reason, it keeps placing a buy and sell order at both locations. That means that I don't win and I don't lose. I just pay commissions.
Here is what I have been trying so far. shared/ZJUuAR1yb
Any help would be great. -
Link given does not seem to be working?