Click To Buy
TradersStudio 2.5 Now!
Is it possible to have multiple outputs from a function? In TradeStation, this is done by having function arguments used for outputs. If it is possible, what is the syntax, both for the function declaration and the calling routine?
Thanks.
Yes, you need to declare the variables by ref.
In general functions look for this one as your example
Function ParabolicSAR(AfStep, AfLimit, ByRef oParCl, ByRef oParOp, ByRef oPosition, ByRef oTransition) As BarArray
Please look at the sample code for the function I talked about able. It's in TradersStudio. If you look at the calling system and the function code it will be clear, it returns multiple values because you can set them in the function and use them in the calling program.