Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry for CurrentDayOHL

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

    Entry for CurrentDayOHL

    Hallo,

    my entry is:

    if (ToTime(Time[0]) >= 90000 && ToTime(Time[0]) <= 190000
    && Close [0] > CurrentDayOHL().CurrentOpen[0] + 5 * TickSize
    && ADX(14)[0] < 30
    && Close[0] > Swing(5).SwingHigh[0])
    {
    _long_order=EnterLong(DefaultQuantity, "Long");
    }

    Is the highlighted code correct?
    The filled entry is only Close [0] > CurrentDayOHL().CurrentOpen[0].
    But ich wish an entry 5 ticks above the indicator.
    I´m trading FDAX future. Wich Ticksize has this future?

    Thanks für you help.

    Blackburn

    #2
    Hi Blackburn,

    Close [0] > CurrentDayOHL().CurrentOpen[0] + 5 * TickSize

    This expresses that the close of a bar is greater than the current open by at least 5 ticks.

    FDAX has tick size of .5. You can check this in the instrument manager. Tools > Instrument Manager > Search FDAX in Name field.

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hallo Ryan,

      thanks for your reply. What i will is, that the entry für the position ist 5 ticks higher als the akctual value of the CurrentDayOHL().CurrentOpen[0] indicator.Can you help me? Or is there another way to code this?
      Thanks Blackburn

      Comment


        #4
        I'm sorry, but I do not understand this request fully. If you're looking to specify the price where you want to enter, this is done with either stop, limit, or stoplimit orders rather than market orders.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X