Is there a way to do this on Ninja?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
projecting indicator value to the future
Collapse
X
-
projecting indicator value to the future
I have an indicator which would project value of SMA to the future. I can't figure out how to plot the projected value to the future bars that have not been printed yet.
Is there a way to do this on Ninja?Tags: None
-
-
Hello,
You won't be able to change the size of the dot but I've seen some people use a font such as Wingdings to draw different chart symbols and then change the size by adjusting the font size
For other custom drawn objects:
There are virtually no limits for custom drawing on a chart panel. Since NinjaScript is based on Microsoft C#, the entire System.Drawing namespace is available for use. Custom drawing is an advanced programming topic and should only be considered by programmers familiar with Microsoft C# and the .NET Framework.
Please see the following indicators for reference samples of custom drawing by overriding the Plot() method of the Indicator base class:
• CustomPlotSample
• TickCounter
• VolumeZonesLanceNinjaTrader Customer Service
Comment
-
Having the same issue/question. I need to plot 3 ma's, each one displaced to the right by a different amount. In theory if they were all displaced the same amount, I could get by with using the displacement param.Originally posted by NinjaTrader_Lance View PostHello,
Depending how the values you were plotting you can change the displacement to have the values shifted to the right
If you're looking to draw to the right of the chart you can draw to a negative index location, but unfortunately cannot plot to the right
I understand that I can't use a plot for that - right? I can't do Values[0][-5]?
Onn
Comment
-
My issue was I needed to shift the indicator values 10 bars left and then draw the last 10 bars using a different set of calculations:
I came up with a solution - I am now shifting the plot by 10 bars as follows:
Plot1.Set(10,Value[0]);
I had to make sure I don't plot on the last 10 bars of the chart:
if(CurrentBar<Bars.Count - 11)
{
..... draw the shifted values
}
else
{
draw the last 10 bars only
}
This solution works perfectly. I set the Displacement = 0
Afshin
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
597 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
555 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment