Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          27 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 04-23-2024, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          193 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,235 views
          0 likes
          Last Post xiinteractive  
          Working...
          X