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

  • Stuhr
    replied
    Thanks greatly appreciated

    Leave a comment:


  • NinjaTrader_Jim
    replied
    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.

    Leave a comment:


  • Stuhr
    replied
    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

    Leave a comment:


  • NinjaTrader_Jim
    replied
    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.

    Leave a comment:


  • Stuhr
    started a topic Using Double

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by bortz, 11-06-2023, 08:04 AM
47 responses
1,607 views
0 likes
Last Post aligator  
Started by jaybedreamin, Today, 05:56 PM
0 responses
9 views
0 likes
Last Post jaybedreamin  
Started by DJ888, 04-16-2024, 06:09 PM
6 responses
19 views
0 likes
Last Post DJ888
by DJ888
 
Started by Jon17, Today, 04:33 PM
0 responses
6 views
0 likes
Last Post Jon17
by Jon17
 
Started by Javierw.ok, Today, 04:12 PM
0 responses
15 views
0 likes
Last Post Javierw.ok  
Working...
X