Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to exit the trade at exact daily loss or profit goal target

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

    how to exit the trade at exact daily loss or profit goal target

    Hello:
    I would like to know how to stop or exist the trade as soon as I reach the daily goal of loss or profit.
    It seems that the last trade either closing at higher loss or profit and due to this many times my strategy is turning profit into loss.

    For example. I have a set daily profit to 300 and when last trade that has turned passed 300$ it is not being stopped as the it is working to reach the trade profit or loss parameter let's says 100$.
    And then is market turns on opposite site and it takes a stop loss and PNL goes below $300 lets say $200. So how do I stop tthhat last trade as soon as it reached $300 in the first place.

    In my testing, I am seeing either daily profit of over $300 with some random number or loss or more than -300. Please see the screen below where net profit column has no exact 300$ value that I would like to see for either profit or loss.

    What statement to use so that at each trade it checks the realized profit or loss is at $300 in this case and stop the strategy from taking any more trades.?

    Thank you.


    Click image for larger version

Name:	image.png
Views:	155
Size:	113.6 KB
ID:	1310497

    #2
    Hello mtamaku,

    Below is a link to a daily loss limit which you can adapt to your needs for a daily gain limit.


    Use Calculate.OnPriceChange so that the position can be exited at the moment the the daily gain is hit.

    In historical TickReplay and 1-tick intra-bar granularity will be necessary.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 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
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X