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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        593 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        398 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        289 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        403 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        358 views
        0 likes
        Last Post CarlTrading  
        Working...
        X