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 GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,279 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    51 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Working...
    X