I am using the Managed Approach from the wizard with the following in NT8.
EnterLongLimit() (isLiveUntilCancelled is set to true)
EnterShortLimit()
SetStopLoss()
SetProfitTarget()
Concerns
1. If I have a pending limit order waiting to fill, I do not want to the strategy to generate another order long or short. I only want strategy to generate orders if positions is flat and no pending limit orders.
2. If I have an open position, I do not want the strategy to generate another order, long or short.
Questions
1. Will setting EntriesPerDirection = 1, and EntryHandling = AllEntries resolve my concern above?
2. Does NT8 automatically have a solution to the two concerns above or do i have code something like tracking the order and use as a criteria in my logic?
I do not understand this part: " Enter a position will be ignored if:The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction"
3. Per the statement above, Will the new generated order be ignored if the new order is the same direction as the order that is active?
4. If I need to track the entry order, do I need to use something similar to the code attached from here https://ninjatrader.com/support/help...rderupdate.htm
Thank you
Comment