NexusFi: Find Your Edge


Home Menu

 





Multiple Entries with SET methods to exit (OCO)


Discussion in NinjaTrader

Updated
    1. trending_up 2,296 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Multiple Entries with SET methods to exit (OCO)

  #1 (permalink)
 GSREDDY 
sanfrancisco
 
Experience: Advanced
Platform: Ninjatrader,TS,IRT
Broker: IQfeed
Trading: ES
Posts: 45 since Feb 2012
Thanks Given: 26
Thanks Received: 21

Hi,

Can some one 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.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Build trailing stop for micro index(s)
Psychology and Money Management
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 GSREDDY 
sanfrancisco
 
Experience: Advanced
Platform: Ninjatrader,TS,IRT
Broker: IQfeed
Trading: ES
Posts: 45 since Feb 2012
Thanks Given: 26
Thanks Received: 21

Hi,

i got the reply from Ninja form
Multiple Entries with SET methods to exit ([AUTOLINK]OCO[/AUTOLINK]) - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

i am not able to think of any other possible cases for OCO orders. my experience with Ninja is very limited. not used before.
can you please help me if i am missing any thing related to OCOs?

thanks,
gsreddy.

Started this thread Reply With Quote




Last Updated on August 14, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts