Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programming an ORB

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

    Programming an ORB

    Hi there,

    i´m trying to program Opening Range breakout strategy, which contains the following conditions:

    - Trend Indicators on the Daily Chart
    - customized Opening Range on a 15 Min Chart

    Since i´m right at the start and I need to do some experiments on this topic, i´ll leave this Trend Indicators on Daily for later programming sessions, but i now have a problem on constructing the opening range on a 15 min chart.

    i use the predefined CurrentDayOHL indicator for calculating the open of the session and i want to add and subtract certain numbers to/from the open.

    However, it is impossible to use"+" and "-" with strings and a bolean or a double, lets say. The only thing, thats possible, is comparing strings.

    So I tried for example

    if (Close[0]> CurrentDayOHL.CurrentOpen[0]+ATR(periods))

    as a condition, but this will give me a compiling errorcode.

    How do I overcome this problem??
    I´m not a programmer and i also tried it via the wizzard, but it also looks like it isn´t possible

    Thanks alot for your help

    #2
    Try something like:

    if (Close[0]> CurrentDayOHL.CurrentOpen[0]+ATR(periods)[0])
    RayNinjaTrader Customer Service

    Comment


      #3


      Cool...it worked.
      Thanks for the quick reply.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      590 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      342 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      555 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X