I have been trying to get the example to work for SetIndicatorValueFromAddonWindowExample_NT8.zip
Which is in the V8 beta thread here:
https://forum.ninjatrader.com/forum/historical-beta-archive/version-8-beta/85215-open-window-from-strategy?_gl=1*1et8416*_gcl_aw*R0NMLjE3MjU0MzczMjQ uQ2owS0NRandpdUMyQmhEU0FSSXNBTE9WZkJKd25vZFdmQnRTQ TA2MW9Fdk0zdjRtQlA4RVBxZ09EaUtoNndPSlR2MlVEQnJ1THV oal81TWFBc2lMRUFMd193Y0I.*_gcl_au*MTIyMjc1NjE2Ny4x NzI0NzcyMjE2LjEzMTI2ODE1NzMuMTcyNjM0NzI2Ni4xNzI2Mz Q3MjY2#post759830
I am able to import the AddOn and create an instance of it in a sample indicator (RogersHiLowAlerts), but when trying to assign the AddOn to the indicator I get "cannot convert type" errors. I have tried to explicitly convert it with the class name. I am obviously missing something.
I have included this using statement in my indicator:
using NinjaTrader.NinjaScript.AddOns;
and the relevant code is here:
SetIndicatorValueFromAddonWindowExampleToolsWindow myAddon = new SetIndicatorValueFromAddonWindowExampleToolsWindow ();
protected override void OnBarUpdate()
{
if (CurrentBar == 1) myAddon = (NinjaTrader.NinjaScript.AddOns.SetIndicatorValueF romAddonWindowExampleToolsWindow)this;
The specific error I get with on the "myAddon =" assignment line is:
Cannot convert type 'NinjaTrader.NinjaScript.Indicators.RogersHiLowAle rts' to NinjaTrader.NinjaScript.AddOns.SetIndicatorValueFr omAddonWindowExampleToolsWindow'
I assume that when fixed, this concept will also work with a strategy.
What am I missing? Or is there a better way?
I am using NinjaTrader 8.1.3.1 64-bit
Thanks for any help or guidance you can give!

Comment