Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Conditions and Actions

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

    Conditions and Actions

    How do I enter the following:

    Not to buy a stock that has gapped up or down by over 10 percent since the previous close?

    #2
    Hello cdnPATRIOT,

    Using the Strategy Wizard, you would only be able to tell NinjaTrader to do an action if a condition you have is met for example if you are in a position and you would like to exit your position if the market went down 10 percent.

    Would you be in a position at that time?

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      The strategy requires that I not buy stocks that have gapped up or down by over 10 percent. So no I would not be in a position at that time.

      Comment


        #4
        Thanks cdnPATRIOT, for the entries you would not be directly able to do the math needed from the wizard, you could reference a script like the attached GapDetect though that would do this math for you (intraday charts for this example needed).

        It's plot will give you a % value with a sign (depending on up / dn gap) that you can check as part of your conditions.

        Hope that helps.
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        18 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        120 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        174 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        92 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        134 views
        0 likes
        Last Post cmoran13  
        Working...
        X