If you test the method inside the Addon namespace, like your suggestion, are you able to call it from a strategy?
A working approach would be to add the following code to the end of the file I provided and you could reference the strategy method from within a strategy.
namespace NinjaTrader.NinjaScript.Strategies { public partial class Strategy { public NinjaTrader.NinjaScript.DrawingTools.Diamond DiamondDraw1(double y, DateTime dateTime, Brush brush) { return (NinjaTrader.NinjaScript.DrawingTools.Draw.Diamond(this, Guid.NewGuid().ToString(), false, dateTime, y, brush)); } } }
Leave a comment: