Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compare value to color?

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

    Compare value to color?

    HI i have modified
    The indicator is based on the book by John Carter “Mastering the Trade” (Chapter 11) and shows the “squeeze of the market”. The screenshot provides the following information: It is necessary to enter when the color of the circles at the horizontal level “0” changes from blue to white and vice versa. The direction of […]


    and it currently prints

    SqueezeInd.IsSqueeze.Equals=#FF40E0D0
    How can I evaluate that it current close is not squeeze?
    I attached a mod indicator
    Attached Files

    #2
    Hello tkaboris,

    There is an IsSqueezes series returning the Values[1] plot.

    Are you trying to set this to 1 when sqzOn is true so that this can be used as a signal for a host?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      yes thats what i am trying to do

      Comment


        #4
        Hello tkaboris,

        You could add a line under 112.

        if(sqzOn)
        {
        IsSqueezes[0] = 1;
        squeezeOn[0] = true;
        squeezeOff[0] = false;
        }​
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          thank you
          when i added that extra line its now conflicting. Can I ask you to look at the code I submitted earlier?
          Click image for larger version

Name:	image.png
Views:	127
Size:	1.9 KB
ID:	1264006

          Comment


            #6
            Hello tkaboris,

            What is conflicting? How is it conflicting?

            To confirm the suggestion I've made was in relation to the code in the file you posted in post # 1. This is why I was suggesting a specific line number under 112.
            Can you clarify which code you feel I have not looked at?

            You can add the plot with Brushes.Transparent if you don't want to see this on the chart.

            Or you could add new plots if this plot was already being used for something. I was only seeing it being set to 0 in the code on line 110 so it didn't look like this was being used for anything.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              hi yes i am referring to the code i provided earlier. It plots above where it should as i showed pic in previous post
              Click image for larger version

Name:	image.png
Views:	125
Size:	28.7 KB
ID:	1264019

              Comment


                #8
                Hello tkaboris,

                There is no price scale in your screenshot.

                Is this not plotting a grey dot at a value of 1?

                You can view the plot values in the DataBox.


                What do you want to have happen? Do you want the plot transparent?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  hi, those turquise dots should be in place on the 0 line scale and right now its much upper scale

                  Comment


                    #10
                    Hello tkaboris,

                    The Turquoise appears to be from the IsSqueeze brush property, which is assigned to the PlotBrushes[1][0] (the IsSqueezes plot) on line 109.

                    So this plot was being used and was intentionally being set to 0.

                    In this case, add a new plot with AddPlot(), add a public series to return Values[2], and set that plot with a value of 1 instead.

                    Below is a link to a forum post about adding plots.
                    I'm trying to expose my variables to the strategy builder so everyone can have better use of the WaveTrend indicator (it has a lot of code). Explain this to me like I am 5 because this isnt the first time I've tried to figure it out and hit a wall. What is Series? I know its like an array that stores bars. Why not just call it
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Today, 05:17 AM
                    0 responses
                    44 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    124 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    65 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    42 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    46 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X