Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can someone help with the following adjustment please?

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

    Can someone help with the following adjustment please?

    I have unsuccessfully tried to recreate the NT Key Reversal Up/Down indicators so they plot an arrow above/below the bars instead of the vertical bars in a sub-window.

    I am hoping someone familiar with NT code will be nice enough to make this adjustment.

    For anyone who does help me out, thank you in advance for your time.

    Michael

    #2
    Hello,

    Thank you for your post.

    You can create a custom indicator which calls the KeyReversalUp and Down indicators. The following snippet should help you get started:

    Code:
    protected override void OnBarUpdate()
            {
               
    			if (KeyReversalUp(1)[0] == 1)
    			{
    				DrawArrowUp("Up" + CurrentBar, 0, Low[0], Color.Green);
    			}
    			
    			if (KeyReversalDown(1)[0] == 1)
    			{
    				DrawArrowDown("Down" + CurrentBar, 0, High[0], Color.Red);
    			}
            }
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X