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 cmtjoancolmenero, Yesterday, 03:58 PM
        11 responses
        39 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by FrazMann, Today, 11:21 AM
        0 responses
        3 views
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        52 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        26 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X