"Error CS0104 'Order' is an ambiguous reference between 'NinjaTrader.Cbi.Order' and 'NinjaTrader.CQG.ProtoBuf.Order' NinjaTrader.Custom "
I have included an image to help explain what behavior I am looking for. for this example I will use the second set of signals, you can see I have a set of diamonds, red: stop, green: entry, silver: first target, gold: second target (tho I believe I will change this to be a runner,)
so here's what I need
A signal is placed: enter 2 stoplimit orders at the green diamond with no expiration (i believe that's the kind I want I'm still a bit confused about the different entries). if the price rises to hit the green diamond price before falling to the red diamond price, the order is filled and 2 long positions are entered, if it falls to the stop loss first, the orders are canceled and the strat resets and looks for a new entry.
if the positions are filled when the price gets to the silver target, one of the orders should be filled, and the stop loss should move to 1pt above breakeven, if the price moves up to the gold target, the top moves to the silver target, and so on and on moving the price up in those increments until it it gets stopped out.
I also am looking later to implement a setting to allow it to stack orders from multiple entries, but I am not worried about that in this iteration.
I am not looking for someone to do this for me, but just some tips about how to go about this, or what resources I could look at. Thanks
Comment