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

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 ageeholdings, Today, 07:43 AM
      0 responses
      5 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X