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

Colors of indicators

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

    Colors of indicators

    I know when you create a custom indicator you can set all the colors you want.

    When you create a strategy though, and add an indicator using Add(), is there a way to override the color in the strategy, WITHOUT creating another custom indicator that does the same thing but is only a different color?

    The goal is to have multiples of the same indicator (with dif parameters) on the chart using different colors.

    Not having luck finding this in the docs.

    Thanks guys!

    #2
    Hello Locke,

    Thank you for your note.

    The colors you can choose are for plots and lines. Strategies made by the wizard will not have plots or lines and the Strategy Wizard does not have the capability to create inputs for these.

    You can call and indicator from the Strategy Wizard and set this indicator to plot on the chart automatically, but it still is not possible to create another input to use for the color of the indicator.

    However, you can add these by manually editing the code.

    First you will need a public color input that is properly serialized.
    http://www.ninjatrader.com/support/f...ead.php?t=4977

    Then for the added indicator, set the plot pen color to the serialized variable.
    http://www.ninjatrader.com/support/f...4&postcount=24

    Attached is an example.

    Follow these steps to import the NinjaScript:
    1. Download the script to your desktop, keep it in the compressed .zip file.
    2. From the Control Center window select the menu File > Utilities > Import NinjaScript
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical *Note that on any files that say "File already exists on your PC" that start with an "@" symbol are the ones that came preloaded inside of NinjaTrader so you would say "No" so that you do not override those files.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by MGHORBEL, Today, 02:28 AM
    0 responses
    4 views
    0 likes
    Last Post MGHORBEL  
    Started by dcriador, Today, 01:43 AM
    1 response
    5 views
    0 likes
    Last Post dcriador  
    Started by louiseruch, Today, 01:11 AM
    0 responses
    1 view
    0 likes
    Last Post louiseruch  
    Started by kujista, Today, 12:39 AM
    0 responses
    6 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by tonynt, 05-21-2019, 06:27 AM
    11 responses
    536 views
    1 like
    Last Post NinjaTrader_Jason  
    Working...
    X