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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        87 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        64 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X