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 burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        14 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        14 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,983 views
        3 likes
        Last Post jhudas88  
        Working...
        X