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 Blairski, Yesterday, 09:19 AM
      2 responses
      9 views
      0 likes
      Last Post Blairski  
      Started by tonynt, Today, 09:33 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by minotti1, Today, 08:31 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by SmartArtsStudio, 05-15-2021, 10:46 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Airwave, Today, 06:02 AM
      2 responses
      23 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X