Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pending order at price touch - need help

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

    Pending order at price touch - need help

    hallo there,

    i need your help. seach a lot but didnt find a solution.
    maybe its very simple...

    if the market goes up to a price level i set, i want to generate a short pending order
    at a lower price. if possible with stop and take profit.

    like this:
    market is at 100$
    i want to activate a pending order if the price reachs 120$
    so if the price comes down to 90$ i want to go short with 20$ stop and 50$ take profit.

    you can also call it: make a pending order if horizontal line is broken...

    i am sure its very simple but i found everything but not my problem in the web.
    so i hope you can help me.

    best regards and thanks

    lux

    #2
    Hello lux12,

    Thanks for your post and welcome to the forums!

    You can create a strategy that compares the current price to the horizontal line value and when price crosses above the line value you can then place a ShortStopLimit() order at the $90 level. You can use the setStopLoss() and SetProfitTarget() methods to the place a stop loss and profit target as soon as the entry order is filled.

    references:
    http://ninjatrader.com/support/helpG...tstoplimit.htm
    http://ninjatrader.com/support/helpG...etstoploss.htm
    http://ninjatrader.com/support/helpG...ofittarget.htm

    You can create the strategy directly in Ninjascript or through the strategy wizard.
    http://ninjatrader.com/support/helpG...strategies.htm

    Comment


      #3
      thank you for reply - i will test it this week.

      best regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      117 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      226 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      417 views
      0 likes
      Last Post CaptainJack  
      Working...
      X