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 hazylizard, Today, 08:38 AM
        2 responses
        8 views
        0 likes
        Last Post hazylizard  
        Started by geddyisodin, Today, 05:20 AM
        2 responses
        17 views
        0 likes
        Last Post geddyisodin  
        Started by Max238, Today, 01:28 AM
        5 responses
        47 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by giulyko00, Yesterday, 12:03 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by habeebft, Today, 07:27 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Working...
        X