• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PointLineLocation Enums

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

    PointLineLocation Enums

    This is pretty basic query, but i am not getting its one particular use.
    MathHelper.PointLineLocation enum has three enum values. I have posted a snap for my query and i would like that some one from NT team assign correct PointLineLocation for these points. I have given from what i understood, but i am not clear from numerous snippest instance where

    Code:
    case Condition.Greater:  return pointLocation == MathHelper.PointLineLocation.LeftOrAbove;
    is used. Above seems me confusing how/when Condition.Greater will be satisfied by "Left" word in LeftOrAbove enum value ? If "Left" is to represent time comparision then how it can be under Condition.Greater ?

    See my assignment , and correct if any mistake and please give explanation for above.

    1 and 10 -> DirectlyOnLine
    2,3,4 and 6 -> LeftOrAbove
    5,7,8 and 9 -> RightOrBelow
    Attached Files
    Last edited by devdas; 10-22-2016, 01:04 AM.

    #2
    Hello devdas,

    Thank you for your post.

    From what namespace are you accessing MathHelper.PointLineLocation?
    Is this is an enum you have located in a namespace or one you are attempting to create?
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      DrawingTools.

      I was looking at Alert codes.Though i managed to get that work , without understanding that particular point, but still it would be helpful if you explain that a bit.

      Comment


        #4
        Originally posted by devdas View Post
        DrawingTools.

        I was looking at Alert codes.Though i managed to get that work , without understanding that particular point, but still it would be helpful if you explain that a bit.
        Thank you for your response.

        Can you provide a bit more context on this matter?
        There is no MathHelper method called PointLineLocation. With that said, what are you trying to do and what code are you using?
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          If you are using NinjaTrader.NinjaScript.DrawingTools.MathHelper.Po intLineLocation, this is not intended for access and may have unexpected behavior as it is not documented.

          What are you trying to achieve by accessing this if you are accessing this?
          Patrick H.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_PatrickH View Post
            If you are using NinjaTrader.NinjaScript.DrawingTools.MathHelper.Po intLineLocation, this is not intended for access and may have unexpected behavior as it is not documented.

            What are you trying to achieve by accessing this if you are accessing this?
            Hello Patrick,

            Thanx for your concern, sorry i could not reply.

            Fortunately i have resolved all stuck issue and completed my work. As being developing a commercial product, i could not disclose much on that.

            Thanx for your support.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by uday12, Today, 02:36 PM
            0 responses
            0 views
            0 likes
            Last Post uday12
            by uday12
             
            Started by swcooke, Today, 02:01 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by guidoisot, Today, 01:11 PM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_PatrickG  
            Started by martyn73, Today, 12:26 PM
            0 responses
            11 views
            0 likes
            Last Post martyn73  
            Started by uday12, Today, 09:45 AM
            0 responses
            9 views
            0 likes
            Last Post uday12
            by uday12
             
            Working...
            X