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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        92 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        93 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        71 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        88 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        67 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X