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 SantoshXX, Today, 03:09 AM
      0 responses
      11 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      41 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      12 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Working...
      X