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 chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          6 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Working...
          X