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 Drawing Objects

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

    Custom Drawing Objects

    Is there any way to create custom drawing objects? I can figure out the actual drawing of the objects, but I don't know how to go about placing them or handling movement and resizing.

    Ideally I'd like to be able to place orders using a drawing object, because one of the objects I'd like to create is a visual representation of an ATM strategy that lets you specify entry points, stops, and targets visually, but I also want to be able to modify the orders once they're placed with the chart manager, so it can't be a strategy (and even if it could, I don't know how you'd handle moving the various elements around).

    A couple other objects I'd like to create would involve placing two horizontal or vertical lines and coloring the range in between them, sort of like a rectangle that's infinite on one axis.
    Last edited by TNixon; 11-29-2010, 02:32 AM.

    #2
    Welcome to our forums, unfortunately you could not add to the drawing objects available. You can create though whatever you like through custom plotting and drawing with C# directly, for a sample the CustomPlotSample would be a way to start.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Welcome to our forums, unfortunately you could not add to the drawing objects available. You can create though whatever you like through custom plotting and drawing with C# directly, for a sample the CustomPlotSample would be a way to start.
      Is there any way to initiate the creation of a new custom draw object, or to manage movement and resizing, though? CustomPlotSample is an indicator, and I would want to be able to easily create and modify multiple custom drawing objects.

      Comment


        #4
        Unfortunately not TNixon, you would need to create this framework using C# as well in order to manage your custom draw objects.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by nicthe, Today, 09:24 AM
        1 response
        5 views
        0 likes
        Last Post nicthe
        by nicthe
         
        Started by samish18, Today, 10:13 AM
        0 responses
        3 views
        0 likes
        Last Post samish18  
        Started by kenz987, Yesterday, 10:20 AM
        2 responses
        13 views
        0 likes
        Last Post kenz987
        by kenz987
         
        Started by nicthe, 08-23-2023, 07:53 AM
        7 responses
        197 views
        0 likes
        Last Post nicthe
        by nicthe
         
        Started by stalt, 12-28-2015, 01:36 PM
        6 responses
        1,536 views
        0 likes
        Last Post giulyko00  
        Working...
        X