Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop on last cchandle

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

    Stop on last cchandle

    hello there i would like to know how do i code this.
    i coded my strategy and it works fine the only thing is i want the strategy put the stop on the perivious chandle low when i'm in the long position and put the stop on the perivious chandle high when im short.

    and for exit is this possible if i enter with 3 lots to close one lot at 20 pips and second lot at 40 pips and third lot at 60 pips and as soon as my first target is reached moves to Break even?

    any of thoese either entry or exit would be fine if i can code them.
    thanks

    #2
    Hi worldfxsignals,

    You can code all of those. To do the previous candle low/high for the stop you can simply have separate entry signal names for your long/short entries. Then you can tie the appropriate SetStopLoss() to the entry signals and it will only trigger for when their associated entry is triggered.

    To scale out, you can definitely do it too. Please see this reference sample for an example of how: http://www.ninjatrader-support.com/v...ead.php?t=3751
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X