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 usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    21 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X