Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Chart Markers

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

    Custom Chart Markers

    Has anyone created custom chart markers they can share?

    I'm thinking something like a sideways triangle pointing to the right, maybe:

    DrawTraingleRight("tag",AnchorBarsago,AnchorPrice, HorzitonalSize(inBars),VerticalSize(inTicks),Color ,Opacity)
    ex.
    DrawTraingleRight("tag",0,Close[0],0.75,1.25,Color.Blue,4)

    1> The 2 anchor parms, would place the apex at a specific point on price bar.
    2> Ideally the horizontal and vertical sizes would be in decimals to give better granularity.

    I'm thinking of attempting to write such a method/indicator using DrawPolygon to accomplish this but it is pushing my C# skill level. I looked at the code in "CustomPlotSample" but it seems to draws graphics in static locations on a chart. I want the graphic to be attached to the price like the internal chart markers, so it moves with the price bars when the chart is resized or additional price bars come in.

    I also looked in file sharing and could not find this, hopefully it is there and I just missed it, and someone can direct me to the right thread.

    Any help or sample code would be appreciated.

    #2
    More work then I'd want to do. But that's just me.

    If I had to do something like this I'd take the approach of using DrawText and setting the font to something that has the markers I want.

    Comment


      #3
      That makes a useful workaround or alternative.

      Using WingDing arrows I cannot get proper horizontal alignment, using Near or Far. Still, it is close enough to use for many applications. Maybe there is a better font to use.

      Although a step forward, I'd still like to be able make user defined Chart Markers. Maybe NT can add this under types, like making one's own fill type for Backtesting.

      Thanks for the tip.

      Comment


        #4
        tquinn,

        Thank you for the suggestion. I will forward it to development.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        624 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        567 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X