I am trying to figure out how I can send a variable from one ninja script indicator to another indicator. The reason for doing so is because one indicator needs to calculate on each tick and the other needs to calculate on the bar close. I am using the buysellvolume indicator.
I have been trying to use Static Variables and events but the moment I try to reference the variable by mentioning the ninjascript in a different script, I get an error saying "Indicator. bla bla is a method, which is not valid in the given context."
Any help will be greatly appreciated.
Regards

Comment