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

Working with different dataseries

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

    Working with different dataseries

    Hello,

    I´m working with different dataseries in NT7 and now when transcribing to NT8 there appear questions (that should not be honestly) and so I have now one accurate question please:

    when a script-strategy with COBCtrue is enabled eg in a 1000 Tick Chart and added dataseries1 is 5 Range and the entrycondition of the 5 Range dataseries is filled and the 5 Range bar is closed, but the 1000 TickChart is not closed yet, is then an entry? Or do we need also the dataseries0 to be closed?

    Example: when a simple conditon would be if (Closes[0][0]<Opens[0][0]) || Closes[1][0] < Opens[1][0]) then entryshort...
    and Closes[1][0] < Opens[1][0] already true but Closes[0][0]<Opens[0][0] is not true from existing and closed bars (but need not to be true because of "OR(||)") is the entry filled as soon as Closes[1][0] < Opens[1][0] is closed and true or only with "next close" of dataseries[0].

    When I run charts side by side in my opinion the entry is only with close of dataseries0 it seems. If so then one would need to run the script COBCfalse or having conditions of datasreies1 in a seperate script, no? Or is another solution please?

    I´m confused now about this.

    Thank you!
    Tony
    Last edited by tonynt; 02-18-2019, 12:20 PM. Reason: clearifying, translation error

    #2
    Hello tonynt,

    Thank you for the post.

    When converting syntax from NT7 to NT8 you will be presented with differences so I would expect that you will encounter some differences or questions surrounding your code, this is normal as a lot has been changed. You can find a list of changes in the code-breaking changes guide which can assist: https://ninjatrader.com/support/help...ng_changes.htm

    Regarding your example you provided, there are not enough details provided for me to accurately answer this question. From what I can gather it sounds like the answer will potentially be yes there will be an entry, however, this is a good question for you to just test in both platforms to observe what the outcome was. Is this what you are currently doing and seeing a difference in results or is this a theoretical question?

    If this something you are currently seeing when comparing your scripts can you instead provide a specific syntax example that demonstrates the difference you are seeing clearly? As an example, creating a test script in NT7 that submits an order once in the way you are asking about and allows it to fill, then doing the same test in NT8. If this type of test produces a difference you could attach both test scripts along with the details about the observation you made and steps to see the difference. We could further address the question with all variables present at that point. If this was otherwise just a question about what could happen, I would suggest to just test that situation on your end and observe the outcome to know what the result was.


    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    30 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    943 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    9 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Working...
    X