Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to find Laguerre RSI code

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

    #16
    Originally posted by omololu View Post

    adaeiqendqw,

    Please, how and where do you define gammaVar[0] in gammaVar[0] = Math.Max(High[0], Close[0])-Math.Min(Low[0], Close[0]); ?

    omololu
    defined here:
    HTML Code:
    public class LaguerreRSIFE : Indicator
    {
    
    private double[] L0 = new double[2];
    private double[] L1 = new double[2];
    private double[] L2 = new double[2];
    private double[] L3 = new double[2];
    private Series<double> gammaVar;
    
    
    protected override void OnStateChange()
    {
    if (State == State.SetDefaults)
    {
    Description = @"RSI laguerre with FE";
    Name = "LaguerreRSIFE";
    Calculate = Calculate.OnPriceChange;
    IsOverlay = false;
    DisplayInDataBox = true;
    DrawOnPricePanel = false;
    DrawHorizontalGridLines = true;
    DrawVerticalGridLines = true;
    PaintPriceMarkers = true;
    ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
    //Disable this property if your indicator requires custom values that cumulate with each new market data event.
    //See Help Guide for additional information.
    IsSuspendedWhileInactive = true;
    NFE = 8;
    AddPlot(Brushes.Aqua, "LRSI");
    AddPlot(Brushes.Orange, "Gamma");
    AddLine(Brushes.Gray, 1, "FEH");
    AddLine(Brushes.Gray, 1, "FEL");
    AddLine(Brushes.Snow, 1, "OB");
    AddLine(Brushes.Snow, 1, "OS");
    }
    //else if (State == State.Configure){
    // gammaVar = new Series<double>(this);
    //}
    if (State == State.DataLoaded){
    gammaVar = new Series<double>(this, MaximumBarsLookBack.Infinite);
    }
    }

    Comment


      #17
      Originally posted by omololu View Post


      adaeiqendqw and victorNT,

      I converted the Laguerre NT7 version provided in post #2 by victorNT and which works quite well.

      I note that adaeiqendqw seems to be doing a new NT8 version with some new features. It would be great if he can build his NT8 version based on mine ?


      Omololu

      [ATTACH]n1134112[/ATTACH]


      So, here is my RSI Laguerre but with an auto adjusting alpha and fractal energy. My RSI calculation is a bit different so if anybody finds a mistakes, let me know.

      Attached Files

      Comment


        #18
        Originally posted by adaeiqendqw View Post

        So, here is my RSI Laguerre but with an auto adjusting alpha and fractal energy. My RSI calculation is a bit different so if anybody finds a mistakes, let me know.
        Appreciate it. Thanks

        Comment


          #19
          Originally posted by adaeiqendqw View Post

          So, here is my RSI Laguerre but with an auto adjusting alpha and fractal energy. My RSI calculation is a bit different so if anybody finds a mistakes, let me know.
          Hi adaeiqendqw,

          The attached zip file is in compiled format (i. e. with DLL) ... so can't read it. I don't install compiled stuff on my NT. Is this deliberate ?

          Lolu

          Comment


            #20
            Originally posted by omololu View Post

            Hi adaeiqendqw,

            The attached zip file is in compiled format (i. e. with DLL) ... so can't read it. I don't install compiled stuff on my NT. Is this deliberate ?

            Lolu
            Oh no my bad here is the non compiled version.
            Attached Files

            Comment


              #21
              Originally posted by adaeiqendqw View Post

              Oh no my bad here is the non compiled version.
              Thanks.

              Omololu

              Comment


                #22
                Originally posted by adaeiqendqw View Post

                Oh no my bad here is the non compiled version.
                Hi. Well the previous indicator didn't install properly, and now the newer one throws up an error, think there is a conflict. Please check the attached error. Thanks.
                Attached Files

                Comment


                  #23
                  Hello victorNT,


                  Duplicate class names. Likely moving classes to different files.

                  Remove and re-import.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #24
                    Originally posted by victorNT View Post

                    Hi. Well the previous indicator didn't install properly, and now the newer one throws up an error, think there is a conflict. Please check the attached error. Thanks.
                    Got it resolved. Had to delete to .DLL file from references. Thanks.

                    Comment


                      #25
                      Guys the indicator seems off. May be the previous version was not correct. I have a code of the indicator from usethinkscript.com, thinkscript code (attached), please check if possible to convert it. Thanks.
                      Attached Files
                      Last edited by victorNT; 12-29-2020, 05:37 PM.

                      Comment


                        #26
                        Originally posted by victorNT View Post
                        Guys the indicator seems off. May be the previous version was not correct. I have a code of the indicator from usethinkscript.com, thinkscript code (attached), please check if possible to convert it. Thanks.
                        That was the one I was trying to convert from usethinkscript. Minus the gaussian portion. The fractal energy is correct but the Laguerre RSI is not. I can't seem to figure it out. If anyone can help that would be much appreciated.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        599 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        344 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        103 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        558 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        557 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X