Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetStopLoss()

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

  • NinjaTrader_AlanP
    replied
    Hello pman777,

    Thank you for your note.

    You could see the following two samples.

    The following sample will move a stop to breakeven after 5 ticks have been reached,
    https://ninjatrader.com/support/foru...427#post527427

    The last sample at the following link will adjust the stop up as profit grows,
    https://ninjatrader.com/support/foru...345#post521345

    Please let us know if you need further assistance.

    Leave a comment:


  • pman777
    started a topic SetStopLoss()

    SetStopLoss()

    Hi, I'm writing a strategy that enters a long position at a certain price with an initial stop loss set at 10 ticks (using SetStopLoss() in OnStateChange section). Once I reach an initial profit level, I want to adjust my stop loss upwards. This seems simple to do but I could not find an example where my stop can be adjusted from its initial setting. Any assistance is greatly appreciated! thanks

Latest Posts

Collapse

Topics Statistics Last Post
Started by Hyper, Today, 09:56 AM
0 responses
4 views
0 likes
Last Post Hyper
by Hyper
 
Started by Kediil, Today, 09:26 AM
0 responses
7 views
0 likes
Last Post Kediil
by Kediil
 
Started by bootize, Today, 08:37 AM
0 responses
6 views
0 likes
Last Post bootize
by bootize
 
Started by _Zero_, 01-06-2020, 01:16 PM
4 responses
138 views
2 likes
Last Post globaljobber  
Started by sukhob, Yesterday, 04:27 PM
2 responses
22 views
0 likes
Last Post sukhob
by sukhob
 
Working...
X