Announcement

Collapse
No announcement yet.

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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X