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

Move previously drawn Fibonacci Retracement on chart to new price and time

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

    Move previously drawn Fibonacci Retracement on chart to new price and time

    Scenario:
    I draw a Fibonacci retracement but then want to move/relocate it to a new time and price later.

    Question:
    What is my best option? Do I use IFibonacciRetracemens to change the attributes or just remove the draw object and redraw a new one.

    Cheers

    #2
    If your goal is to move the object, you can click on the diagonal line then drag to a new position:

    If your goal is to copy the object within the same chart window, you could just copy then paste the object:
    • Click on the diagonal line to select the Fibonacci
    • Use CTRL+C (or right-click and select 'Copy')
    • Use CTRL+V (or left click off of the object then right click and select 'Paste')
    Here is a video demonstrating both:

    Comment


      #3
      Originally posted by NinjaTrader_PatrickG View Post
      If your goal is to move the object, you can click on the diagonal line then drag to a new position:

      If your goal is to copy the object within the same chart window, you could just copy then paste the object:
      • Click on the diagonal line to select the Fibonacci
      • Use CTRL+C (or right-click and select 'Copy')
      • Use CTRL+V (or left click off of the object then right click and select 'Paste')
      Here is a video demonstrating both:

      https://www.screencast.com/t/N74dEfmU
      Patrick

      I need to do in an indicator. The indicator drew the fib I want to relocate it based on a certain logic.

      Comment


        #4
        Hello ct,

        Drawing objects drawn by NinjaScript can be moved by calling that drawing method again, using the same tag parameter and applying new parameters for the new drawing at the new location.

        For example:

        Code:
        if (CurrentBar == 100)
            DrawFibonacciRetracements("tag1", true, 10, Low[10], 0, High[0]);
        if (CurrentBar == 200)
            DrawFibonacciRetracements("tag1", true, 10, Low[5], 0, High[1]);
        More tips on drawing in NinjaScript can be found here - https://ninjatrader.com/support/help...t7/drawing.htm

        Please let us know if we can be of further assistance.
        JimNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Jim View Post
          Hello ct,

          Drawing objects drawn by NinjaScript can be moved by calling that drawing method again, using the same tag parameter and applying new parameters for the new drawing at the new location.

          For example:

          Code:
          if (CurrentBar == 100)
          DrawFibonacciRetracements("tag1", true, 10, Low[10], 0, High[0]);
          if (CurrentBar == 200)
          DrawFibonacciRetracements("tag1", true, 10, Low[5], 0, High[1]);
          More tips on drawing in NinjaScript can be found here - https://ninjatrader.com/support/help...t7/drawing.htm

          Please let us know if we can be of further assistance.
          Jim

          Thanks, got it.

          Cheers

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ghoul, Today, 06:02 PM
          0 responses
          7 views
          0 likes
          Last Post ghoul
          by ghoul
           
          Started by Barry Milan, Yesterday, 10:35 PM
          6 responses
          18 views
          0 likes
          Last Post Barry Milan  
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Started by DJ888, 04-16-2024, 06:09 PM
          4 responses
          13 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by terofs, Today, 04:18 PM
          0 responses
          12 views
          0 likes
          Last Post terofs
          by terofs
           
          Working...
          X