Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal line and order execution

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

    Horizontal line and order execution

    hi,
    This is for a strategy I am building. So, I would like to draw a horizontal line and use this as a reference to place orders. Something like an indicator with a cross over/above conditions. I am not interested in manually draw the line, I would like to set it up a a condition in strategy builder. I know how to do it with a trendline indicator but I haven't been able to find info on how to do it with an actual line.
    thanks

    #2
    Hello space_trader,

    If the line is going to be drawn with code, just use those same numbers for triggering an order. If you are drawing a line at 1000.50, have a condition that submits a market order if the Close crosses above 1000.50. Use the same values with the entry condition that you are using for the Draw method call.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X