1.) The best overloaded method match for 'NinjaTrader.Strategy.StrategyBase.DrawDot(string, bool,int,double,System.Drawing.Color)' has some invalid arguments
2.) Argument '4': cannot convert from 'NinjaTrader.Cbi.IOrder' to double.
So this is referring to "LongEntry" which is an IOrder object. Can I not use IOrder objects if I want to DrawDots? Is there a way to convert this Y price from that to a double so that I do not need to write the equation with every order?
I am using the debugging sample from: http://www.ninjatrader.com/support/f...ead.php?t=3418
if (direction == TrendDirection.Up) { if (LongEntry == null && Time[0] > endRange && Time[0] < removeOrderTime && restrictTrade == false) { LongEntry = EnterLongStop(0, true, positionSize, rangeHigh + pipBuffer, "BreakoutLong"); DrawDot("Stop", true, 0, LongEntry, Color.Orange); } }
Comment