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 yertle, Yesterday, 08:38 AM
        7 responses
        28 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        21 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        5 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X