Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VWAP Modification

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

    #61
    so on the indcator


    AddDataSeries(Data.BarsPeriodType.Minute, 1);/// Closes[3]
    AddDataSeries(Data.BarsPeriodType.Minute, 5);/// Closes[4]
    AddDataSeries(Data.BarsPeriodType.Minute, 15);/// Closes[5]
    AddDataSeries(Data.BarsPeriodType.Minute, 30);/// Closes[6]​​

    can all of these just be a 1 since the varaible inputs will override each

    and if someone might put in 60 minutes or other do I need MORE AddDataSeries

    Thanks
    **************************************
    so you know the F5 when change to null caused lock up and Now I have NO Control Center on start up, I have Nothing at all.

    Comment


      #62
      Hello DTSSTS,

      Thanks for your note.

      No, the values used in your AddDataSeries() methods must be hardcoded and you should NOT use user-defined variables. This is stated in the help guide as discussed in my previous posts.

      From the AddDataSeries() help guide:"Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. "

      AddDataSeries(): https://ninjatrader.com/support/help...dataseries.htm

      "so you know the F5 when change to null caused lock up and Now I have NO Control Center on start up, I have Nothing at all."

      Have you tried running a repair using the installer as stated in my previous post?

      Run a repair using the installer by following the steps listed in that post and then try opening NinjaTrader 8.

      Please report your results after running a repair using the installer.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #63
        Originally posted by DTSSTS View Post
        so on the indcator
        so you know the F5 when change to null caused lock up and Now I have NO Control Center on start up, I have Nothing at all.
        This might be because it was already on the chart so the series are wrong - to be absolutely "belt and suspenders" sure about this, just this one time, restart NT8, remove it from the chart, restart NT8, and add it back to the chart. If it still locks up when you F5 then we'll know it's not that and is something else.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #64
          Yes Bruce I will retry code with Null and blank chart as I am recoding the variable data series

          Yes Brandon I did repair and Open Ninja, but I tried ot open my workspace and it appeared to lockup again, but it did finally open

          I will update here tomorrow after i make all the changes.

          thanks again to both of you

          Comment


            #65
            OK Update Dataseries null coded no issues

            All dataseries on indicator no variables
            all dataseries on Strategy with indicator includes dataseries needed for indicator

            NO charts with indicator present, Strategy applied to chart and to Plot on chart for indicator

            I have no Plots on Chart, the prints incorporated in the code of the indicator are Print High1 Price Corrected and Low1Price correctly also the High1 Time and Low1 Time is correct

            So starting points for calculations are identified but NO PLOTS are Plot on Chart
            I added a print to the Strategy NOT sure they are correct

            Print("PlotH1: " + ATSFloatingAnchors1.Plots[4]);
            Print("PlotL1: " + ATSFloatingAnchors1.Plots[5]);​

            Thanks for the help

            Comment


              #66
              Use Values[3][0] not Plots[3]. And did you use AddChartIndicator to add the nested indicators to the chart?
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment


                #67
                I did just try Values from here THESE PRINTS ARE COMING FROM THE INDICATOR not the strategy

                these are the values



                [Browsable(false)]
                [XmlIgnore]
                public Series<double> PlotVWAPH1
                {
                get { return Values[4]; }
                }

                [Browsable(false)]
                [XmlIgnore]
                public Series<double> PlotVWAPL1
                {
                get { return Values[5]; }
                }



                Print("PlotH1x: " + PlotVWAPH1[0]);<< = formula to create Values[4]
                Print("PlotL1x: " + PlotVWAPL1[0]);<< = formula to create Values[5]​

                Print("PlotH1: " + Values[4]);
                Print("PlotL1: " + Values[5]);​

                results

                PlotH1x: 13303.0215962441
                PlotL1x: 13284.1597357141
                PlotH1: NinjaTrader.NinjaScript.Series`1[System.Double]
                PlotL1: NinjaTrader.NinjaScript.Series`1[System.Double]​

                So I may be getting values of the Plots just not seeing on the charts

                Comment


                  #68
                  Did you use AddChartIndicator to add the nested indicators to the chart?
                  Bruce DeVault
                  QuantKey Trading Vendor Services
                  NinjaTrader Ecosystem Vendor - QuantKey

                  Comment


                    #69
                    i have this print in the strategy but no prints showing for this

                    Print("PlotH1: " + ATSFloatingAnchors1.Plots[4]);
                    Print("PlotL1: " + ATSFloatingAnchors1.Plots[5]);​​

                    you state use
                    Use Values[3][0] not Plots[3].

                    NOT sure what you mean

                    And did you use AddChartIndicator to add the nested indicators to the chart?

                    NO not familiar with that, I have never tried to use this type indicator with dataseries part of the indicator

                    Comment


                      #70
                      Use Values[4][0] not Values[4].
                      Bruce DeVault
                      QuantKey Trading Vendor Services
                      NinjaTrader Ecosystem Vendor - QuantKey

                      Comment


                        #71
                        In your Print statement you posted above.
                        Bruce DeVault
                        QuantKey Trading Vendor Services
                        NinjaTrader Ecosystem Vendor - QuantKey

                        Comment


                          #72
                          AddChartIndicator OH this is just to show the plot

                          you are about in dataload

                          ATSFloatingAnchors1 = ATSFloatingAnchors(Close, true, true, true, 120, true, 78, true, 78, true, 78);

                          is this AddChartIndicator
                          Last edited by DTSSTS; 05-01-2023, 08:01 PM.

                          Comment


                            #73
                            from strategy prints

                            Print("PlotH1 Strat: " + ATSFloatingAnchors1.Plots[4][0]);
                            Print("PlotL1 Strat: " + ATSFloatingAnchors1.Plots[5][0]);​

                            with [0] will not compile

                            Comment


                              #74
                              with this in strategy pirnt

                              Print("PlotH1 Strat: " + Values[4][0]);
                              Print("PlotL1 Strat: " + Values[5][0]);​

                              log errors

                              Comment


                                #75
                                PlotH1x: 13291.7928656511
                                PlotL1x: 13285.9237102145

                                those prints are form indicator prints


                                [Browsable(false)]
                                [XmlIgnore]
                                public Series<double> PlotVWAPH1
                                {
                                get { return Values[4]; }
                                }

                                [Browsable(false)]
                                [XmlIgnore]
                                public Series<double> PlotVWAPL1
                                {
                                get { return Values[5]; }
                                }



                                Print("PlotH1x: " + PlotVWAPH1[0]);<< = formula to create Values[4]
                                Print("PlotL1x: " + PlotVWAPL1[0]);<< = formula to create Values[5]​

                                and they are the correct values.

                                SO IT DOES APPEAR THAT THE STRATEGY IS Calculating the Values of the plots, So I will just have to see if the plots are where they should be on a trade
                                THIS appears to be OK
                                thanks for the input​​

                                Comment

                                Latest Posts

                                Collapse

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