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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Working...
      X