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

multi instrument, secondary data series orders

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

    multi instrument, secondary data series orders

    hi

    i have a multi instrument strategy (7 instruments)

    i'm running the strategy on a primary instrument by adding it to a chart and all my secondary instruments are different

    so:

    primary = audusd
    secondary 1 = nzdusd
    secondary 2 = eurusd
    secondary 3 = usdjpy
    and so on...

    one of my condition is, if profit on nzdusd is greater than X, exit the position.

    I am also printing my profits at the close of each bar (60 minutes bars) to the output window.

    today at 3pm my profit was for nzdusd was greater than X. then, at 4 pm and 5 pm and then 6 pm , 7pm, 8pm 9pm, my profit was greater than X. but the conditional exit did not happen until i disabled the strategy and then enabled the strategy. i waited until 9pm to do this. once i reenabled the strategy, the strategy during it's sync state fired the order for the "nzd profit greater than X" condition and successfully exited the position.

    any idea why this might happen?

    when a strategy is in realtime state, does it not have access to the data for loaded data series? clearly it must b/c it's printing out the profits correctly for the secondary data series. but i'm not sure why it did not fire an order to exit the condition without me having to "sync"

    my profit targets are conditional rather that SetProfit order types.

    thanks


    ---------
    update
    --------

    actually nvm, but i'll leave this thread open for the future.

    my condition is:

    if nzdusd profit is > than X

    i think at 3pm the profit was exactly X rather than greater than X

    it could just be a wild coincident that when I sync'd the positions again, it happend to be > than X.

    will get back in the future when other targets hit.
    Last edited by staycool3_a; 11-01-2018, 07:14 PM.

    #2
    Hello staycool3_a,
    Thanks for your post.

    Glad to hear you figured it out. Please let me know if you have any further questions.
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    834 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    10 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Working...
    X