Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddPlot modifiers for NinjaScriptIndicator

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

    AddPlot modifiers for NinjaScriptIndicator

    NT8 EMA uses a plot of:
    AddPlot(Brushes.Goldenrod, NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meEMA);

    I am attempting copy it to a custom EMA so I can modify the elements of the plot similar to this
    AddPlot(new Stroke(Brushes.Black, DashStyleHelper.Dash, 2), PlotStyle.Line, "Indicator Name");

    Please help.
    Last edited by JMont1; 02-02-2025, 04:45 PM.

    #2
    Hello JMont1,

    Thank you for your post.

    How exactly are you trying to modify it? What difficulties are you facing? I am not seeing anything wrong with this AddPlot() call.

    Below is the Help Guide page for AddPlot() as well.

    Comment


      #3
      The second line is correct. But I cannot get it to be
      AddPlot(new Stroke(Brushes.Black, DashStyleHelper.Dash, 2, PlotStyle.Line, NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meEMA);

      With the Ninjatrader EMA.

      Comment


        #4
        You do not need to add NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meEMA. That is only for the system indicator and is not necessary in order for the AddPlot() call to work. You can use whatever name you want for the name parameter.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        231 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        149 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        161 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        243 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        198 views
        0 likes
        Last Post CarlTrading  
        Working...
        X