Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Back Testing - running through a number of scenarios automatically

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

    Back Testing - running through a number of scenarios automatically

    Hello,

    I have built my strategy and am getting ready to finetune my entrance and exit triggers. Is there a way to run through a number of scenarios automatically?

    For example, take a simple strategy where you enter short once the price closes past the 20 period upper Bollinger band and exit at the close beyond the lower Bollinger band. In this strategy you have a stop loss which will execute depending on how much higher the price goes above the entrance price. What I am needing is a way to test how far I should let the price rise before allowing it to exit. I have been doing this manually but have a number of indicators I am wanting to dial-in. I need a way to say, "Test this strategy's exit indicator at 101%, 102% 103%... 120% etc. above the entrance price." and have it provide me a printout of the profitability of each. Hope that makes sense.

    Has anyone created something similar or knows of some examples I can study?

    Any help would be greatly appreciated.

    Kenson


    #2
    Hello Kensonprib,

    What you described could be done in the strategy analyzer by using an optimization. That would let you pick a range of numbers for any user inputs you created.

    A good starting place would be to look at how the SampleMACrossOver uses its fast and slow parameters, those could be optimized in the analyzer.



    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RookieTrader, Today, 09:37 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kulwinder73, Today, 10:31 AM
    0 responses
    5 views
    0 likes
    Last Post kulwinder73  
    Started by terofs, Yesterday, 04:18 PM
    1 response
    23 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Working...
    X