Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about order entry method

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

    Question about order entry method

    I'm trying to develop an automated strategy that enters an entry order and exit order after a certain condition is met. The problem with my strategy is that I want to only place automatic entry orders and stop loss orders at significant numbers eg. 700, 800, 900. is there a way to specify an entry order that will buy at the next higher significant number and place a stop loss at the next lower significant number? An example would be that oil is trading at 12775 when my conditions are met. I would like to place a buy stop order at 12800 and a sell stop order at 12700.

    #2
    Hi Don, welcome to our forums here - there would be unfortunately no inbuild way to determine a 'signifcant' price level, you would need to custom code a way to detect this in your strategy. The order methods require the price for the order to placed at then as double value in the overloads.

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by traderqz, Yesterday, 09:06 AM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Started by f.saeidi, Today, 10:19 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by kujista, Today, 06:23 AM
    5 responses
    15 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by traderqz, Today, 12:06 AM
    3 responses
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by RideMe, 04-07-2024, 04:54 PM
    5 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X