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
    http://www.ninjatrader.com/support/h...drawobject.htm
    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 Jeremytang, 07-14-2018, 06:45 PM
      21 responses
      439 views
      0 likes
      Last Post mav8rick  
      Started by LeonK, Yesterday, 09:26 PM
      1 response
      8 views
      0 likes
      Last Post bltdavid  
      Started by NicholasJoannette, Yesterday, 03:01 PM
      2 responses
      11 views
      0 likes
      Last Post NicholasJoannette  
      Started by rach1994, Yesterday, 12:20 PM
      1 response
      35 views
      0 likes
      Last Post bltdavid  
      Started by litamm89, Yesterday, 11:00 AM
      5 responses
      22 views
      1 like
      Last Post rafael_delima86  
      Working...
      X