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 TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      541 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      11 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      7 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      14 views
      0 likes
      Last Post TradeForge  
      Working...
      X