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.
    https://ninjatrader.com/support/help...ustomevent.htm

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank You!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MatthewLesko, Today, 08:42 AM
      1 response
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by dallasstarsfan, Today, 08:22 AM
      1 response
      25 views
      0 likes
      Last Post dallasstarsfan  
      Started by 309338, Yesterday, 12:06 PM
      0 responses
      28 views
      0 likes
      Last Post 309338
      by 309338
       
      Started by GamarIsmayilova, Yesterday, 01:14 PM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by OChem, Yesterday, 06:47 PM
      2 responses
      38 views
      0 likes
      Last Post aligator  
      Working...
      X