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

Instead of BarBrushes how to I say BarOutline?

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

    #31
    Like this? But also, in these other areas.

    I didnt post the pic w/ my arrows, hold on.
    Attached Files
    Last edited by trdninstyle; 10-07-2022, 12:25 PM.

    Comment


      #32
      Where the arrows are?
      Attached Files

      Comment


        #33
        Hello trdninstyle,

        The logic is up to you.

        What are you trying to do here?

        You are checking if the BarBrush, the color of the bar (not the outline), was not set to Brushes.White 2 bars ago?

        Your script does not set BarBrush, so this is always going to evaluate as true as no BarBrush is being set to White.

        Were you intending to check if the CandleOutlineBrush was set to Brushes.White 2 bars ago?
        Were you intending to check if the CandleOutlineBrush was set to the CandleOutlineDownBrush value 2 bars ago?
        Last edited by NinjaTrader_ChelseaB; 10-07-2022, 02:00 PM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #34
          Okay, I got it. I had to read it a bunch of times, the 2 bars ago was the clue. At first, I put in CandleOutlineDownBrush; the ('Down') had issues, then the light went off.

          I have Up for the Down and the Down for the Up. I just have to fix that. I can go back to my other indicators now and add that feature.

          Thank you, a billion times.
          Attached Files

          Comment


            #35
            Hello trdninstyle,

            If the user is not setting the brush to yellow, this will not evaluate as true.

            I think you intend to be comparing CandleOutlineBrushes[2] to be equal to CandleOutlineDownBrush, and not Brushes.Yellow.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #36
              I'm going to add another condition for a two-candle reversal and have it print a different color. A two-candle reversal with one to 4 small candles or doji's between the down bar and the up bar, technically it trades the same because it's a variant of the 2candle reversal.

              I was just saying, I wonder by leaving !=Brushes.Yellow, would it be the default setting when someone first gets the indicator?
              Attached Files

              Comment


                #37
                Hello trdninstyle,

                What is the CandleOutlineDownBrush default color? Is it yellow?
                Are you trying to find out if the bar was set with the default color this input started with 2 bars ago?
                If the input value changes, you don't want this condition to evaluate as true any more?
                What is your goal? What is the actual logic you want?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #38
                  I know I get that. I was just curios. The logic is all set. It's a blow off question.

                  Thanks again, tho.

                  Comment


                    #39
                    There is something here I'm missing in order to have indicator work. It compiles but still doesn't color.

                    I might have to wait til Monday unless you guys are working on Saturday. Thank you thank you.
                    This is my other indicator, Breakout and follow thru candle and to allow end user to change color. (2 Candles involved)
                    Attached Files
                    Last edited by trdninstyle; 10-08-2022, 10:40 AM.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by bmaltz, Yesterday, 07:15 PM
                    2 responses
                    13 views
                    0 likes
                    Last Post bmaltz
                    by bmaltz
                     
                    Started by iceman600, Yesterday, 01:51 PM
                    4 responses
                    25 views
                    0 likes
                    Last Post iceman600  
                    Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
                    55 responses
                    13,424 views
                    3 likes
                    Last Post grimes12  
                    Started by Mindset, Yesterday, 05:43 AM
                    4 responses
                    36 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by brenton, Today, 08:31 PM
                    0 responses
                    15 views
                    0 likes
                    Last Post brenton
                    by brenton
                     
                    Working...
                    X