• 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

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,
    https://ninjatrader.com/support/help...-us/?plots.htm

    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 blinx18, Today, 09:54 AM
      0 responses
      0 views
      0 likes
      Last Post blinx18
      by blinx18
       
      Started by Eloi_, Today, 09:48 AM
      0 responses
      2 views
      0 likes
      Last Post Eloi_
      by Eloi_
       
      Started by Longhornmark, Today, 08:22 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Stok, Today, 08:44 AM
      2 responses
      10 views
      0 likes
      Last Post Stok
      by Stok
       
      Started by akuntysh, Today, 12:02 AM
      3 responses
      12 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X