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

Trend indicator using peaks

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

    Trend indicator using peaks

    Hey,

    I'm building a divergence trading strategy and need some help with what trend indicators/codes I can use to analyse the peaks.

    Here is an example of what I want:



    I would like an indicator/code that analyses changes in the peaks (green circles) rather than any point on the RSI (like with the red circle).

    Here is my current code:



    A couple of smaller things that would like help with is:
    1) Any way to reduce the sensitivity of the RSI, it can change a lot from even small adjustments in price

    Any help would be greatly appreciated.

    Stephen

    #2
    Hello Stephen Trading,

    Thank you for your note.

    While we in the support department can't offer advice for specific indicators to use within your strategy or settings for those indicators as that may be considered trading advice and be a compliance issue, I will leave this thread open in case any of our users here on the forums have any particular indicators or RSI settings they recommend.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Stephen Trading View Post
      I would like an indicator/code that analyses changes in the peaks (green circles) rather than any point on the RSI (like with the red circle).
      There's an app...err, indicator for that: It's called 'Swing'.

      Apply it to the RSI and it will find the peaks, and valleys. The default period of 5 seems to work pretty well.

      Code:
      private Swing SwingRSI = Swing(RSI(20, 3), 5);

      And reference the current swing high like this:

      Code:
      SwingRSI.SwingHigh[0]

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,770 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X