• 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.

  • rtwave
    replied
    excellent.



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

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Rashid Garuba, Today, 11:37 AM
0 responses
1 view
0 likes
Last Post Rashid Garuba  
Started by elkhatabi, Today, 11:19 AM
0 responses
1 view
0 likes
Last Post elkhatabi  
Started by hurleydood, Today, 10:07 AM
0 responses
4 views
0 likes
Last Post hurleydood  
Started by Irukandji, Today, 09:43 AM
1 response
8 views
0 likes
Last Post NinjaTrader_ThomasC  
Started by TazoTodua, Today, 09:06 AM
0 responses
7 views
0 likes
Last Post TazoTodua  
Working...
X