Load attached strategy on a IWM chart that starts per the DataSeries picture.
You will see that when the StopEntryLimit orders are written as described in the literature, we get a failure to launch any orders, with an error about the Stop being incorrect relative to the limit. (The error message is incorrect).
On a lark, as an investigating method, I reversed the entries, and the orders then properly executed.
IOW: the published: EnterLongStopLimit(double limitPrice, double stopPrice) results in an error, whereas
EnterLongStopLimit(double stopPrice, double limitPrice) executes correctly.
The code posted is using the putatively incorrect syntax, and so executes orders. The remmed out instructions in the file use the correct syntax; which fails. To validate a test, you will have to switch the statements.
Comment