I am looking for working example of calling a buttons click event from a piece of code under "OnBarUpdate"
my buttons are on the chart, I have tried multiple methods of creating a click event but have been unsuccessful getting it to work in ninjascript mostly because I am still learning.
Some of these methods are as follows:
button.PerformClick()
button_Click(null, new EventArgs());
InvokeOnClick(button, e);
I can provide my .cs file if needed, pointing me in the right direction would be most appreciated!

Thanks in advance,
BeachTrader

Comment