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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      28 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      284 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      281 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      132 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X