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

IFibonacciRetracements issue

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

    IFibonacciRetracements issue

    Scenario:

    Was trying to move an existing Fibonacci Retracement drawing on a chart to a different time by changing StartTime and EndTime via IFibonacciRetracements interface.
    // get the entry - it does this fine
    IFibonacciRetracements fibRetracements = (IFibonacciRetracements)DrawObjects[draw.Tag];
    // change the values
    fibRetracements.StartTime = fibRetracements.StartTime.AddMinutes(-60);
    fibRetracements.EndTime = fibRetracements.EndTime.AddMinutes(-60);

    just doesn't work. The drawing disappears. When I changed only one value and it snapped to bar 0. It was originally drawn using time and not bars.

    However if I use bars it works fine.
    fibRetracements.StartBarsAgo = -100;
    fibRetracements.EndBarsAgo = -100;

    Is this an undocumented feature or a bug?

    #2
    Hello ct, and thank you for your question.

    I would like to clarify, since we are using IFibonacciRetracements, we are using NinjaTrader 7?

    If this is the case, the StartTime and EndTime are not guaranted to maintain a relationship to StartBarsAgo and EndBarsAgo, respectively, beyond object creation. You will need to modify the BarsAgo properties to change how they are displayed. Modifying their times in tandem to how they are displayed or vice-versa is the responsibility of the programmer.

    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      JessicaP

      Yes it is on Ninja Trader 7. Your response perfectly explains the results I am experiencing. I modified my program to just redraw the Fib from scratch and it works fine. Thanks to your reply I will be able to avoid this issue in the future. You get a gold star from me.

      I also appreciate the spam being removed.

      Cheers.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
      6 responses
      26 views
      0 likes
      Last Post tradingnasdaqprueba  
      Started by PaulMohn, Today, 02:06 AM
      1 response
      2 views
      0 likes
      Last Post PaulMohn  
      Started by Mindset, Today, 01:27 AM
      0 responses
      4 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by EB Worx, 03-07-2023, 05:05 AM
      4 responses
      98 views
      1 like
      Last Post cls71
      by cls71
       
      Started by patricia70, 11-23-2020, 10:17 AM
      17 responses
      548 views
      1 like
      Last Post PaulMohn  
      Working...
      X