My goal is that when Volume[0] > Volume[1] an Entry Order will be placed in both Directions a BUY and SELL before the Current Bar closes. It's why I'm using LiveUntilCancelled Orders.
The Problem is that when Volume[0] > Volume[1] only One Order is placed in either direction. and I don't know WHY.
Can someone please help. The Strategy keeps placing ONE order. and I want it to place a EntryStopOrder in both directions. Then I want the Other Order to Be Cancelled if the current Bar Closes in either direction.
I placed a small code that Cancels this
if( FirstTickOfBar && shortEntryOrder1 != null && (CurrentBar > trigBar && CurrentBar < trigBar + 2) && Close[1] > Low[1]) { CancelOrder(shortEntryOrder1); }
Thank you so much!
P.S: PLEASE Don't Look at this in Strategy Analyzer. as this is ONly Set for FORWARD TESTING. thank you!
P.P.S: I use Default Values on EUR/USD 20 Range (TenthOfaPip) Chart.
Comment