Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cusomizing Fonts in Dictionary

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

    Cusomizing Fonts in Dictionary

    Dear Support,

    How to customize barLabels font size and colors in recently uploaded SaraStrat indicator by NTEducationTeam? I assume is has to be done in Dictionary, but how?

    Also, it would be very useful to add entry and stop signals per Sara's patterns and expose the values for Market Analyzer.

    Thanks.

    #2
    Hello aligator,

    The script calls Draw.Text() on line 164.

    You could modify this and specify a simple font object.

    Draw.Text(this, "BarLabel" + CurrentBar, true, barLabels[CurrentBar], 0, labelPos, 0, Brushes.White, new SimpleFont("Arial", 22), TextAlignment.Center, Brushes.Transparent, Brushes.Transparent, 100)

    Draw.Text(NinjaScriptBase owner, string tag, bool isAutoScale, string text, int barsAgo, double y, int yPixelOffset, Brush textBrush, SimpleFont font, TextAlignment alignment, Brush outlineBrush, Brush areaBrush, int areaOpacity)
    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.



    To expose values for the MarketAnalyzer, add plots to the script, return the plot objects with public Series<double> variables, and set the plot value.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks NinjaTrader_ChelseaB,

      Sorry, I missed line 164, looking for SimpleFont.

      Copywright(c), seriously, for something that is not original idea or work (4-5 open source versions in public).

      So, can we make improvements and share?

      Thanks.

      Comment


        #4
        Hello aligator,

        It's in the User App Share and open source. Yes, it's ok to modify and share.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        563 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        329 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X