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 mintos, 04-02-2024, 08:22 PM
    7 responses
    38 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by PaulMohn, 04-24-2024, 03:49 AM
    5 responses
    39 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by claxxical, 05-30-2017, 12:30 PM
    38 responses
    4,480 views
    0 likes
    Last Post alancurry  
    Started by Felix Reichert, 04-26-2024, 02:12 PM
    10 responses
    70 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by lightsun47, Today, 11:37 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X