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 TraderA22, Today, 12:17 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by Skifree, Yesterday, 08:58 AM
    16 responses
    52 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by carnitron, Today, 02:19 AM
    2 responses
    20 views
    0 likes
    Last Post carnitron  
    Started by wallace15269, Today, 12:05 PM
    0 responses
    4 views
    0 likes
    Last Post wallace15269  
    Started by several, Today, 11:02 AM
    5 responses
    20 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X