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

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mike09, 01-17-2020, 07:37 PM
      2 responses
      31 views
      0 likes
      Last Post koganam
      by koganam
       
      Started by ChazJ, Today, 11:04 AM
      0 responses
      2 views
      0 likes
      Last Post ChazJ
      by ChazJ
       
      Started by NT-Roland, 04-28-2018, 02:19 AM
      5 responses
      813 views
      0 likes
      Last Post Balage0922  
      Started by tonynt, 04-16-2019, 06:27 AM
      13 responses
      259 views
      0 likes
      Last Post fx.practic  
      Started by DTSSTS, Today, 09:53 AM
      0 responses
      5 views
      0 likes
      Last Post DTSSTS
      by DTSSTS
       
      Working...
      X