Can you please explain how the strategy works with multiple entries with different entry name with setprofittarget and setstoploss for exits for below two cases? It will be great if you can answer all the questions, it will help me in my strategy design and helps in understanding order execution. I went through the HELP and understand most of it related to SET methods. I am more interested in Case1 as I will have more control to modify Profit Target (PT). i have not started implementing entry and exits in my strategy(to go live) as i have not completely understand the process.
I have used ES price for examples and used below long limit order for entry
EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)
Case1: current market is trading @ 1390 and executed below two entry methods at same price
Entry 1: EnterLongLimit(0, true,1,1389, “entry1”)
Entry 2: EnterLongLimit(0, true,1,1389, “entry2”)
SetProfitTarget(“entry1”, CalculationMode.Ticks, 4)
SetStopLoss(“entry1”, CalculationMode.Ticks, 4,false)
SetProfitTarget(“entry2”, CalculationMode.Ticks, 4)
SetStopLoss(“entry2”, CalculationMode.Ticks, 4,false)
If entry1 gets filled and market moves 5 ticks in favor,
will the profit target for entry1 gets filled and stop loss for entry1 gets cancelled (Entry2 limit buy order is still in the exchange, not yet filled)?
What will happen to entry2?
When the market comes below entry2 level after trading above entry1 PT(assuming entry1 exited with PT) will it get filled with entry2 price and sends PT and Stoploss orders for entry2?
If entry1 and 2 gets filled at the same time and sends exit orders for PT and Stoploss,
can I update the PT for one of the entries by resetting the profit target with fromEntrySignal SetProfitTarget(“entry1”, CalculationMode.Ticks, 24)?
Case2: current market is trading @ 1390 and executed below entry method along with SET methods
Entry 3: EnterLongLimit(0, true,100,1389, “entry3”)
SetProfitTarget(“entry3”, CalculationMode.Ticks, 4)
SetStopLoss(“entry3”, CalculationMode.Ticks, 4,false)
If the price comes to 1389 and partially fill 10 out of 100,
will the profit target and stop loss be set for 10 related to entry3?
if the market moves in favor and traders above entry3 PT will the PT order gets filled and cancels stoploss order for 10 quantity?
If there is a partial fill @ entry3 profit target (4 out of 10) and market comes back to entry3 level(1389) and partially fill 20 out of 90 (remaining 100 -10), will these 20 gets added to PT and stop loss orders?
Can this process partial fill/ exit with PT or complete fill with PT or Stop loss continues till entry3 quantity completely fill?
Thanks
gsreddy.
Comment