Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to update user Object by script without changing its owner

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

    How to update user Object by script without changing its owner

    Hi
    I have a script working in NT8
    In the script I "catch" horizontal line created by end user.
    I want that the script will assign the horizontal line a template
    The only way I found to do this is by using the command
    Draw.HorizontalLine(this,Tag,MyHL.StartAnchor.Price,true,"LVN") ;
    While LVN is the template name.
    Any other way to assign template to object ?
    Anyhow, I want that the owner of the horizontal line remain the user and not the script
    how this is done ?


    #2
    Hello Doron,

    Thank you for writing in. We are currently investigating this and will update you as soon as possible. Please note: Our normal business hours are between 8:30AM EST and 6:00PM EST Monday through Friday.

    Thank you for your patience in the meantime.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hello Doron,

      Thank you for your patience.

      I was unsuccessful in finding a means to perform these items. I am checking with development.

      Comment


        #4
        Originally posted by doron View Post
        Hi
        I have a script working in NT8
        In the script I "catch" horizontal line created by end user.
        I want that the script will assign the horizontal line a template
        The only way I found to do this is by using the command
        Draw.HorizontalLine(this,Tag,MyHL.StartAnchor.Price,true,"LVN") ;
        While LVN is the template name.
        Any other way to assign template to object ?
        Anyhow, I want that the owner of the horizontal line remain the user and not the script
        how this is done ?

        There would not be a way to access the template or assign one to the object.

        You can set the y value using the ChartAnchor.Price as seen at the following link: http://ninjatrader.com/support/helpG...rawingtool.htm

        You should be able to do this without re-submitting the object and thus keeping the chart as the owner.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          There would not be a way to access the template or assign one to the object.
          That's a bummer! as I was hoping access to both get and assign templates to manually drawn objects would now be possible in NT8 (unlike 7)..

          I haven't got that far yet, but I would like to be able to provide various fib templates with my indy, and then thru some simple clicks allow the user to switch back and forth between those templates.. (This particular instance would be for manually drawn fibs/objects)..

          If this is not currently possible.. please add that request and my vote to it..


          -=Edge=-
          NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

          Comment


            #6
            We have collected a number of votes on a tracked suggestion to add new method overloads for drawing tools which would allow you to specify a template to apply. I've added your vote to SFT-142.
            Dave I.NinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            9 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,235 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            3 views
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            8 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,415 views
            0 likes
            Last Post Traderontheroad  
            Working...
            X