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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X