• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Indicators input for another indicator

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

    Multiple Indicators input for another indicator

    Hi,

    I am trying to make a indicator based on multiple other indicators input.

    A this point, I hard code the indicators I need (for ex CCI/RSI/...).

    I would like the user to chose dynamically the list of indicators input (periods, fast/low results etc..) like the data series input of any ninja indicator.

    I use something like :

    Code:
    ..
    private IndicatorBase inputIndicator1;
    ..
    
    [XmlIgnore()]
    [Description("Indicator 1 input data")]
    [Category("Parameters")]
    [Gui.Design.DisplayName("Indicator 1")]
    public NinjaTrader.Indicator.IndicatorBase InputIndicator1 {
        get { return inputIndicator1; }
        set { inputIndicator1 = value; }
    }
    But... I need to serialize this for this to work.
    Is this possible ?
    If no, will it be possible with version 8 ?

    Thank you.

    W.

    #2
    Hi Wingman,

    Thank you for posting.

    While you wouldn't use a Serialize for the Indicator you would instead create a ENUM.
    Example:
    Code:
    public enum MASelection
    {
         EMA,
         HMA,
         WMA,
         SMA,
    }
    Another good example is the Moving Average Cross Builder indicator from our support forum that shows how create the ENUM and how it works when calling variables.
    http://www.ninjatrader.com/support/f...tid=-1&lpage=1

    Please let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thank you Cal.

      It seems my question was not clear.

      The enum allows to hard code the indicators. This is precisely what I would like to avoid.

      I would like the user to choose the input series. like it is available in any Ninja indicator when opening the Indicators parameters data section input series.

      Is this possible ?

      Thank you,

      W.

      Comment


        #4
        Hi Wingman,

        Thank you for the clarification.

        This would be possible to do however this would be unsupported by NinjaTrader.

        I will keep this forum open for any of our users that have experience in this matter and would like to comment.

        Please let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NinjaCustomer, Today, 01:01 AM
        0 responses
        3 views
        0 likes
        Last Post NinjaCustomer  
        Started by mohdqallaf, Today, 12:55 AM
        0 responses
        3 views
        0 likes
        Last Post mohdqallaf  
        Started by dvcpro4, Yesterday, 07:08 PM
        2 responses
        25 views
        0 likes
        Last Post NT-Roland  
        Started by chrismcdermut, Yesterday, 01:46 PM
        3 responses
        19 views
        0 likes
        Last Post MojoJojo  
        Started by Bricolico, Yesterday, 09:28 PM
        0 responses
        5 views
        0 likes
        Last Post Bricolico  
        Working...
        X