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

Swings and Pivots Marker

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

    Swings and Pivots Marker

    Hey Guys, I'm stumped. I simply want to Draw a Letter On top or Below a Swinging Bar. at Higher Swing Lows and Highs, and at Lower Swing Lows and Highs


    how do I get the indicator to draw an "S" as soon as that Down Bar Reverses. Look at this Pic. I show EXACTLY what I'm trying to accomplish. but How do I get this done?


    #2
    All swing and zig zag indicators only identify the swing highs and lows several bars later and draw then back. If you select the swing strength as 4 - such as shown in your screenshot - you can use DrawText to draw the "S", but then draw it 5 bars ago, when the swing high or low have been detected.

    I prefer to use a zigzag indicator which is based on both the swing strength and the minimum deviation. Higher highs and lows are plotted as green dots, while lower highs and lows appear as red dots.
    Attached Files

    Comment


      #3
      Hello ginx10k,

      Thank you for your post.

      You can use the following code:
      Code:
      int sBar = Swing(5).SwingLowBar(0, 1, CurrentBar-1);
      DrawText(CurrentBar.ToString(), "S", sBar, Low[sBar], Color.Black);

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      6 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X