Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit Strategy after certain number of ticks obtained

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

    Exit Strategy after certain number of ticks obtained

    Hello all,
    I would like to program a Strategy so it makes at minimum of say 20 ticks a day.
    Say that my StopLoss is 10 ticks and my ProfitTarget is 20 ticks.

    I could see 3 main scenarios:

    1. 1st trade wins 20 ticks and strategy stops running ( gets disabled? )
    2. 1st trade looses 10 ticks. 2nd trade wins 20 ticks. 3rd trade wins 20 ticks - I have a profit of 30 ticks and strategy stops running
    3. Likewise I would like to limit my losses. Eg in case I have 3 consecutive losses of say 30 ticks total, the strategy stops running.

    So I need a variable to cummulate my losses and my profit and when it reaches certain amount I want strategy to get disabled.

    Any thoughts?

    M

    #2
    mal1954, you can check into this example - http://www.ninjatrader.com/support/f...ead.php?t=4084

    It deals with using the Performance class available in our NinjaScript to halt a strategy once certain PnL levels for the session are hit.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X