• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.

    http://www.ninjatrader.com/support/h...er_methods.htm
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jrobin747, Today, 02:37 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Gav_G, Today, 01:23 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by webus, Today, 01:05 PM
    2 responses
    20 views
    0 likes
    Last Post webus
    by webus
     
    Started by Wick Wrangler, Today, 12:42 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by pman777, 04-15-2020, 05:09 AM
    5 responses
    49 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X