Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Live Strategy on Multiple Instruments / Trades Missing

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

    Live Strategy on Multiple Instruments / Trades Missing

    Hey,
    I am using a strategy (fully automated) that is sending orders on 7 instuments. My initialize looks like this:

    protected override void Initialize()
    {
    Add("6S 12-11", PeriodType.Minute, 1); //1
    Add("6S 12-11", PeriodType.Minute, 5); //2

    Add("6E 12-11", PeriodType.Minute, 1); //3
    Add("6E 12-11", PeriodType.Minute, 5); //4

    Add("6B 12-11", PeriodType.Minute, 1); //5
    Add("6B 12-11", PeriodType.Minute, 5); //6

    Add("6C 12-11", PeriodType.Minute, 1); //7
    Add("6C 12-11", PeriodType.Minute, 15); //8

    Add("6J 12-11", PeriodType.Minute, 1); //9
    Add("6J 12-11", PeriodType.Minute, 15); //10

    Add("6B 12-11", PeriodType.Minute, 1); //11
    Add("6B 12-11", PeriodType.Minute, 15); //12

    Add("6A 12-11", PeriodType.Minute, 1); //13
    Add("6A 12-11", PeriodType.Minute, 10); //14

    EntriesPerDirection=1;
    CalculateOnBarClose = true;
    ExitOnClose = false;
    TraceOrders=true;
    Slippage=1;
    IncludeCommission = true;
    }

    All of my orders are market orders and look like this:
    if (BarsInProgress==8) {
    if (Condition == true)
    entryLong = EnterLong(7, 1, "LongEUR1");
    }
    This morning one Order executed on "6C 12-11" and targets were set fine (BarsInProgress Index 7 and 8). Now I see in the strategy backtest that another order should have been executed on "6J 12-11" in the afternoon but nothing happened in my live working strategy (BarsInProgress Index 9 and 10)! Not even an error message!
    Does anyone know what the problem is? Or any ideas how to find the bug?

    Thank you!
    Stitch

    #2
    Hi Stitch,

    Welcome to the NinjaTrader forums. Are there any messages related to the order? TraceOrders can help tell you if order is ignored or rejected. If there are no messages related to the order, you will need to debug your strategy in live mode. If you aren't able to track what your strategy should be doing in live operation, best is to simplify and track all values used in order placement through print statements and TraceOrders output. Help for using these tools is available here:


    There are discrepancies expected running a strategy real time compared to a backtest, so you should not rely on backtesting results as confirmation that a signal (should have) entered.
    Last edited by NinjaTrader_RyanM1; 10-10-2011, 02:39 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Today, 04:58 PM
    2 responses
    45 views
    0 likes
    Last Post loosek
    by loosek
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    49 views
    0 likes
    Last Post futtrader  
    Working...
    X