Pending order dilema
-
Hello:
I am trying to create an EA that does the following:
-
at 3:00am candle the ea will create two pending orders. One is a buy stop starting 10 pips above the top of the wick of the 3:00am candle. The other is a Sell Stop 5 pips below the bottom wick of the 3:00 am candle.
-
I want to mark the 3:00am candle somehow and I have horizontal lines on the top and the bottom of the wick.
-
I was able to put another horizontal line for the buy stop which is 10 pips above the line on the top of the wick of the 3:00am candle
-
I was not able to put the horizontal line on the bottom 5 pips away from the bottom wick of the 3:00am candle.
-
The pending orders are the most problem. I want to cancel the one order when the other activates. I have tried making one pending order and just making a 10 pip offeset and activating the OCO option, however it still keeps the other order open which results in rather large loss after it hits the stop loss.
If I can get the pending block done, I can figure out drawing the lines for the rest, I believe.
Thanks in advance.
Greg
-