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])[INDENT][B]BackBrushAll [/B][B]= Brushes.LightBlue;[/B][/INDENT]
     else[INDENT][B]BackBrushAll[/B] [B]= Brushes.Green;[/B][/INDENT]

    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.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      48 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X