Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Candle size

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

    Candle size

    Hello, I am looking for an indicator that calculates the size in ticks of the body and the wicks of the previous candle or the previous candles that I define, 10-20-30... I am attaching an image. Is there something similar? thank you so much
    Attached Files

    #2
    Hello punkiy2111,

    You would need to create this custom logic.

    To measure the candle size in ticks, subtract the low from the high and divide by TickSize.

    Print( (High[0] - Low[0]) / TickSize);

    You can use a for loop to loop through previous bars.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea but I'm not a very good programmer. Could you give a brief indication if you would be so kind? Thank you very much in advance.

      Comment


        #4
        Hello punkiy2111,

        I'm not aware of a script that already does this.

        Your post was posted in the Indicator Development section of the forums and not the NinjaScript File Sharing Discussion section.

        I've moved your post to the NinjaScript File Sharing Discussion section. If this is a script you are developing yourself and are wanting assistance with the code, please let me know and I will move this back.

        This thread will remain open for any community members that may know of an existing indicator with this custom behavior.

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          So it is, thanks

          Comment


            #6
            Please can someone help me? The total ticks of the green candle should be down and the total ticks of the bearish candle should be up. Thanks in advance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            600 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            347 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            558 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X