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 saltminer, Yesterday, 01:43 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by idude, Today, 05:06 AM
        0 responses
        8 views
        0 likes
        Last Post idude
        by idude
         
        Started by music_p13, 07-05-2025, 11:33 PM
        1 response
        29 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by gubbar924, 03-18-2018, 05:15 PM
        43 responses
        5,483 views
        0 likes
        Last Post ESMC377
        by ESMC377
         
        Started by siqalexcg, 06-30-2025, 08:06 PM
        1 response
        199 views
        0 likes
        Last Post Emma1
        by Emma1
         
        Working...
        X