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

How to define parameters in DrawFibonacciRetracements()

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

    How to define parameters in DrawFibonacciRetracements()

    Once I have two defined pivots Low and High I want to draw some Fib Lines from there, but with the code

    DrawFibonacciRetracements("WaveUP", CurrentBar-oldPL, Low[CurrentBar-oldPL], lastPH, High[lastPH]);

    I get the all the standard lines, I only want some of them like I have defined as default in all my charts...

    How can I change parameters (like % line values, color, thickness) ?

    Thanks
    pmaglio
    NinjaTrader Ecosystem Vendor - The Indicator Store

    #2
    To clarify -

    - Any time you manually draw a fib retracement, your user defined default values are used
    - If you programatically draw one, it does not use this same default?
    RayNinjaTrader Customer Service

    Comment


      #3
      Yes, it uses the last default defined values.
      Even better, if you modify some parameters of the Fib drawn by this code, next time it redraws (using the same text tag ) it preserves your changes...
      In my Indicator I use 2 ; "WaveUP" and "WaveDN" ; So once the indicator draws each one of them I change its corresponding settings and it continues this way for the next Fibs. ( It resets to defaults if I press F5 )
      But , is there some way to define Fib Parameters from the code ?
      pmaglio
      NinjaTrader Ecosystem Vendor - The Indicator Store

      Comment


        #4
        Unfortunately they are not settable via programming.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by xiinteractive, 04-09-2024, 08:08 AM
        4 responses
        12 views
        0 likes
        Last Post xiinteractive  
        Started by Mupulen, Today, 11:26 AM
        0 responses
        1 view
        0 likes
        Last Post Mupulen
        by Mupulen
         
        Started by Sparkyboy, Today, 10:57 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by swestendorf, Today, 11:14 AM
        2 responses
        4 views
        0 likes
        Last Post NinjaTrader_Kimberly  
        Started by TheMarlin801, 10-13-2020, 01:40 AM
        21 responses
        3,917 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X