• 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 NinjaCustomer, Today, 10:06 AM
      0 responses
      2 views
      0 likes
      Last Post NinjaCustomer  
      Started by crabman777, Today, 09:52 AM
      2 responses
      7 views
      0 likes
      Last Post crabman777  
      Started by Arkadiy_B, Today, 06:43 AM
      0 responses
      2 views
      0 likes
      Last Post Arkadiy_B  
      Started by leontancfa, Today, 06:09 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by soulfx, 12-01-2017, 08:44 AM
      3 responses
      1,021 views
      0 likes
      Last Post NinjaTrader_EricB  
      Working...
      X