Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with Simulation Engine

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

    #16
    Originally posted by Radical View Post
    sledge -

    This may not be an acceptable solution, but have you tried restarting Ninja?

    No!?

    It was Sunday at Noon when I tried to run simulation feed. Only my 24/7 charts worked. CME ETH was not in effect, and therefore nothing happened.

    It's not my issue that NT locks out simulation feed (SIMULATION is the key word) to session template hours.

    It is a simulation. IE of your session templates also.

    Opening a new workspace after CME ETH hours in effect tonight would have worked in simulation mode.

    But I'm busy connecting live and recoding overnight data to fill up my hard drive.

    Comment


      #17
      Originally posted by sledge View Post
      No!?

      It was Sunday at Noon when I tried to run simulation feed. Only my 24/7 charts worked. CME ETH was not in effect, and therefore nothing happened.

      It's not my issue that NT locks out simulation feed (SIMULATION is the key word) to session template hours.

      It is a simulation. IE of your session templates also.

      Opening a new workspace after CME ETH hours in effect tonight would have worked in simulation mode.

      But I'm busy connecting live and recoding overnight data to fill up my hard drive.
      My mistake, for some reason I thought you said that the ETH-template charts WERE getting data, and therefore the template was not the issue.

      Comment


        #18
        Originally posted by Radical View Post
        My mistake, for some reason I thought you said that the ETH-template charts WERE getting data, and therefore the template was not the issue.
        I can see the frustrations of 'new' people trying to run "simulation mode" to test crossovers and get nothing.

        But I can also see the testing of 'session templates' to get in the way.

        catch22 perhaps.

        Maybe an "ignore session templates" options for simulation mode is necessary in the GUI. I surely had no reason to expect that 4 out of 20 charts worked over the weekend in simulator.

        Comment


          #19
          Turns out opening a new workspace wasn't the solution to my problem afterall, because now I'm having it again. I was able to connect to the simulated data feed for a few days just fine; charts and strategies worked as expected. Now I'm back to the same problem. I can manually execute orders from the Control Center, SuperDOM, and Chart Trader. I'm getting simulated Level II data just fine. Even though Chart Trader works fine, nothing gets plotted, and nothing gets fed to the strategies. One of my strategies is pretty much a one-liner: on bar close, print the current date/time to the output window. There's no bar close event to trigger it. I'm using a 3-second chart, so it should trigger. Strategies are enabled and green Worked just fine all day yesterday; suddenly it stopped for no apparent reason I've been able to identify (I didn't change anything). Session is set to 24/7. Tried opening new workspaces a bunch of times.

          I created a new strategy with the following code:

          protected override void Initialize()
          {
          CalculateOnBarClose =
          true;

          Print(
          "Initialized: " + DateTime.Now.ToString());
          }
          ///<summary>
          /// Called on each bar update event (incoming tick)
          ///</summary>
          protected override void OnBarUpdate()
          {
          Print(
          "Bar Closed: " + DateTime.Now.ToString());
          }


          I ran it once: initialized just fine, no bar close. Just for fun, I disabled, re-enabled, and CHANGED NOTHING. Suddenly I'm getting bar closes again. Still nothing plotting if I bring up a new chart.


          Doesn't seem like it should be this complicated...
          Last edited by bbeville; 09-02-2012, 01:36 PM.

          Comment


            #20
            Originally posted by bbeville View Post
            Turns out opening a new workspace wasn't the solution to my problem afterall, because now I'm having it again. I was able to connect to the simulated data feed for a few days just fine; charts and strategies worked as expected. Now I'm back to the same problem. I can manually execute orders from the Control Center, SuperDOM, and Chart Trader. I'm getting simulated Level II data just fine. Even though Chart Trader works fine, nothing gets plotted, and nothing gets fed to the strategies. One of my strategies is pretty much a one-liner: on bar close, print the current date/time to the output window. There's no bar close event to trigger it. I'm using a 3-second chart, so it should trigger. Strategies are enabled and green Worked just fine all day yesterday; suddenly it stopped for no apparent reason I've been able to identify (I didn't change anything). Session is set to 24/7. Tried opening new workspaces a bunch of times.

            Doesn't seem like it should be this complicated...
            Have you restarted NT and/or rebooted your PC since yesterday and even since the problem started? (just in case).

            Comment


              #21
              Originally posted by sledge View Post
              Have you restarted NT and/or rebooted your PC since yesterday and even since the problem started? (just in case).
              Yup.... Tried that several times...

              Comment


                #22
                Originally posted by bbeville View Post
                Yup.... Tried that several times...
                This is a wild guess - what is your Charts End Date? 9/1/2012?

                Right Click -> Data Series -> Data -> End Date.

                Comment


                  #23
                  That was a really good idea; hadn't thought of that... Exciting for about half a second, but no: 9/2/2012...

                  While I was there, I did notice something peculiar.

                  I have two strategies. The first one only has the code to print the data and time as I showed in my earlier post (I updated my post about the time of your first reply; not sure if you saw that). That's the one that was initializing but not updating, then suddenly started updating after I disabled/re-enabled it. Been working fine since. I left the minimum bars required set at 20 (default).

                  Then I've got my second strategy, the one that I'm actually trying to debug. I put in just the code from the above strategy and commented everything else out. Initialized just fine, but no updates. I checked the dates like you suggested, and that was fine, but I changed the min bars required to 1 (previously set at default 20), and suddenly it started working. So first strategy worked just fine with min bars set at 20; the second one started working after I changed the min bars from 20 to 1. Just for fun, I changed the second strategy min bars back to 20, and it works.

                  Pulled up a new chart (date 9/2/2012) and randomly started playing with the settings. The global template is set to session default of 24/7, but I've been manually setting each item to 24/7 just in case. Never made a difference before, but now my chart works...

                  It's really screwy... It's working now, but the solutions aren't consistent with each other... Last time all it took was creating a new workspace...

                  Thanks for your suggestions, by the way. I really appreciate it.

                  Comment


                    #24
                    Glad you found it.

                    Definitely would have been hard to reproduce on this end without your exact setup.

                    I've noticed sometimes my charts get "lost" and don't update the end date properly in Market Replay.

                    And sometimes the strategies go funny after so many enabled/disabled that restarting is a good idea.

                    Good luck!


                    Originally posted by bbeville View Post
                    That was a really good idea; hadn't thought of that... Exciting for about half a second, but no: 9/2/2012...

                    While I was there, I did notice something peculiar.

                    I have two strategies. The first one only has the code to print the data and time as I showed in my earlier post (I updated my post about the time of your first reply; not sure if you saw that). That's the one that was initializing but not updating, then suddenly started updating after I disabled/re-enabled it. Been working fine since. I left the minimum bars required set at 20 (default).

                    Then I've got my second strategy, the one that I'm actually trying to debug. I put in just the code from the above strategy and commented everything else out. Initialized just fine, but no updates. I checked the dates like you suggested, and that was fine, but I changed the min bars required to 1 (previously set at default 20), and suddenly it started working. So first strategy worked just fine with min bars set at 20; the second one started working after I changed the min bars from 20 to 1. Just for fun, I changed the second strategy min bars back to 20, and it works.

                    Pulled up a new chart (date 9/2/2012) and randomly started playing with the settings. The global template is set to session default of 24/7, but I've been manually setting each item to 24/7 just in case. Never made a difference before, but now my chart works...

                    It's really screwy... It's working now, but the solutions aren't consistent with each other... Last time all it took was creating a new workspace...

                    Thanks for your suggestions, by the way. I really appreciate it.

                    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
                    574 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X