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

Using Double

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

    Using Double

    I am using a user input (Threshold) with decimals with a default of 2.5 and a minimum of 0.
    My condition is: FisherTransform(FisherPeriod)[0] > Threshold

    This works fine as long as I do not use an input greater than 3.5

    I have increased the default to 6.0 and still have the same results.
    All help will be greatly appreciated.

    Mike

    #2
    Hello Stuhr,

    Thanks for your post.

    It is not exactly clear what the issue is that you are encountering.

    Do you see an error on screen or in the log tab of the Control Center?

    Is the script not behaving as intended? What is the script doing exactly and what were your expectations?

    Please provide screenshots where applicable.

    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and attach the image to this post.

    Click here for detailed instruction

    I look forward to being of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      I have a threshold input using decimals as shown in the screenshot. When the FisherTransform closes above the threshold is draws vertical lines as seen in the screenshot. When the threshold is set above 3.5 there are no lines drawn setting the threshold back under 3.6 and the lines are drawn once again.

      To limit the limit the drawing to one line for the signal I am trying to use the second condition which is not working. Any suggestions here would also be appreciated.
      Attached Files

      Comment


        #4
        Hello Stuhr,

        Thanks for clarifying.

        If the lines are no longer drawing that would mean that the logic is no longer allowing the condition to become true. I would suggest to add prints to the script to check the values used to evaluate these conditions and see how the logic would need to be modified to meet your goal. I have attached a video demonstration describing how prints can be added in the Strategy Builder. This a video I have made but is publicly available.

        Debugging with the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

        Limiting the drawing to occur once per signal would involve designing the logic so it only becomes true for your signal and does not become true for other bars.

        Please let us know if we can be of further assistance.
        JimNinjaTrader Customer Service

        Comment


          #5
          Thanks greatly appreciated

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by gentlebenthebear, Today, 01:30 AM
          2 responses
          13 views
          0 likes
          Last Post gentlebenthebear  
          Started by Kaledus, Today, 01:29 PM
          2 responses
          8 views
          0 likes
          Last Post Kaledus
          by Kaledus
           
          Started by frankthearm, Yesterday, 09:08 AM
          13 responses
          46 views
          0 likes
          Last Post frankthearm  
          Started by PaulMohn, Today, 12:36 PM
          2 responses
          16 views
          0 likes
          Last Post PaulMohn  
          Started by Conceptzx, 10-11-2022, 06:38 AM
          2 responses
          56 views
          0 likes
          Last Post PhillT
          by PhillT
           
          Working...
          X