Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry above a 1 Minute Bar

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

    Entry above a 1 Minute Bar

    Hi guys,

    i´ve build a strategy using the NinjaScript. Now i need help to insert a code for an Entry above/below the previous 1 Minute Bar and at the same time a Stop above/below the last bar. Could someone help me?

    Thanks guys!

    Pullbacktrader

    #2
    Hello Pullbacktrader,

    Thank you for your post.

    You would want to be referencing the last bar values by using [1] for the price series.

    I.E. Close[1], Open[1], High[1], Low[1] will all reference the previous bar for the price values.

    Since, you are wanting to place it below and above you would '+ 4 * TickSize' to add ticks to the value.

    Example -
    Code:
    EnterLongLimit(Close[1] + 2  * TickSize);
    This will place a limit order at two ticks above the previous close price.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi Cal,

      thanks for your fast reply! Is it even possible to set this entry to a specific Time:
      A Entry order above the Bar that closes at 17:00 for example?

      Comment


        #4
        Pullbacktrader,

        Yes this is possible.

        I am going to link below on a sample reference on limiting trade hours, but this should give you an idea of where to start with the syntax and using the Time[0] call in NinjaScript -
        http://www.ninjatrader.com/support/f...ead.php?t=3226

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        69 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        78 views
        0 likes
        Last Post PaulMohn  
        Working...
        X