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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    637 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    571 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X