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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    66 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X