Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtmStrategyEntryOrderStatus

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

    GetAtmStrategyEntryOrderStatus

    Good day
    I'm getting GetAtmStrategyEntryOrderStatus errors :

    21/08/2015 11:13:56;Strategy;GetAtmStrategyEntryOrderStatus() method error: orderId '38a398124f8042eb9789b83e55c48dfe' does not exist;
    21/08/2015 11:13:56;Strategy;GetAtmStrategyPositionQuantity() method error: AtmStrategyId 'bf097036ebfa42a4832c4a912776284d' does not exist;

    - 17000 lines of them.
    I'm running a Strategy in sim using SharkIndicators BloodHound & Raven
    but I also tried a manual trade to try & see where the error was. Manual trades work fine.
    I flattened everything and the errors ended.
    I tried searching the forum but got the message:
    "The following words are either very common, too long, or too short and were not included in your search: Strategy;GetAtmStrategyEntryOrderStatus()"
    Last edited by sezor; 08-21-2015, 03:57 AM.

    #2
    Hello sezor,

    The NinjaScript Strategy is trying to find an open position with an Atm Strategy applied and not able to find this.

    Have you checked with Shark Indicators for assistance with their script?

    The script is going to need an Atm Strategy to already be setup within NinjaTrader and will need to have a particular name. (You will need to check with Shark Indicators for the setup and name of this Atm Strategy)

    May I confirm that this Atm Strategy has been setup correctly?


    If that is setup right, then likely its been run and then restarted (disabled and re-enabled) and since Atm Strategy methods do not work historically, its unable to create the Atm object. This just means that you should remove the instance of the strategy (remove from the chart its running on or from the strategies tab if its running from there) and start a new instance.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea
      I'll do some tests ..

      Comment


        #4
        Are there any characters forbidden in Atm names
        in strategies?
        In the log is
        "Strategy template name does not exist 'q3-ts-$12'"
        but I used this template this morning on a manual
        trade with no problems.
        And have just done so again, with no problems.
        Last edited by sezor; 08-21-2015, 08:51 AM.

        Comment


          #5
          Hi sezor,

          The name of the strategy is a string and any characters should be ok (except for the escape character \ ). I'm finding that this works fine on my end using this name.

          Attached is a quick test I made by copying the SampleAtmStrategy script and changing the template name.
          Attached Files
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Thanks Chelsea
            I'm still doing some tests ..
            I switched to an atm named q1-10-12 and a manual trade via BloodHound & Raven worked fine,
            apart from
            Strategy;GetAtmStrategyEntryOrderStatus() method error: orderId '38a398124f8042eb9789b83e55c48dfe' does not exist;
            Strategy;GetAtmStrategyPositionQuantity() method error: AtmStrategyId 'bf097036ebfa42a4832c4a912776284d' does not exist;
            errors when closing it manually.
            There were also the errors
            21/08/2015 18:16:53|3|128|GetAtmStrategyStopTargetStatus() method error: OrderName 'STOP2' is invalid
            21/08/2015 18:16:53|3|128|GetAtmStrategyStopTargetStatus() method error: OrderName 'TARGET2' is invalid
            21/08/2015 18:16:53|3|128|GetAtmStrategyStopTargetStatus() method error: OrderName 'STOP3' is invalid
            21/08/2015 18:16:53|3|128|GetAtmStrategyStopTargetStatus() method error: OrderName 'TARGET3' is invalid
            - not sure what that points to.
            But it sure would be nice to get this working okay.
            Last edited by sezor; 08-21-2015, 10:49 AM.

            Comment


              #7
              Hello sezor,

              May I confirm that you have tried talking with Shark Indicators for assistance with this?

              May I confirm that you have added a new instance of the script and the errors appeared when you added a new instance?
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Briefly

                1. No
                I'm trying to find my way between platform, Bloodhound, strategy supplier - and user.

                2. Yes.
                I haven't the time to do the tests which suggest themselves.
                It does seem though that 'q1-10-12' works but 'q3-ts-$12' doesn't.

                Comment


                  #9
                  Hello sezor,

                  This code was written by SharkIndicators and was not written by NinjaTrader. The person who has written the script is going to know how the script works and any issues that may result when using the script due to the code within the script.

                  I can give you some general ideas about what could be wrong, however, these errors are coming from code within the script which we will not be able to view. (The script is likely a protected dll which hides the code)
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Shark Indicators say

                    "Certain characters cannot be used in Raven ATM Stratagies.
                    The Dollar Sign ($) is one of them. This is most likely a
                    limitation in the Windows operating system naming
                    convention.
                    Try renaming your strategies so they do not include special
                    characters (For example ( ) ! @ # $ % ^ & * < > , . ? / : "
                    ; ' { } [ ] \ | just to name most of them.) "

                    I haven't tested this because the strategy which gave the
                    errors was on trial and the trial has expired. But I expect
                    it to solve the problem.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by ScottW, Today, 06:09 PM
                    0 responses
                    2 views
                    0 likes
                    Last Post ScottW
                    by ScottW
                     
                    Started by Board game geek, 10-29-2023, 12:00 PM
                    14 responses
                    244 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Waxavi, 04-19-2024, 02:10 AM
                    4 responses
                    56 views
                    0 likes
                    Last Post sonia0101  
                    Started by cmtjoancolmenero, Today, 03:58 PM
                    0 responses
                    9 views
                    0 likes
                    Last Post cmtjoancolmenero  
                    Started by Segwin, 05-07-2018, 02:15 PM
                    11 responses
                    1,779 views
                    0 likes
                    Last Post aligator  
                    Working...
                    X