• 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

BackCollorAll Method

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

    BackCollorAll Method

    Hello,

    I am trying to code a NT7 strategy to NT8. I can see that the BackColorAll method is not working in this version:

    if (Close[0] >EMA(10)[0])
    BackColorAll = Color.LightBlue;
    else
    BackColorAll = Color. Green;

    Please, could you tell me how can I code the above lines in NT8? Can I have an example?

    Thank you!


    #2
    Hello Plaket,
    Thanks for your post.

    You would need to use BackBrushAll instead and use Brushes instead of Color. The equivalent of your snippet would be:

    Code:
    if (Close[0] >EMA(10)[0])
    BackBrushAll = Brushes.LightBlue;
    else
    BackBrushAll = Brushes.Green;

    You can read more about BackBrushAll at the following public link: https://ninjatrader.com/support/help...ckbrushall.htm

    There are a few key items to look for when converting your scripts from NinjaTrader 7 format to NinjaTrader 8, and we keep a Code Breaking Changes table updated in the NinjaTrader 8 Help Guide to assist in identifying changes or new implementations of familiar methods and properties from NinjaTrader 7: https://ninjatrader.com/support/help...ng_changes.htm

    Please let me know if I can be of further assistance.
    JoshNinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by denalek2419, Today, 01:46 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by REI140205, Today, 12:58 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by Aditrade, Today, 12:33 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by music_p13, Today, 12:22 PM
      2 responses
      10 views
      0 likes
      Last Post music_p13  
      Started by The Big D, Today, 11:41 AM
      2 responses
      7 views
      0 likes
      Last Post The Big D  
      Working...
      X