Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

trade by market with several instruments

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

    trade by market with several instruments

    Dear friends.
    I want to buy eur/usd by market, and buy gbp/usd by market, and may be some other instruments on the same bar. How can I do that? I find on a help file sample of code for Litim orders. EnterLongLimit(1, true, 1, Lows[1][0], "AAPL Order");
    But I need market execution for 3-4 several instrument at the same bar.

    #2
    Daglas,

    To submit market orders use:
    EnterLong();
    EnterShort();

    Market orders don't change the timing of orders placed historically or in a backtest. Conditions are evaluated on bar close and submitted to the next bar following the condition.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Daglas,

      To submit market orders use:
      EnterLong();
      EnterShort();
      But how can I submit market orders on several instruments in one multi currncy strategy?
      I use EnterLong();/EnterShort(); for one instrument, but how I can sell (for example)
      usd/jpy, usd/chf, usd/cad into one bar into one strategy?
      For example
      if (a>b)
      {
      //sell , usd/chf,
      //sell usd/cad
      //sell usd/jpy


      }

      Comment


        #4
        You need the overload that allows you to place orders to a specific BarsInProgress. Then submit to series 0, 1, 2, etc.

        EnterLong(int barsInProgressIndex, int quantity, string signalName)

        Last edited by NinjaTrader_RyanM1; 04-04-2011, 01:37 PM.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        318 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X