Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD and IDataSeries

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

    MACD and IDataSeries

    I am new to NinjaTrader and I have questions about time periods when programing for the MACD.

    How would I create the code that two different time periods "IDataSeries" in a calculation? For example:


    3 min - MACD (12, 26, 9), 1 bar ago > 15 min - MACD (12, 26, 9), 1 bar ago


    Is this possible in the Strategy Wizard? If not, how would I correctly code it for use in backtesting and automated trading?

    Thanks!

    #2
    Hello ArmKnuckle,

    Thank you for your inquiry and welcome to the NinjaTrader Support Forum!

    It is not possible to add additional DataSeries through the Strategy Wizard.

    I would suggest reading this entry in the NinjaTrader help guide for more information about working with multi-time frame & instruments: http://ninjatrader.com/support/helpG...nstruments.htm

    The most relevant sections to read over would be "Adding Additional Bars Object to NinjaScript" and "Using Bars Objects as Input to Indicator Methods".

    The help guide also has an Educational Resources section that contain valuable resources for learning basic through intermediate skills in building custom indicators and strategies within NinjaTrader: http://ninjatrader.com/support/helpG..._resources.htm

    The Reference Samples section of our support forum also provides valuable samples of code as well: http://ninjatrader.com/support/forum...ead.php?t=3220

    Please let me know if I can be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jclose, Today, 09:37 PM
    0 responses
    4 views
    0 likes
    Last Post jclose
    by jclose
     
    Started by WeyldFalcon, 08-07-2020, 06:13 AM
    10 responses
    1,413 views
    0 likes
    Last Post Traderontheroad  
    Started by firefoxforum12, Today, 08:53 PM
    0 responses
    10 views
    0 likes
    Last Post firefoxforum12  
    Started by stafe, Today, 08:34 PM
    0 responses
    10 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by sastrades, 01-31-2024, 10:19 PM
    11 responses
    169 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X