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

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 an...


    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 GwFutures1988, Today, 02:48 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        6 responses
        28 views
        0 likes
        Last Post ScottWalsh  
        Started by frankthearm, Today, 09:08 AM
        10 responses
        36 views
        0 likes
        Last Post frankthearm  
        Started by mmenigma, Today, 02:22 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by NRITV, Today, 01:15 PM
        2 responses
        9 views
        0 likes
        Last Post NRITV
        by NRITV
         
        Working...
        X