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!
See more
See less

Partner 728x90

Collapse

Indicator Plot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • s.kinra
    replied
    I think I made a copy paste error, please correct it as :-
    Code:
    CumulativeDeltaPlot[0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
    Note:
    You're using PlotStyle.Bar, change this to Line & be sure to have Auto Scale selected.
    Last edited by s.kinra; 11-22-2020, 01:49 AM. Reason: typo error

    Leave a comment:


  • sdauteuil
    replied
    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:


  • s.kinra
    replied
    Hello sdauteuil,
    You can use as below:-
    Option 1 : CumulativeDeltaPLot[0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
    Option 2 : Values[0][0] = SUM(cumulativeDelta.DeltaClose, 3)[0];
    Hope it helps!

    Leave a comment:


  • sdauteuil
    started a topic Indicator Plot

    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 Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by RubenCazorla, 08-30-2022, 06:36 AM
3 responses
77 views
0 likes
Last Post PaulMohn  
Started by f.saeidi, Yesterday, 12:14 PM
9 responses
23 views
0 likes
Last Post f.saeidi  
Started by Tim-c, Today, 03:54 AM
0 responses
3 views
0 likes
Last Post Tim-c
by Tim-c
 
Started by FrancisMorro, Today, 03:24 AM
0 responses
5 views
0 likes
Last Post FrancisMorro  
Started by Segwin, 05-07-2018, 02:15 PM
10 responses
1,772 views
0 likes
Last Post Leafcutter  
Working...
X