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:	220
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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    39 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X