• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 pstrusi, Today, 02:21 AM
    0 responses
    4 views
    0 likes
    Last Post pstrusi
    by pstrusi
     
    Started by indy73, Yesterday, 10:52 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by priceisking, 05-13-2019, 08:30 AM
    6 responses
    37 views
    0 likes
    Last Post Harry
    by Harry
     
    Started by WgfhqDsdfg, Today, 12:56 AM
    0 responses
    6 views
    0 likes
    Last Post WgfhqDsdfg  
    Started by pjsmith, Today, 12:43 AM
    0 responses
    5 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Working...
    X