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 ETFVoyageur, Today, 02:15 AM
|
0 responses
4 views
0 likes
|
Last Post
by ETFVoyageur
Today, 02:15 AM
|
||
Started by Board game geek, Today, 01:34 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:34 AM | ||
Started by morrnel, 05-12-2024, 06:07 PM
|
3 responses
39 views
0 likes
|
Last Post
by wzgy0920
Today, 12:23 AM
|
||
Started by FishTrade, Yesterday, 11:11 PM
|
0 responses
7 views
0 likes
|
Last Post
by FishTrade
Yesterday, 11:11 PM
|
||
Started by Austiner87, Yesterday, 03:42 PM
|
1 response
22 views
0 likes
|
Last Post Yesterday, 07:38 PM |
Comment