I modified the existing OSC indicator and am trying to run it as an indicator called MvaDiff. The change was to reverse the order of the moving averages in the calculation of the indicator. So, I made that change, changed the OSC strings to MvaDiff strings in the file, did the same for the rc file, and it doesn't work. I'm getting
[string "C:\Gehtsoft\IndicoreSDK\indicators\MvaDiff...."]:51: attempt to index global 'Mvadiff' (a nil value)
in the debugger.
I tried commenting out the line and I get the same message. I deleted the line and I get the same message. So it's not the line. I looked at the rc file and the common.lua.rc file. This is absolutely identical to the OSC file except for changing "OSC" to "MvaDiff" whereever it appears.
What is going on here?