Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addseries

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

    Addseries

    why is the method called monthly chart?
    Attached Files

    #2
    Hello Gibranes,

    Thank you for your post.

    I'm not sure what you mean by "why is the method called monthly chart" - can you please provide more details?

    Comment


      #3
      Why do you see monthly graph lines if you don't call them from if
      (BarsInProgress == 2)//Monthly
      {
      //CalculateTrailingStop();
      }​ Click image for larger version

Name:	ninja.jpg
Views:	122
Size:	208.3 KB
ID:	1321512

      Comment


        #4
        Hello,

        You have the chart set to monthly. If you don't want monthly bars, change the data series. The strategy doesn't control the primary data series. You're applying the strategy to a monthly chart so you are seeing monthly bars.

        Comment


          #5
          I want the chart in monthly but without the indicator, I only want to see the indicator in weekly
          I do not want to see the plot, the green and red line in monthly.

          if (BarsPeriod.BarsPeriodType == BarsPeriodType.Month)
          like that but with addseries​

          Comment


            #6
            A plot using AddPlot() is going to be displayed on the chart regardless of whether you are only assigning a value during a certain BarsInProgress index.

            You could instead create a condition that checks if the Bars are monthly bars and set the plot's brush color to transparent to avoid seeing the plot visually.

            Comment


              #7
              This solution is a bit strange.
              I get a variable in monthly and I need it in weekly chart if I use addseries, do I have to delete what they have drawn in monthly and draw what I want in weekly?​

              Comment


                #8
                Hello Gibranes,

                I'm not sure what you mean regarding a variable.

                Your original question is regarding a plot. When you add a plot to an indicator, you can't specify it only be 'drawn' or plotted to a specific added data series. You'll need to use the solution suggested of setting the plot's brushes to Transparent if you want to hide the plot for a specific time frame (monthly, weekly, etc).

                Comment


                  #9
                  I get this variable in monthly chart like this.
                  if (BarsPeriod.BarsPeriodType == BarsPeriodType.Month)//MONTHLY DATA ONLY
                  RT= (MRPerformance-Rate)/DMediaVo;
                  RT=0.64;
                  If I call it in weekly chart its value is
                  RT=0;
                  How can I make it RT=064 on the weekly chart?​

                  Comment


                    #10
                    Hello,

                    Are you meaning within the same instance of a script?

                    BarsPeriod is for the primary Bars object only. So if you are only defining the variable when the primary bars object is BarsPeriodType.Month, you'll only have that information when the primary bars object is a monthly bar.



                    You would also need to define the variable when the BarsPeriodType is BarsPeriodType.Weekly, if you would to obtain a certain value when the primary bars object is a weekly bar.
                    Last edited by NinjaTrader_Gaby; 10-16-2024, 01:31 PM.

                    Comment

                    Latest Posts

                    Collapse

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