• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detecting Shave Bars and One Tick Tails?

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

    Detecting Shave Bars and One Tick Tails?

    How do I detect:

    - Shaved bars, with no tail on top or bottom
    - Bars with a shaved top, and a one-tick tail on the bottom.

    In both cases, the bar is shaved on the top side in the momentum of the trade. On the bottom side, it's either shaved or a one tick tail. I can't find the right property to unlock this bar attribute. Thanks.
    Attached Files

    #2
    Hello timmbbo,

    Thanks for your post.

    There is no bar attribute that matches your descriptions. To detect these conditions you would need to create an indicator.

    The conditions could be coded something like:

    if (Close[0] > Open[0] && Low[0] == Open[0] && Close[0] == High[0])
    {
    //shaved up bar, do something
    }

    else if (Close[0] > Open[0] && Low[0] == Open[0] - 1 * TickSize && Close[0] == High[0])
    {
    // Shaved top with 1 tick tail, do something
    }
    else if (...)

    You would continue to code in that manner to detect the various conditions you are looking for.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the example - I have it working now.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by chartish, Today, 04:43 PM
      0 responses
      2 views
      0 likes
      Last Post chartish  
      Started by Trader17, Today, 04:07 PM
      0 responses
      1 view
      0 likes
      Last Post Trader17  
      Started by GussJ, Today, 01:30 PM
      2 responses
      17 views
      0 likes
      Last Post GussJ
      by GussJ
       
      Started by GARZONJ, Today, 12:25 PM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by RandanAL, Today, 11:53 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X