CumulativeDeltaPlot[0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
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
Indicator Plot
Collapse
X
-
I think I made a copy paste error, please correct it as :-
Code:You're using PlotStyle.Bar, change this to Line & be sure to have Auto Scale selected.
-
I was trying
Option 1 : CumulativeDeltaPLot[0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
but I get 'CumulativeDeltaPlot' does not exist in the current context when compiling.
I have it defined under properties
#region Properties
[Browsable(false)]
[XmlIgnore]
public Series<double> CumulativeDeltaPlot
{
get { return Values[0]; }
}
#endregion
***
When I tried Option 2 : Values[0][0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
The code will compile but the panel on the chart is empty. I turned on tick replay but that didn't help.
Thank you
Leave a comment:
-
Hello sdauteuil,
You can use as below:-Option 1 : CumulativeDeltaPLot[0] = SUM(cumulativeDelta.DeltaClose, 3)[0];Hope it helps!
Option 2 : Values[0][0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
Leave a comment:
-
Indicator Plot
I am trying to create a simple indicator that sums 3 periods of the cumulative delta.
I cannot figure out how to get the addplot() to work.
If I try and assign the logic to the variable I created I get "cannot convert double" errors when compiling.
I also tried to use value[0] which will compile but the chart panel is blank.
I have attached the indicator.
I have gone through the help guide and cannot figure out what I am doing wrong.
I think the help guide will make more sense after I successfully get a plot to work.
appreciate the help in advance.
Also are there any videos from NT for creating indicators?
Attached FilesTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RubenCazorla, 08-30-2022, 06:36 AM
|
3 responses
77 views
0 likes
|
Last Post
by PaulMohn
Today, 04:44 AM
|
||
Started by f.saeidi, Yesterday, 12:14 PM
|
9 responses
23 views
0 likes
|
Last Post
by f.saeidi
Today, 04:39 AM
|
||
Started by Tim-c, Today, 03:54 AM
|
0 responses
3 views
0 likes
|
Last Post
by Tim-c
Today, 03:54 AM
|
||
Started by FrancisMorro, Today, 03:24 AM
|
0 responses
5 views
0 likes
|
Last Post
by FrancisMorro
Today, 03:24 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,772 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
Leave a comment: