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 drnoggin, Today, 12:19 PM
      0 responses
      1 view
      0 likes
      Last Post drnoggin  
      Started by synthhokie, Today, 12:00 PM
      0 responses
      10 views
      0 likes
      Last Post synthhokie  
      Started by moneyexe, Today, 11:22 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by stevec1824, Today, 11:00 AM
      2 responses
      8 views
      0 likes
      Last Post stevec1824  
      Started by sofortune, Today, 10:05 AM
      2 responses
      14 views
      0 likes
      Last Post sofortune  
      Working...
      X