Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VWAP Modification

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

    #91
    if (ATSFloatingAnchors1.Value[0] > 0) YES I do this all the time with indicators (I thought you were saying that would cause the Update to occur

    I need the "Value" to be up to date so that the condition has meaning in the trade setup

    SO ALL I NEED TO DO is place

    ATSFloatingAnchors1.Update();

    in the OnBarUpdate() region just below the CurrentBars lines of code

    That and that only will keep my indicator in use up to date

    Thanks

    IF I REMOVE LATER THE AddChartIndicator() is it ok to leave the ATSFloatingAnchors1.Update(); ?????

    Comment


      #92
      Hello DTSSTS,

      Thanks for your note.

      Yes, you could call ATSFloatingAnchors1.Update() to force the OnBarUpdate() method to be called for all data series so that indicator values are updated to the current bar index.

      Yes, the .Update() method could be used in the strategy without having to call AddChartIndicator().
      <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


        #93
        OK thanks for the help, I have that in place, prints look good, see what the plots look like when the next session starts at 18:00

        Comment


          #94
          Results Enable Strategy 2 Instances ONE directly on chart showing Plot on Chart, ONE in Control Center same settings etc

          The on the chart did plot in the ETH hours as expected (good) and continues into the RTH both Enter a couple of trades RTH the same as expected

          THEN disabled the strategies, Reenable at 10:15 AM RTH, NOW the strategy applied to Chart shows a Flat Line on all Plots going back to 18:00 Open of Overnight Session

          (the plots prior to 18:00 are plotted correctly and as expected)

          Then I pressed F5 to reload scripts and then the plots were correct as expected again

          SO SEEMS CANNOT REALLY RELY ON THE PLOTS BEING CORRECT

          Comment


            #95
            Hello DTSSTS,

            Thanks for your note.

            The strategy enabled on the Strategies tab of the Control Center will not plot values on a chart. Only strategies enabled on a chart will plot on a chart.

            That said, the script is plotting a flat line because the data being calculated is equaling that value. You would need to add prints to the script that prints out all the values in your logic to see what exactly is happening in your logic to confirm if the behavior is being caused by something you are doing in your custom logic.

            You could try making a very simple new indicator that only plots a value and then see if making that change with the trading hours makes it not plot correctly.
            <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


              #96
              The prints match the Chart Plot, if the data being calculated equaled that Value then F5 would NOT change it. Also Prior to the re enable the plots values were NOT flat

              Comment


                #97
                Hello DTSSTS,

                Thanks for your notes.

                Please create a new simple indicator or strategy that reproduces the behavior and attach an exported copy of the script to your reply and the exact steps you use to reproduce the behavior with it so that I may look into this matter further.

                To export a script, go to Tools > Export > NinjaScript Addon.

                Note that when identifying an issue, it is extremely important to have extremely simple test scripts and very simple steps to reproduce that only have the bare minimum code necessary to reproduce the behavior without any other code and do not require specific market conditions to reproduce (unless the issue is with specific market conditions).

                I look forward to further assisting.
                <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


                  #98
                  Sending email regarding the Simple Strat
                  Thanks

                  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