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

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 CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,266 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X