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

print dots on the price chart (overlay) as certain conditions are met

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

    print dots on the price chart (overlay) as certain conditions are met

    I am trying to print dots on the price chart (overlay) as certain conditions are met. I want to see all the dots and NOT to be erased as they are being printed. As per my code it currently prints only one dot (last dot) at a time. I have attached the indicator's code file. What am I doing wrong here? Please help me with this issue. Hoping to hear from you soon. Thanks!
    Attached Files

    #2
    Hello sukhob, thanks for your post.

    To get multiple drawing objects you must make a unique tag for each of them. This is typically done by appending the CurrentBar to your tag e.g.:

    @"NsBullBearFlag12 Dot_1" + CurrentBar,

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your prompt reply. Your reply has helped me to resolve the issue. Is there any way to resize the painted dots on the chart? I would like to make them smaller.

      Comment


        #4
        Hello sukhob, thanks for your reply.

        There is no size setting for the dot drawing tool. One would need to use custom rendering to draw a dot in a specific size. There is a guide on using custom rendering here:



        There is also an example in the platform demonstrating much of SharpDX's functionality titled "SampleCustomRender"

        Best regards.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kujista, Today, 06:23 AM
        0 responses
        1 view
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Yesterday, 04:32 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by f.saeidi, Today, 05:56 AM
        1 response
        5 views
        0 likes
        Last Post Jltarrau  
        Started by Jltarrau, Today, 05:57 AM
        0 responses
        5 views
        0 likes
        Last Post Jltarrau  
        Started by Stanfillirenfro, Yesterday, 09:19 AM
        7 responses
        53 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X