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

Setting K on stoch for execution problems

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

    Setting K on stoch for execution problems

    Hi guys,

    I am having a little problem with setting conditions. I only have a couple, but they are quite exact.

    For long entries I want the stoch K "only" to be greater than 80 on the stoch indicator
    also for this to happen...price must currently be above 50 EMA

    For short entried I want the stoch K "only" to be less than 20 on the stoch indicator
    also for this to happen...price must be below 50 EMA

    What I doing wrong? for the K only....I can't get it to work?

    #2
    another problem

    I think I may have fixed the first problem by setting K to plot...however....have another problem....as you can see in picture....there are several long trades that were not taken with my strategy? any ideas?
    Attached Files

    Comment


      #3
      Hello usdivers,

      Thank you for your post.

      I would recommended enabling Trace Orders to track the orders and utilizing the Print statements to confirm the conditions are working as intended.

      For information on Trace Orders please visit the following link: https://ninjatrader.com/support/foru...ead.php?t=3627

      For more information on debugging please visit the following link: https://ninjatrader.com/support/foru...ead.php?t=3418

      Please let me know if you have any questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by funk10101, Today, 09:43 PM
      0 responses
      6 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      26 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Working...
      X