Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Arrow needs reset

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

    Drawing Arrow needs reset

    hi

    I know it is something simple but i just cant put my finger on it

    I took a regular RSI and want to draw arrows under or above the bar if RSI above or below 30-70

    That is working however since i run the indi live and not on bar close the Arrows get drawed during the bar and dont reset if the bar goes the other way. I use Range bars

    Here is the code of the drawing section which is at the bottom of the RSI script

    Thank you in advance



    if(rsi > 70)
    {
    DrawTriangleUp(CurrentBar.ToString(),
    true, 0, Low[0]-TickSize, Color.Green);
    }
    if(rsi < 30)
    {
    DrawTriangleDown(CurrentBar.ToString(),
    true, 0, High[0]+TickSize, Color.Red);
    }


    #2
    Hello richbois,
    If the condition doesnt holds true then you have to explicitly remove the draw objects from the chart by calling the RemoveDrawObject function. Please refer to our help guide to know more
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      I knew it was something simple for an expert like you

      Thank you for your help

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      559 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 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
      546 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X