Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X