Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 kandise, Today, 10:52 AM
    0 responses
    1 view
    0 likes
    Last Post kandise
    by kandise
     
    Started by yertle, Yesterday, 12:24 PM
    1 response
    10 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by Mr Bread, Today, 04:25 AM
    2 responses
    9 views
    0 likes
    Last Post Mr Bread  
    Started by kandise, Today, 09:41 AM
    0 responses
    2 views
    0 likes
    Last Post kandise
    by kandise
     
    Started by Mubeen Haider, Today, 09:41 AM
    0 responses
    5 views
    0 likes
    Last Post Mubeen Haider  
    Working...
    X