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

Long bar indicator

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

    Long bar indicator

    Hi,

    Is there an indicator that can do two simple things,

    1) find bars which body is at least twice the size of the previous bar,
    2) draw a zone (Open+Close)/2 to Open.

    As on the print screen.

    If not, can someone please code it?

    Thanks in advance!

    #2
    Hello Lester Macena,

    Thanks for your post.

    I'm not aware of a specific indicator that accomplishes this task. The indicator could be developed relatively easily in comparison to more complex indicators. If you would like to take a stab at creating such an indicator, I would suggest referencing our open source indicators and then to play around with using Draw.Rectangle() which would be used to draw the zone. I've included documentation on working with Price Series data as well as documentation on using Draw.Rectangle() for further direction. Working with Price Series data will explain using bars ago references (comparing current bar to previous bar.)

    Working with Price Series - https://ninjatrader.com/support/help...ice_series.htm

    Draw.Rectangle() - https://ninjatrader.com/support/help..._rectangle.htm

    I'll leave this thread open ended for any community members that would like to build this indicator for you. If it interests you, we could also have a representative of our EcoSystem reach out with information on NinjaScript Consultants who would be happy to write such an indicator for you by request.

    Please let us know if this is something that interests you.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CortexZenUSA, Today, 12:53 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by CortexZenUSA, Today, 12:46 AM
    0 responses
    1 view
    0 likes
    Last Post CortexZenUSA  
    Started by usazencortex, Today, 12:43 AM
    0 responses
    2 views
    0 likes
    Last Post usazencortex  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    168 responses
    2,264 views
    0 likes
    Last Post sidlercom80  
    Started by Barry Milan, Yesterday, 10:35 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X