Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

When is Trading Signal Triggered?

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

    When is Trading Signal Triggered?

    Hi All,

    coming from Wealth-Lab I have no clue about NT but I hope I can soon recode my WL scripts and use NT for life intraday trading which is not possible in WL as there is not trigger on the ghost bar.

    Am I right that NT can trigger orders per tick (or wait till a bar is finished and fire off then, if preferred)?

    When tick based, how is an indicator calculated then, e.g. a SMA(5) based on close on a 5min time frame: the first 4 values are taken from the previous 4 bars, and with every new tick my SMA(5) is recalculated? So, if after 2 mins after the last bar my SMA(5) would reach its for my setup relevant level, the order would be triggered right now and would not be delayed for further 3 minutes until the actual bar gets finished?

    Thanks!

    #2
    That is correct. You can trigger orders per tick or at the end of the bar. Whichever you prefer.

    In your SMA example that is correct. It will take the previous 4 bars and the latest tick data as it comes in for calculations.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your quick reply!

      How would you approach backtesting then? If I would use 5 min bars, my SMA(5) example would then be calculated on the close of 5 bars (including last bar).

      Could I somehow simulate intraday behavior by lets say using 1 min bars. Then calculate the last four "5 minute" bars (I guess I somehow can compress/decompress bar intervals or use different time frames in NT?) as if they would been based on 5 mins. And then use the next 1 min bars to simulate near intraday behavior, hmm? Loop thru the five one minute bars?

      Or can historical tick data also used for backtesting as life data, meaning setting 5min interval but trigger signals on ticks within the last (ghost) bar?

      Comment


        #4
        BillCh,

        Normally you do not get the intrabar granularity when backtesting simply because the information is not available. You can mimic the intrabar though through this example: http://www.ninjatrader-support2.com/...ead.php?t=6652
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by benmarkal, Yesterday, 12:52 PM
        3 responses
        22 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        17 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        11 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        6 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        244 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Working...
        X