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:	162
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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X