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

converting some indicators from nt7 to nt8: setting the width

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

    converting some indicators from nt7 to nt8: setting the width

    hello and good day to everyone,


    for some months i have been testing out nt7, i have achieved to incorporate the excellent arnaud legoux moving average plus other simple indicators i have developed myself into nt7. however, i have ran into some strange results with nt7's optimization engine (i will be posting extensively in this forum about these malfunctions) and have now decided to do some tests on nt8 to see whether it works better.

    this has meant i have had to convert some indicators and a couple strategies i had ready from nt7's version of ninjascript to nt8. in nt8's help guides i found an example on how an indicator's color can be changed according to the values the indicator takes but i haven't been able to find how to set the width for an indicator.

    in nt7's ninjascript, this code below was all that was needed, but i haven't been able to find how to code this for nt8's ninjascript. i would greatly appreciate it if nt's support staff or other users who could know how to set the width of an indicator permanently could help me:



    Plots[0].Pen.Width = 4;
    Plots[1].Pen.Width = 4;
    Plots[2].Pen.Width = 4;
    Plots[3].Pen.Width = 4;


    thanks, all the best, regards.
    Last edited by rtwave; 01-09-2018, 11:15 PM.

    #2
    Hello rtwave,

    Thank you for your note.

    You could use,

    Code:
    Plots[0].Width=15;
    See Plots section of our helpguide,


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      excellent.



      thanks. that's exactly the code i had been looking for.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,606 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      13 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X