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 alifarahani, Today, 09:40 AM
          6 responses
          34 views
          0 likes
          Last Post alifarahani  
          Started by Waxavi, Today, 02:10 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by Kaledus, Today, 01:29 PM
          5 responses
          14 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Waxavi, Today, 02:00 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by gentlebenthebear, Today, 01:30 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X