I'm writing a custom indicator and have some questions.
Do I declare all variables in the Initialize() section of code?
If I declare them in the onBarUpdate section and set them to 0 are they then reset to 0 every bar?
I see the variables I set up in the Wizard as user inputs in the Initialze() section. Why do these not have types? If I declare a variable in that manner in that section, I get a compiler error message.
Thanks,
Folls
Comment