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

Strategy plots. Syntax for referencing lines

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

    Strategy plots. Syntax for referencing lines

    I have tried for the last couple of days to figure out how to reference a plot line that is part of an indicator with one or more plot lines.

    example. the stochastic. I can use:

    Stochastics(7,14,6).Plots[0].Pen.Color = Color.Red;

    However this only sets the D plot line.

    I would like to know how to reference the K line, both for colors and for other display properties.

    Cheers.

    #2
    Please see this tip: http://www.ninjatrader-support.com/v...ead.php?t=3228

    To access different ones you would change the Plots[0] to maybe Plots[1] or Plots[2] etc.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      Thanks so much mate. Appreciate the assistance.

      I knew it would be simple.

      Stephen.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by giulyko00, Today, 11:49 AM
      2 responses
      11 views
      0 likes
      Last Post giulyko00  
      Started by Aviram Y, Today, 06:03 AM
      2 responses
      10 views
      0 likes
      Last Post Aviram Y  
      Started by FishTrade, Today, 03:42 PM
      0 responses
      1 view
      0 likes
      Last Post FishTrade  
      Started by Richozzy38, Today, 01:06 PM
      3 responses
      14 views
      0 likes
      Last Post Richozzy38  
      Started by ttrader23, Today, 09:04 AM
      2 responses
      12 views
      0 likes
      Last Post ttrader23  
      Working...
      X