Could anybody pls help me with pending orders based on two different conditions?
I would like to program bellow logic
if my 1st condition (simple formation in a chart) is filled , place 1st pending order on high of current bar High[0].
After my 1st pending order is filled (and i am in position now) i want the strategy to place another pending order on current High[0]
Basically i would like to program, if my condition1 is filled, place 1st pending order and if this 1st pending order is filled by following bar, place another pending order on current bar (which opened the 1st position).
I tried to program bellow logic but it does not work :s
if (entryOrderOne != null && High[0] > High[1]) // if 1st pending order is filled place 2nd pending order { entryOrderTwo = EnterLongStop(0, false, 1, High[0] + 1 * TickSize, "trend"); } If (conditionOne) { entryOrderOne // 1st pending order placed after my condition was confirmed }
Comment