Announcement
Collapse
No announcement yet.
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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
166 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
320 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
Comment