Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Two Symbols execution

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

    Two Symbols execution

    Hello !!! wood some one help me on dual symbol execution
    i add data Add("",PeriodType.Minute, 10);
    but how do i access data and execute second symbol from second data ?

    #2
    Hello GainForex,

    Thank you for your inquiry.

    I would suggest reading over the help guide at this link for detailed information about working with multi-time frame & instruments: http://ninjatrader.com/support/helpG...nstruments.htm

    The relevant sections would be "Accessing the Price Data in a Multi-Bars NinjaScript" and "Entering, Exiting and Retrieving Position Information".

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      ok how do i EnterLong("Buy", Lot) on second symbol ?

      Comment


        #4
        Hello,

        There are two ways you can do this. Here's an example for both:
        Code:
        // using BarsInProgress
        if (BarsInProgress == 1)
             EnterLong(Lot, "Buy");
        
        // using the EnterLong(int barsInProgressIndex, int quantity, string signalName) overload
        EnterLong(1, Lot, "Buy");
        Please take a look at the NinjaTrader help guide at this link for further information about using EnterLong(): http://ninjatrader.com/support/helpG...?enterlong.htm

        I would suggest reading over the help guide at this link for detailed information about working with multi-time frame & instruments: http://ninjatrader.com/support/helpG...nstruments.htm

        The relevant section for this would be "Entering, Exiting and Retrieving Position Information".
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        86 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X