Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where is enum IndicatorMethod defined

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

    Where is enum IndicatorMethod defined

    I am modifying the indicator D3Spotter, and trying to add to it's indicator pull down list.
    It uses the enum IndicatorMethod to define a list of indicators to pick from like so,

    #region Variables
    private IndicatorMethod method;
    #endregion

    protected override void Initialize()
    switch (Method)
    {
    case IndicatorMethod.RSI:
    InitRSI(); //This Method adds Plots & Lines(not shown)
    Indicator = RSI(Period, 1);
    break;

    case IndicatorMethod.MACD:
    InitMACD(); //This Method adds Plots & Lines(not shown)
    Indicator = MACD(Fast, Slow, Smooth);
    break;
    }

    #region Properties
    [Category("Parameters"), Description("Indicator Method")]
    public IndicatorMethod Method
    { get {return method; }
    set {method = value; }
    }
    #endregion

    No method within D3Spotter defines IndicatorMethod, so I'm guessing that IndicatorMethod is a undocumented enum of Ninja.
    If it is undocument, where can I find the method that defines it

    Thanks
    Attached Files

    #2
    Unfortunately we would not be familiar with the exact custom code used, this is not a NT default enum, likely it's defined below the Properties region - for a general sample on using enums, please see this - http://www.ninjatrader-support2.com/...ead.php?t=3420
    BertrandNinjaTrader Customer Service

    Comment


      #3
      D3Spotter initialize....

      Zac, all I can say at the moment is... I tried that in V2. I have abanodoned that approach due to the various initializes needed, the indicator panel and the various lines/plots that gets drawn over and over. Look around for D3SpotterV2 which has all that in it. The enum is actually local to D3SpotterV2, here is the code that I was using..Ive attached it.

      not sure if this helps...
      Feel free to e-mail me directly
      [email protected]

      -David
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Renejm, Today, 06:17 AM
      0 responses
      3 views
      0 likes
      Last Post Renejm
      by Renejm
       
      Started by kazisl, Yesterday, 06:41 PM
      2 responses
      10 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by impactX, 05-04-2021, 01:07 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Started by op1031, Yesterday, 05:51 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by aaadetos, 05-04-2021, 09:28 AM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Heath  
      Working...
      X