Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 gravdigaz6, Today, 11:40 PM
      0 responses
      2 views
      0 likes
      Last Post gravdigaz6  
      Started by MarianApalaghiei, Today, 10:49 PM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by XXtrader, Today, 11:30 PM
      0 responses
      3 views
      0 likes
      Last Post XXtrader  
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      9 views
      0 likes
      Last Post funk10101  
      Working...
      X