Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

installed indicator as compiled assembly does not detect draw object

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

    installed indicator as compiled assembly does not detect draw object

    Hi
    I have an indicator working in NT8 build 8
    This indicator can detect several draw objects if added to the chart by end user : vertical line , rectangle and Dot .
    Those objects are used to direct the indicator to perform some specific action.
    All this works just fine in my computer ( windows 7 )
    I exported the indicator as compiled assembly
    I installed the compiled assembly in another windows 7 computer and another windows 8 computer and the indicator could not detect the draw object
    If install the indicator (source ) and compile it in another computer - the indicator does succeed to find the draw objects

    draw object is detected by a loop over all draw object in the chart





    Last edited by doron; 02-05-2016, 08:58 AM.

    #2
    Hello,

    Thank you for the post.

    I would be uncertain on what may be occurring with what you have provided. Are you getting any errors or do you have any other relevant information that may help?

    If not, Have you created a Sample that demonstrates this?

    If you can provide a sample with source code that directly shows this occurring, I could certainly look further into this. Outside of that I would not have any guesses on what may be occurring with the logic being used as it is currently unknown.

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      hi

      i prepared a "miniScript" that should demonstrate the problem . But i failed - i.e. with the miniscript it is working .

      So i have no idea why in my real indicator which detect the draw object in my computer
      does not detect it in other computer in which it was installed as compressed assembly .

      I found no errors

      so i have no idea how to proceed

      Comment


        #4
        Hello,

        If you have created a sample version that works, this would indicate a problem in the remaining code that was not put into the sample.

        Likely you don't have any actual Syntax errors but something is having an error during runtime.

        For this, all I could really suggest at this point would be to slowly migrate more code into the sample until you can reproduce the problem.

        You are at a point now where the problem does not exist in the sample, so it should only be a matter of time before you find the error while moving the additional logic over.

        Unfortunately this process may be very repetitive but this would be part of any developers process in finding an error that is in an unknown location.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          conversion of DrawObject to DrawingTool fail with compressed script

          Hi
          I succeeded to isolate the problem
          The problem is that the conversion of DrawObject to DrawingTool is working fine while the script is a "normally" compiled i.e. with code exposed .
          However when the script is compressed and installed in another computer as a compressed script the conversion fail i.e. it generate a null object.
          The command to convert I used are :


          if (DrawObjects[DotTag].GetType().Name == "Dot")
          {
          Print("DrawObjects of type Dot with Tag " + DotTag + " was found convert it to DrawingTool.Dot");
          if (DrawObjects[DotTag] != null) Print(" confirmation: draw object was found try to convert it to drawtool ");
          DrawingTools.DotMyDot = DrawObjects[DotTag] asDrawingTools.Dot;
          if ( MyDot == null ) MyDot = DrawObjects[DotTag] asDrawingTools.Dot;
          if (MyDot != null) { Print(" draw object of type Dot was converted to drawingtool of type dot , it is not null"); }
          if (MyDot == null)
          {
          Print(" conversion fail the converted drawobject Dot it null");
          return;
          }
          =========
          When I activated the script "normally" the results are :
          found dot with Tag : Dot 44
          DrawObjects of type Dot with Tag Dot 44 was found convert it to DrawingTool.Dot
          confirmation: draw object was found try to convert it to drawtool
          draw object of type Dot Dot was converted to drawingtool of type dot , it is not null
          ==========
          when I activated the compressed script ( in another computer) the results are :

          found dot with Tag : Dot 2
          DrawObjects of type Dot with Tag Dot 2 was found convert it to DrawingTool.Dot
          confirmation: draw object was found try to convert it to drawtool
          conversion fail the converted drawobject Dot it null
          attached script code as compressed and non compressed
          Attached Files
          Last edited by doron; 02-07-2016, 03:46 AM.

          Comment


            #6
            Hello,

            Thank you for isolating this.

            I do see the difference on my end when running from source versus running from a compiled assembly. This type of sample is exactly what we need to address questions like this related to your custom script.

            I will submit this sample to development for further review. if I have further details on this request I will reply back once I do.

            I look forward to being of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              hi


              Any progress ?

              Please give me the Problem_Id so that i will be able to refer to it in the future

              Comment


                #8
                Hello,

                Thank you for the reply.

                Yes I do have a tracking id for you: NTEIGHT-9372.

                Currently I see this is in with development for review but do not see a resolution at the moment.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  hi

                  any progress with solution ?

                  Comment


                    #10
                    Hello,

                    Currently there is no new status on this item, If I receive any updates that I can relay I will.

                    Please let me know if I may be of further assistance.
                    JesseNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by bortz, 11-06-2023, 08:04 AM
                    47 responses
                    1,607 views
                    0 likes
                    Last Post aligator  
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    9 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    19 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    15 views
                    0 likes
                    Last Post Javierw.ok  
                    Working...
                    X