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
Complex processing of DataSeries
Collapse
X
-
Hi sktrader1,
Please refer to this sample...
When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. NinjaTrader 8 With NinjaTrader 8 we introduced strategy plots which provide the abilityTimNinjaTrader Customer Service
Comment
-
Just go to tools>edit > indicator and look at just about any indictor code. For example SMA, which is simple. In almost every case you will see a
.Set(myValue[0])
..method...where myValue is your data series.
Comment
-
Thanks NinjaTrader that could be useful. Sorry just starting with the software and need to know how things are linked together. If you have more samples for generating the plots during the backtesting too it would be great. mountainclimber I am trying to do something slightly more difficult but eventually I might go backwards and use the primary loop that is in effect the OnBarUpdate if I can - that will utilise this method.
Comment
-
-
Currently on the previous example I am plotting my output using the following:
for(Bar=0;Bar<=Bn;Bar++)
{
T=Bar.ToString()+"TT";
DrawDot(T, false, Bar, Result[Bar], Color.Green);
}
Where Bn is the Min. Bars required (see below)
T plays the role of the unique reference. Works fine. Is that a good accepted solution? Of course this calculates for the last Bn and therefore as there are new bars the old ones are removed from the chart.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment