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

Assigning Values for DashStyles

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

    Assigning Values for DashStyles

    Dear Support,

    The following assigned value for Width in NT8 works fine:

    Plots[0].Width = 1;

    However, The same for the following DashStyle assignment does not compile:

    Plots[0].DashStyle = DashStyleHelper.Dot;

    What is the working syntax?

    Thanks.

    #2
    Hello,

    For future reference, I am including a link to the NinjaTrader 8 Beta section of the forums.


    Setting the DashStyleHelper does not appear to cause an error on my end.

    Are you able to run the attached test script?

    What version of NinjaTrader 8 Beta are you using?
    (Help -> About)
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello,

      For future reference, I am including a link to the NinjaTrader 8 Beta section of the forums.


      Setting the DashStyleHelper does not appear to cause an error on my end.

      Are you able to run the attached test script?

      What version of NinjaTrader 8 Beta are you using?
      (Help -> About)
      Thanks ChelseaB,

      Looking at your code, I was using the following setting:

      Plots[0].DashStyle = DashStyleHelper.Dot;

      instead of:

      Plots[0].DashStyleHelper = DashStyleHelper.Dot;

      Issue fixed, Thanks.

      Cheers!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      10 responses
      36 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DayTradingDEMON, Today, 09:28 AM
      4 responses
      24 views
      0 likes
      Last Post DayTradingDEMON  
      Started by geddyisodin, Yesterday, 05:20 AM
      9 responses
      50 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by George21, Today, 10:07 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Stanfillirenfro, Today, 07:23 AM
      9 responses
      24 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X