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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        71 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X