Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Edit Indicator Text size - Help please

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

    Edit Indicator Text size - Help please

    taken care of
    Last edited by imjustkaze; 03-09-2023, 02:04 PM.

    #2
    imjustkaze This might do what you want:
    Code:
    // Comment out line 38 ...
    //    private SimpleFont textFont;
    // Comment out line 130 ...
    //    textFont = new SimpleFont("GenericSansSerif", 9);
    // Add the following between lines 461 and 462 ...
        [NinjaScriptProperty]
        [Display(Name = "Text Font", GroupName = "Parameters", Order = 7, Description = "Font for displayed Text.")]
        public SimpleFont textFont
        {
            get { return  _textFont; }
            set { _textFont = value; }
        }
    
        private SimpleFont _textFont = new SimpleFont("Consolas",15);
    Edit, compile, and it should be good to go.

    I couldn't really test it other than that it compiles and allows me to change the Text Font setting.

    Hope that suits your purposes.

    Thanks.​
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      jeronymite I don't really know anything about coding... so I hate to say I have no idea how to do anything there but "add the following between lines".... I don't understand the term "comment out" unforunately. I would happily send you $25 on paypal to send me the compiled file/indicator Sounds simple but I've got 0 idea how to do that. Not trying to sound like a spoiled brat or put a value on your time, I just don't understand.
      Last edited by NinjaTrader_Jesse; 03-09-2023, 08:06 AM. Reason: do not include personal information in the forums

      Comment


        #4
        Hello imjustkaze,

        You can also contact a professional NinjaScript Consultant who would be happy to create or modify this script at your request. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. For further information on that topic please email vendorsupport[at]ninjatrader.com
        JesseNinjaTrader Customer Service

        Comment


          #5
          @jeronymite​ or anyone else that might help, I did the above successfully after some googling, saved and compiled the file fine but when I try to open indicators now ninjatrader crashes.... I was able to edit the default font size but it caused crowding.

          Comment


            #6
            Hello imjustkaze,

            If the platform crashes when trying to open it after you edited a custom script that would generally mean there is a pretty serious error in the syntax of the script you edited. I would suggest to remove that script and use a third party developer if you are having problems with the manual programming. If you want to learn NinjaScript our support can help with basic questions but that would generally also mean you have some existing experience with C# programming language first before doing anything of your own in NinjaScript.

            To fix the problem you can do the following steps which should remove the script and problem.

            With NinjaTrader closed:
            1. Open the folder Documents\NinjaTrader 8\bin\Custom\Indicators
            2. Find the file you edited and delete it
            3. Open the folder Documents\NinjaTrader 8\bin\Custom
            4. Find the file NinjaTrader.Custom.dll and delete it
            5. Start the platform

            If you are still having problems please email support[at]ninjatrader.com and in the email specify that you are having trouble opening NinjaTrader.
            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by WHICKED, Today, 12:56 PM
            2 responses
            15 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by Felix Reichert, Today, 02:12 PM
            0 responses
            1 view
            0 likes
            Last Post Felix Reichert  
            Started by Tim-c, Today, 02:10 PM
            0 responses
            1 view
            0 likes
            Last Post Tim-c
            by Tim-c
             
            Started by cre8able, Today, 01:16 PM
            2 responses
            9 views
            0 likes
            Last Post cre8able  
            Started by chbruno, 04-24-2024, 04:10 PM
            3 responses
            49 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X