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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        310 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        200 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        186 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        278 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        229 views
        0 likes
        Last Post CarlTrading  
        Working...
        X