Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change EMA color

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

    Change EMA color

    Hi,
    how would you change EMA color in the strategy?
    E.g. -

    protectedoverridevoid Initialize()
    {


    Add(EMA(
    9));
    Add(EMA(
    25));
    CalculateOnBarClose = true;

    }

    Once rendered, they both are defaul color - Orange. I'd like to be able to change colors in the strategy.

    Thank you.

    #2
    Originally posted by practic View Post
    Hi,
    how would you change EMA color in the strategy?
    E.g. -

    protectedoverridevoid Initialize()
    {


    Add(EMA(9));
    Add(EMA(25));
    CalculateOnBarClose = true;

    }

    Once rendered, they both are defaul color - Orange. I'd like to be able to change colors in the strategy.

    Thank you.
    Hello Practic,

    Thank you for your post.

    Try using this script as an example of coloring indicators:
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      Hi RJStain,
      thank you for your reply. Unfotunately, the example is for creating an indicator, not a strategy. IS there any way to change the color whithin the strategy?
      Thank you.

      Comment


        #4
        Please see this: http://www.ninjatrader-support2.com/...ead.php?t=3228
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hey!! That's what I'm talking about! Great resource.
          Thanks a lot!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          213 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          544 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Started by XXtrader, Yesterday, 11:30 PM
          2 responses
          12 views
          0 likes
          Last Post XXtrader  
          Started by Waxavi, Today, 02:10 AM
          0 responses
          7 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Working...
          X