I am developing a strategy to initially take off half of its position after a defined price target and then use a trailing stop to continue with the second half of position using the managed approach. I am using two separate entry orders (one order for each half of position) with two different fromEntrySignal names as follows:
public Order Order1;
public Order Order2;
Order1 = strategy.EnterShort("Order1");
Order2 = strategy.EnterShort("Order2");
Order1 is placed as expected and Order2 in not placed (returning null.)
The engine reports the following error:
FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
I have a maximum of two working orders for the same asset per strategy at a time. Each with different FromEntrySignalNames.
I have set EntriesPerDirection = 5 and EntryHandling = EntryHandling.AllEntries;
Are there other parameters or factors that I must also be setting?
Thank you for your help.
Comment