This is probably something simple, but I need to ask for a little help because I'm confused with the help files and the description of the EXIT functions.
I'm trying to use the following orders to setup a STOP and TARGET exit for a project.
stopOrder = ExitLongStop(0, true, DefaultQuantity, (StopPriceBase - ATR(ATRLength)[1]), "JSStop", "Long Hammer Stop");
targetOrder = ExitLongStopLimit(0, true, DefaultQuantity, (ExecutionPriceBase + ATR(ATRLength)[1]), (ExecutionPriceBase + ATR(ATRLength)[1]), "JSTarget");
When I try to compile, I get a message stating "No Overload for Method ??; takes 5 arguments" or "6 arguments".
Yet, in the online help, the ExitLongStop function shows a total of 6 parameters/arguments...
ExitLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)
So, until I get a little help on how to setup the parameters for these functions, I guess I'm stuck. Which is it.. 5 or 6 arguments?
Can someone show me a proper syntax for these two functions? I'm trying to develop some complex order handling functions and I'm getting stuck with the documentation and variances in the descriptions. It appears the sample descriptions are VERY SIMPLE and as soon as I try to pass the parameters shown in the help files, I get more errors than I expect.
Thanks in advance.
Comment