Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Profit Target (@ EMA) and Stop Loss

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

    Help with Profit Target (@ EMA) and Stop Loss

    Hello, I am creating a strategy where I need to exit my position for profit when price touches the 10 ema, and stop for a loss if the low of my entry bar is breached. I need your help!

    (1) My first issue: Profit Target @ 10EMA

    - The only way I have found success doing this is by the following (first screen shot) in strategy builder.
    Click image for larger version  Name:	SS1.PNG Views:	0 Size:	27.2 KB ID:	1173360
    - If I attempt to do the ema profit target in the actual stops and targets window of strategy builder, it just breaks the strategy and doesn't sell at all. (2nd screen shot). Would this not update the profit target each bar as the ema is being re calculated?
    Click image for larger version

Name:	image_69581.png
Views:	604
Size:	30.1 KB
ID:	1173361
    (2) Struggling to place a stop order.

    - I am trying desperately (LOL) to make a stop at the low of my entry bar, and would like it to remain at the low of my entry bar until its either hit, or my 10 ema profit target is hit. Could you please help me set that up in the strategy builder window? I have tried many things, but can't seem to get it to work.

    - as a compromise I have tried making an exit position order if after the close of the next bar it is lower than the low of my entrybar, but this doesn't work. 3rd screenshot is shown.
    Click image for larger version  Name:	SS3.PNG Views:	0 Size:	47.4 KB ID:	1173363
    - I have also tried doing a hard stop value in the stops and targets window, but this somehow voids my profit target at 10 ema causing it not to trigger.

    Any help with this is strongly appreciated. Thank you!!
    Attached Files

    #2
    Hello abtrad1ng,

    The stops and targets added by the strategy builder cannot use price or indicator information as these are added in State.Configure and not in OnBarUpdate where the data is processed. No, these would not update for each bar as the ema is being recalculated.

    See below for details.
    Hello support team, I have 2 dataseries, a 1minute to detect the ATR value. Now I would like to set the stoploss and profit target based on the actual ATR Value Example: Stoploss 2xATR Profittarget 3xATR value 1. How can this be done with builder, I have no coding experience 2. Later I would like to have the possibility to



    Add a double variable. When the entry order is submitted set the double variable to Price -> Low.

    Create a condition set. Compare the Position to be Market Position Long.
    For the action select Order management -> Exit long stop by a stop order. Set the Stop Price to Misc -> your variable name.

    Below is a link to an example of setting a stop that has breakeven. You can use this as an example of setting a stop order. You do not have to implement the logic to change the price variable.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    63 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X