Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Interpreting Log Report

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

    Interpreting Log Report

    Hello,

    I'm attempting to interpret the log report. Attached are a couple of the error statements. My Ninjascript is also attached.

    Please help me with any changes / deletions / etc. I need to fix this problem.
    PHP Code:
    Error on calling 'OnBarUpdate' method for strategy 'A01_HMA_Stoch_v02'Index was outside the bounds of the array.
    12/6/2008 10:46:24 PM Strategy GetAtmStrategyEntryOrderStatus() method errororderId '8acc1f9108314fb09cdc5e645f3303e3' does not exist
    12
    /6/2008 10:46:21 PM Order Order='7b0ecb3a92584b9181ae81b79b0dac19/Replay101' Name='Entry' New State=Working Instrument='TF 12-08' Action=Sell Limit price=
    12/6/2008 10:46:21 PM Order Order='7b0ecb3a92584b9181ae81b79b0dac19/Replay101' Name='Entry' New State=Accepted Instrument='TF 12-08' Action=Sell Limit price
    12
    /6/2008 10:46:21 PM Order Order='7b0ecb3a92584b9181ae81b79b0dac19/Replay101' Name='Entry' New State=PendingSubmit Instrument='TF 12-08' Action=Sell Limit
    12
    /6/2008 10:46:21 PM Strategy GetAtmStrategyStopTargetStatus() method errorAtmStrategyId '1c1512b88da1462cbc64bd82984256d2' does not exist or is already in terminated state 
    I'm also having trouble with the proper syntax when the order is not yet filled to have the limit order relocated to the new location - "longtrigger3", etc.

    Regards,
    Kirk
    Attached Files
    Last edited by zeller4; 12-06-2008, 10:03 PM.

    #2
    The first error means that you are passing in an index value into an array/collection that is outside the bounds of that array. For example, if you have an array that countains 10 elements and you try to access the 11th, this would give you this error.

    The other error means that that the id value you are passing does not exist (you never created an ATM strategy with that id or the strategy is already terminated). This is a logic issue in your code that you will have to work out.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    9 responses
    35 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    21 views
    0 likes
    Last Post DayTradingDEMON  
    Started by geddyisodin, Yesterday, 05:20 AM
    9 responses
    50 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by George21, Today, 10:07 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X