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

number every 3rd range candles

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

    number every 3rd range candles

    Hello,

    I use a 20 tick range candle for intraday trading. Is there an indicator that counts and places a number above or below every 3rd candle from the market open until close? I am blind when it comes to programming so your guidance will be very appreciated. Thx.
    Attached Files
    Last edited by JamesBond; 08-20-2021, 11:38 PM.

    #2
    Hi James, are you German ? I cannot help you with your question, but maybe you can give me an advice: I do have a number of Individual ndicators for NT7. I am looking for help to get them migrated to Nt8... Do you know somebody who can help me ?
    Thanks
    Alexander

    Comment


      #3
      Originally posted by JamesBond View Post
      Hello,

      I use a 20 tick range candle for intraday trading. Is there an indicator that counts and places a number above or below every 3rd candle from the market open until close? I am blind when it comes to programming so your guidance will be very appreciated. Thx.
      i think you are looking for this : https://ninjatraderecosystem.com/use...unter-colored/

      It does not place the number below the 'third' candle, but you can choose it to place the number below all or alternate candles.
      Last edited by zoheb; 08-21-2021, 05:54 PM.

      Comment


        #4
        Zoheb,

        ahhh, that indi is so close. but I'm looking to number every 3rd bar. thanks though!

        Comment


          #5
          Alexander,

          Welcome to the NinjaTrader forums!

          JamesBond,

          To find every 3rd bar, use remainder operator (modulus).
          Learn about C# operators that perform multiplication, division, remainder, addition, and subtraction operations with numeric types.


          if (CurrentBar % 3 == 0)
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Chelsea,

            Thanks for the suggestion. However, I am blind when it comes to programming. Am I supposed to insert that line somewhere in the indicator using the Ninjascript Editor?

            Comment


              #7
              Hello JamesBond,

              Below is a link to a forum post with helpful information about getting started with C# and NinjaScript.


              This is a condition that will be true on every 3rd bar. This would go wherever you are trying to trigger an action on every 3rd bar.

              For example:
              if (CurrentBar % 3 == 0)
              {
              Print(Time[0]);
              }

              This would print the time of every 3rd bar.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Thanks for the extra explanation, Chelsea. I got it to work just the way I wanted it. Thank you, everyone!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by TraderIqbal, 10-20-2023, 10:12 AM
                2 responses
                118 views
                0 likes
                Last Post Funnywo
                by Funnywo
                 
                Started by Creamers, 04-27-2024, 05:32 AM
                12 responses
                72 views
                0 likes
                Last Post Creamers  
                Started by fredericlebre, Today, 01:19 AM
                0 responses
                7 views
                0 likes
                Last Post fredericlebre  
                Started by TraderJA, Today, 12:06 AM
                0 responses
                10 views
                0 likes
                Last Post TraderJA  
                Started by SnailHorn, Yesterday, 10:49 PM
                0 responses
                9 views
                0 likes
                Last Post SnailHorn  
                Working...
                X