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

How to not enter another trade within X bars of last exit

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

    #16
    Hello demo166130,

    I couldn't really say what may be happening based on the image of set 1. Have you at this point tried a more simple test like the example I previously provided in post #9?

    I do see that you are requiring "All" conditions to be true which does not work with the way you have used BarsSinceExit. This is one of the items I had pointed to with an arrow in the image in post #9.

    If you have another entry besides this one, you don't necessarily need to use the negative check for this entry specifically because you have another entry which will cause an exit that you can refer to. The alternative is If you only have one entry total you would require the negative check so that the logic can start. This depends on what you are trying to do, I don't know what you are specifically trying to do to know which direction you should go. I would suggest to further experiment using a more simple example to better understand how BarsSinceExit works.


    Please let me know if I may be of additional assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frslvr, 04-11-2024, 07:26 AM
    9 responses
    127 views
    1 like
    Last Post caryc123  
    Working...
    X