Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detect Backup/Optimization/WalkForward/Real environments.

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

    Detect Backup/Optimization/WalkForward/Real environments.

    Hello:
    Is there a way to detect the different environments in which a script is working?

    I use MULTITMEFRAME for Optimization/WalkForward and a different approach in REAL TIME and I'd like to switch between these states without to recode my script.

    it would be very interesting to detect through code if the script is "WalkForwarding" or working in REAL TIME in order to enable/disable certain lines of code.
    Regards.

    #2
    Hello banteka,

    You can use the Historical property to find if the script is processing real time data.

    For example:

    if (!Historical)
    {
    // execute code
    }

    The "!" signifies not. This condition will trigger when the data is not historical.

    http://www.ninjatrader.com/support/h...historical.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much ChelseaB.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rhyminkevin, Today, 04:58 PM
      0 responses
      1 view
      0 likes
      Last Post rhyminkevin  
      Started by lightsun47, Today, 03:51 PM
      0 responses
      5 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      12 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      46 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Working...
      X