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 algospoke, Yesterday, 06:40 PM
    2 responses
    18 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Working...
    X