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

Combining 2 multi time frame indicators

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

    Combining 2 multi time frame indicators

    Having difficulties adding in delta momentum from the user app share (https://ninjatraderecosystem.com/use...ntum-for-nt-8/) into my multi timeframe indicator.
    My indicator processes its data on 500 tick barsinprogress 1, ignores chart its attached to or barsinprogress 0

    I'm trying to attach delta momentum as a Series<double>, I already have other non multi timeframe indicators such as stochastics and volume referenced and stored as Series<double> and the indicator works with no problem till I try adding in a multi timeframe indicator such as delta mometum. Tried everything, I either get array error or indicator didn't load the additional data, out of bounds...

    Is there an example of adding 2 multi timeframe indicators into 1?
    Thanks

    #2
    Hello kluwer420,

    Thanks for your post.

    We do not have any reference samples that specifically demonstrate using two multi-timeframe indicators within a single custom indicator.

    That said, are you seeing compile errors appear in the NinjaScript Editor window or error messages in the Log tab of the Control Center when trying to use the irDeltaMomentum indicator in your script?

    If so, what exactly do the errors report?

    Something you could consider is using the Strategy Builder to create a test strategy that uses the irDeltaMomentum indicator. You would set up your Conditions or Actions in the Strategy Builder using this indicator and click the 'View code' button to see the generated syntax.

    Strategy Builder Conditions and Actions: https://ninjatrader.com/support/help...gy_builder.htm

    Working with Multi-Timeframe / Multi-Instrument NinjaScripts: https://ninjatrader.com/support/help...nstruments.htm

    I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    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
    9 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    45 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    9 views
    0 likes
    Last Post port119
    by port119
     
    Working...
    X