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 Radano, 06-10-2021, 01:40 AM
      19 responses
      605 views
      0 likes
      Last Post Radano
      by Radano
       
      Started by KenneGaray, Today, 03:48 AM
      0 responses
      4 views
      0 likes
      Last Post KenneGaray  
      Started by thanajo, 05-04-2021, 02:11 AM
      4 responses
      470 views
      0 likes
      Last Post tradingnasdaqprueba  
      Started by aa731, Today, 02:54 AM
      0 responses
      5 views
      0 likes
      Last Post aa731
      by aa731
       
      Started by Christopher_R, Today, 12:29 AM
      0 responses
      11 views
      0 likes
      Last Post Christopher_R  
      Working...
      X