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 Ndakotan1313, 03-14-2024, 05:02 PM
        2 responses
        58 views
        0 likes
        Last Post blaise_code  
        Started by claxxical, 05-30-2017, 12:30 PM
        37 responses
        4,454 views
        0 likes
        Last Post Padan
        by Padan
         
        Started by SugarDefwebsite, Today, 02:18 AM
        0 responses
        4 views
        0 likes
        Last Post SugarDefwebsite  
        Started by usglucofreeze, Today, 01:19 AM
        0 responses
        7 views
        0 likes
        Last Post usglucofreeze  
        Started by f.saeidi, Today, 01:12 AM
        0 responses
        14 views
        0 likes
        Last Post f.saeidi  
        Working...
        X