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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X