I've been programming using ATM Strategies and OIFs. Now I wish to backtest more, so I'm attempting to re-program my ideas using EnterLimitStop(), etc. for entries.
My strategies deal with entering several order at the beginning of the day, to be very short-lived and everything exited before the day ends. There are many, many orders which will never be hit, because the market never gets up to (or down to) that particular entry. This works very well using ATM Strategies via code and manually entering them in Charts or SuperDoms.
I am having troubles with orders being ignored (i.e. Log entries saying "An Enter() method to submit an entry order ... has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.")
Sadly, I am only attempting to do what I successfully do manually using ATM Strategies: Many Stop Entries above and below the morning price, to be executed when the Stop is triggered. Enter() methods seem to be seeing that there are orders on the other side, and cancelling them.
Based on using AAPLHere's a code snippet:
... Initialize()
CalculateOnBarClose = false;
EntryHandling = EntryHandling.UniqueEntries;
EntriesPerDirection = 15;
... OnBarUpdate()
EnterShortLimit(0, true, 2, 98.00, "Two-Leg1...01");
EnterLongStopLimit(0, true, 2, 102.20, 102.42, "Two-Leg1...02");
These have two separate Signal Names, but I only get the initial Short order showing a State. The Long order in this example, receives the Log error I'd mentioned before.
What am I not getting?

Thanks,
Brian1


Comment