If i supply ther variable i get 2 error messages:
SampleDisplayBarsAgo.cs The overloaded method that best matches 'NinjaTrader.NinjaScript.DrawingTools.Draw.TextFix ed (NinjaTrader.NinjaScript.NinjaScriptBase, string, string, NinjaTrader.NinjaScript.DrawingTools.TextPosition) ' has invalid arguments CS1502 769 6
NinjaScript File Error Code Line Column
SampleDisplayBarsAgo.cs Argument 3: Can not convert from 'double' to 'string' CS1503 769 41
You a re talking about 2 different things.
Is it possible on render to get my variable in the chart with
What is Text Rendering ? i dont see the difference with Draw.TextFixed(this, "sumvolfibo", sumvolfibo, TextPosition.TopRight); it will produce the same error message.
For the vertical line i came up with this code:
foundIndex = barIndex;
int yByValue = chartScale.GetYByValue(foundIndex);
float chartScaleYValue = chartScale.GetYByValue(yByValue);
float chartScaleXValue = ChartBars.GetBarIdxByX(chartControl, cursorPointX);
SharpDX.Vector2 startPoint = new SharpDX.Vector2(chartScaleXValue);
SharpDX.Vector2 endPoint = new SharpDX.Vector2(chartScaleYValue);
SharpDX.Direct2D1.SolidColorBrush customDXBrush = new SharpDX.Direct2D1.SolidColorBrush(RenderTarget, SharpDX.Color.DodgerBlue);
RenderTarget.DrawLine(startPoint, endPoint, customDXBrush, 2);
customDXBrush.Dispose();
It compile and there's in log that message:
2019-07-16 14:20:45 | NinjaScript | Multiple Bartypes with the same BarsPeriodType were found. Ignoring NinjaTrader.NinjaScript.BarsTypes.MirrorBarsType |
My coordinate are wrong i am all mixt up. Its getting close i get a line just not at the right place.
ty
Comment