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 tsantospinto, 04-12-2024, 07:04 PM
    6 responses
    98 views
    0 likes
    Last Post tsantospinto  
    Started by rocketman7, Today, 02:12 AM
    5 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by ZenCortexReal, Today, 08:54 AM
    0 responses
    1 view
    0 likes
    Last Post ZenCortexReal  
    Started by ZenCortexReal, Today, 08:52 AM
    0 responses
    0 views
    0 likes
    Last Post ZenCortexReal  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X