Search found 2 matches
- 15 Aug 2012
- Forum: MultiCharts
- Topic: Converting Indicator to Function: Return results don't match [SOLVED]
- Replies: 2
- Views: 1061
Re: Converting Indicator to Function: Return results don't m [SOLVED]
Do not use generic variable names. That was indeed a good tip. Switching out the ValueX variable names with locally declared ones fixed the problem and the data matches. Do the scratch variables have scope outside of the function? It might be a good idea to add a warning in the docs about the poten...
- 15 Aug 2012
- Forum: MultiCharts
- Topic: Converting Indicator to Function: Return results don't match [SOLVED]
- Replies: 2
- Views: 1061
Converting Indicator to Function: Return results don't match [SOLVED]
I have a stochastic Indicator that I would like to convert into a simple callable Function. When I move the code into the Function, however, the returned values don't match the values generated by the Indicator. I'm passing my values into the function by NumericRef. The working indicator code is pos...