Is there a way to do this on Ninja?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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 bertochi, 04-16-2020, 12:15 PM
|
30 responses
1,058 views
2 likes
|
Last Post Today, 09:36 PM | ||
Started by Lumbeezl, 01-11-2022, 06:50 PM
|
28 responses
755 views
1 like
|
Last Post Today, 09:23 PM | ||
Started by jourdale, 03-16-2024, 06:33 AM
|
3 responses
42 views
0 likes
|
Last Post Today, 06:44 PM | ||
Started by henryd333, 03-22-2021, 08:18 AM
|
18 responses
930 views
0 likes
|
Last Post Today, 06:07 PM | ||
Started by PaulMohn, Today, 05:51 PM
|
0 responses
4 views
0 likes
|
Last Post
by PaulMohn
Today, 05:51 PM
|
Comment