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

How do you draw arrow on top of chart using Plot override

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

    How do you draw arrow on top of chart using Plot override

    Hi

    Does anyone have a sample showing how to draw an arrow (or any other item) alligned to a specific candel at a fixed offset from the bottom or top of the chart by overriding the Plot method.

    Thanks

    Mike

    #2
    Hi upshon,

    Have you already exhausted the use of TickSize?:http://www.ninjatrader.com/support/h...l?ticksize.htm

    Something like High[0] + TickSize
    TimNinjaTrader Customer Service

    Comment


      #3
      Hi Tim

      High[0] + TickSize will not give me what I am after.

      I want all the arrows aligned together at top or bottom of chart, High[0] + TickSize will align them relative to the candle not the chart window.

      Thanks

      Mike

      Comment


        #4
        Hello,


        You would need to use unsupported c# programming achieve this and interact directly with the ChartControl and override the plot method like you mentioned. However the only sample we have on this is the sample you found in the software under Sample Strategy Plot.

        The only workaround I could recommend is building an indicator panel that you then keep at the bottom and keep one at the top that you would house these arrows in. You would then just draw the arrow at the zero line. You would need to seprate your logic for the indicator that runs on the bottom and the indicator that runs on the top.

        Let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        192 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,234 views
        0 likes
        Last Post xiinteractive  
        Working...
        X