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

Using 2 Data Sets/Time Ranges

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

    Using 2 Data Sets/Time Ranges

    Hello,

    (Newbie) (wizard view) (NT8)

    Background: When creating a new strategy using minute/8 for the default data series (which is needed for my indicator to function properly).

    If I create it with a basic 3 rule system:
    1. if ask (default data set) is above indicator price, and time (default data set) after input parameter start time, buy
    2. if ask (default data set) is below indicator price, sell
    3. if time (default data set) is after x input parameter time cutoff and pos.qty > 0, sell

    Everything works fine up to this point.

    4, Add another secondary data set for DJIA average, based on minute/1

    Still works fine

    Finally, add just a simple log rule if time (DJIA/1 data set) is > input parameter start and < input parameter end, log a txt message.

    Nothing from Rule 1 fires.

    change the log rule to use default data set, and works fine again.

    Any ideas what I am doing wrong, can only the default data set be used for time cals?

    #2
    Hello GrnGold,

    Do you see any errors in your log tab when enabling the strategy?

    If you’d like to send a copy of the strategy you’re running, I can take a look and see if anything jumps out.

    To export a NinjaScript from NinjaTrader 8 do the following:
    From the Control Center window select Tools -> Export -> NinjaScript...
    Click Add>Select the indicator>OK>Export.
    Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, Yesterday, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    192 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,234 views
    0 likes
    Last Post xiinteractive  
    Working...
    X