Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multi dimention bool array

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

    multi dimention bool array

    i want to have a Bool dataseries with multi dimention for the following reasons
    1. Signal captured
    2. Signal processed

    This way, i can track the different actions captured per bar. i dont want to create multiple objects.Is there a way the myBoolSeries in the sample can be multi dimenstion.
    apprecite your help


    #region Variables
    private BoolSeries myBoolSeries; // Define a BoolSeries variable
    #endregion

    // Create a BoolSeries object and assign it to the variable
    protected override void Initialize()
    {
    myBoolSeries = new BoolSeries(this); // "this" refers to the indicator, or strategy
    // itself. This syncs the BoolSeries object
    // to historical data bars
    }

    #2
    There isn't a way to have a multi-dimensional dataseries. You could create your own muti dimensional list to achieve the same goals if you wish

    Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

    At the moment I am using one list to store one part of my data, and it's working perfectly in this format: Item ---------------- Joe Bloggs George Forman Peter Pan Now, I would like to add ano...


    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment


      #3
      Why not make it an integer with values of 0 1 2?

      Comment


        #4
        Originally posted by Baruch View Post
        Why not make it an integer with values of 0 1 2?
        I would use an IntSeries as well

        0 = no signal
        1 = signal captured
        2 = signal processed

        This should solve the problem.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        28 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        125 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        181 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        94 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        138 views
        0 likes
        Last Post cmoran13  
        Working...
        X