Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Property type

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

    Property type


    Hi All,

    Attached is a stripped down indicator illustrating a custom type with an indicator property of type List<TestType>

    Everything is working fine except the stroke is the same for each element in the list. Its like it copies the reference from the previous stroke and is adding the same stroke to each element in the list.

    In the graphic below the "First" was created with a color of Green. The "Second" value was created as red and it will change the first value to red as well. All instances will have the same stroke value.

    I feel its something simple I am overlooking and I'm hoping another pair of eyes on this will reveal a simple solution.

    Thank you !

    Test Indicator.zip
    Click image for larger version

Name:	20220618_100026_WS2.png
Views:	213
Size:	15.4 KB
ID:	1205630
    Last edited by Bidder; 06-18-2022, 10:10 AM. Reason: Add graphic

    #2
    Hello Bidder,

    Try using the code from the SampleIndicatorTypeConverter from the regions 'Use Case #5: Display a custom collection/list with user defined values at run time' as a base. Adapt the PercentWrapper class to your TestType class.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X