Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Arrow Line Missing Anchor Properties?

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

    Arrow Line Missing Anchor Properties?

    Hello,

    Why aren't the anchor properties public? Am I missing something? Perhaps this was a bug and has been patched in the current version of NT8. The normal lines have the start and end anchors accessible.

    Click image for larger version

Name:	qHxqTe3.png
Views:	74
Size:	26.1 KB
ID:	1214683

    Thanks
    Unsuitable
    NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

    #2
    Hello Unsuitable,

    The Line tools all use the Anchors collection. That wont be in the intellesense because its part of the base line which arrow line inherits from.

    Code:
    ArrowLine l;
    l.Anchors.First()
    Code:
    ArrowLine l;
    foreach(ChartAnchor anchor in l.Anchors)
    {
    }
    You can still use the base line StartAnchor and EndAnchor as well, its just not going to populate in intellesense. Please see the Line drawing objects code if you wanted to see what properties the base Line type has and also what each individual tool has for public properties.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      I tried entering start anchor and end anchor and it works. I would think since it inherits those properties it would pop up in intellesense. I guess not, thx for the confirmation.
      Unsuitable
      NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ETFVoyageur, Today, 07:55 PM
      0 responses
      6 views
      0 likes
      Last Post ETFVoyageur  
      Started by janio973, Today, 07:24 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by aligator, 01-06-2022, 12:14 PM
      4 responses
      242 views
      0 likes
      Last Post john_44573  
      Started by reynoldsn, Today, 05:56 PM
      0 responses
      13 views
      0 likes
      Last Post reynoldsn  
      Started by bortz, 11-06-2023, 08:04 AM
      51 responses
      1,996 views
      0 likes
      Last Post aligator  
      Working...
      X