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

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


    Please let us know if you need further assistance.

    Leave a comment:


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

Latest Posts

Collapse

Topics Statistics Last Post
Started by ender_wiggum, Today, 09:50 AM
1 response
5 views
0 likes
Last Post NinjaTrader_Gaby  
Started by rajendrasubedi2023, Today, 09:50 AM
1 response
10 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by geotrades1, Today, 10:02 AM
0 responses
4 views
0 likes
Last Post geotrades1  
Started by bmartz, Today, 09:30 AM
1 response
8 views
0 likes
Last Post NinjaTrader_Erick  
Started by geddyisodin, Today, 05:20 AM
3 responses
25 views
0 likes
Last Post NinjaTrader_Gaby  
Working...
X