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

Create Draw Fib using Button

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

    Create Draw Fib using Button

    I have code where I create a Fib retracement it works in on bar update, I created a method to create the fib and then copied to run on button press, The button does execute but Throws an unhandled exception index out of range on creating the FIB, I have tried to revert to the documentation method. I have created the fib object outside of the button action My guess is it must need an event handler. I wish to use a scalping method and want the Fib and order placed based on said fib.

    I am using the documentation

    // Instantiate a FibonacciRetracements object
    FibonacciRetracements myFibRet = Draw.FibonacciRet racements(this, "tag1", true, 10, Low[10], 0, High[0]);

    // Set the object's lines to extend to the right
    myFibRet.IsExtendedLinesRight = true;

    #2
    Hello BartMan,

    TriggerCustomEvent() must be used to synchronize series from a non-data-driven thread.


    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank You!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by andrewtrades, Today, 04:57 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      6 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
      7 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X