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

Fib retracement level crossed prior swing low / high

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

    Fib retracement level crossed prior swing low / high

    I'm using PriceActionSwingPro indicator and it draws naked swing lows and highs. It also draws fib retracements. The 200% fib retracements are sometimes an exact measured move target to a prior swing.
    I would like to add an alert to the code which would fire when the 200% fib retracement crosses ( or comes close to in cases of possibly exiting a position ) a prior naked-swing line. Unfortunately the naked swing lines generated by PriceActionSwingPro are just individual ray objects, so maybe that makes it more difficult to make the alert. However, perhaps I can use a different combination of indicators ( I have SiSwingHighLow indicator as well) which could help with detecting the cross-over ?

    So, my question is... can anyone suggest an easy way to detect and alert a 200% fib retracement of a priory naked-swing pivot?

    #2
    Hello vlc,

    Thank you for your post.

    You could use the conditions that draw the lines and set values to specific variables or Data Series objects to compare in cross conditions.

    If you do not have access to the code, you can try to emulate or copy the conditions or even ask the developer what the conditions are.

    Comment


      #3
      Yes, OK.

      And there is no list of current Fib Retracement levels as a property of the Fib Retracement object, correct? I need work them out ?

      Comment


        #4
        Correct, there is no method or function to call from NinjaScript. You would have to work out the calculation in code.

        Comment


          #5
          Is any of this easier or more flexible in NT8 ?

          Comment


            #6
            vlc,

            Quite possibly, yes. As we have the Drawing Tools exposed in NinjaTrader 8 you could view the code for the Fibonaccis in NinjaTrader 8 and create your own calculations based on that.

            For information on NinjaTrader 8 NinjaScript please visit the following link: http://ninjatrader.com/support/helpG...injascript.htm

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            27 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            32 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 04-23-2024, 09:53 PM
            2 responses
            49 views
            0 likes
            Last Post wzgy0920  
            Started by Kensonprib, 04-28-2021, 10:11 AM
            5 responses
            193 views
            0 likes
            Last Post Hasadafa  
            Started by GussJ, 03-04-2020, 03:11 PM
            11 responses
            3,235 views
            0 likes
            Last Post xiinteractive  
            Working...
            X