Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can I switch to different time frame ?

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

    Can I switch to different time frame ?

    I am currently trading with Amibroker where I can change current time frame in script with functionTimeFrameSet() and back with TimeFrameRestore() as follows:

    The TimeFrameSet replaces current price/volume arrays: open, high, low, close, volume with time-compressed bars of specified interval once you switched to a different time frame all calculations and built-in indicators operate on selected time frame. To get back to original interval call TimeFrameRestore() function. Before calling TimeFrameSet again in the same formula with different interval you have to restore original time frame first using TimeFrameRestore.

    Is there any posibility to do it with Ninja Script ?

    Svata

    #2
    Hi Svata, while there's no inbuilt property to switch the time frame in NinjaScript, you can certainly add other bars objects to your script and then decide which series to calculate on as needed - here's the core framework explained :

    Comment


      #3
      NinjaTrader_Bertrand,

      Thank you for reply. If I understand well, with Ninja Script I can do multi time or symbol frame analysis straightforward.

      But I first need to learn programing in C# and then translate my Amibroker scripts I have developed last 5+ years to Ninja Script.

      Svata

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 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
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X