Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator not plotting

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

    Indicator not plotting

    I am having trouble getting a modified FisherTransform indicator to plot. I tried adapting the NT version to the code from an article written by John Elhers. I think that this is the code that is stopping it from plotting

    double tmpValue = 1 * ((Median[0] - minLo) / num1 - 0.5) + 0.5 * Median[1];

    When I replace the Median[1] with tmpValuePrev to match the original code it plots

    The Median[1] is the problem. I treid changing the if(CurrentBar ==0) to
    if(CurrentBar . period) without success.

    #2
    You need to do

    if (CurrentBar < 1)
    return;

    Then check your Control Center logs for errors.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      That did the trick. However the plot is just a flat line. I am wondering why the FisherTransform provided by NT is different from the Formula published by Mr. Ehlers?

      the NT code

      double tmpValue = 0.66 * ((Median[0] - minLo) / num1 - 0.5) + 0.67 * tmpValuePrev;

      While Ehlers code reads

      double tmpValue = 1 * ((Median[0] - minLo) / num1 - 0.5) + 0.5 * Median[1];

      Comment


        #4
        NinjaTrader should be using the generally accepted equation. You could just modify it if you wish to use a different one.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks for your reply. Please be assured that I was not questioning your choice. My inquiry was for personal education only.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          596 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 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
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X