NexusFi: Find Your Edge


Home Menu

 





Find the number of iterations a backtest has/will run against an instrument list


Discussion in NinjaTrader

Updated
    1. trending_up 893 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

Find the number of iterations a backtest has/will run against an instrument list

  #1 (permalink)
 tickleboy 
Seattle, Washington
 
Experience: Advanced
Platform: NinjaTrader, TradeStation
Broker: Kinetick
Trading: ES
Posts: 18 since Oct 2011
Thanks Given: 16
Thanks Received: 10

Hi all.

I'm looking for a way to determine programmically in a Strategy how many times it has/will run in a Backtest against multiple instruments. For example, if I run a strategy against MSFT, GOOG, and AMZN, then I want to know either the number of instruments that are in a backtest run, or some sort of notice when the backtest has run against the last instrument in the instrument list.

There are a couple ways I think this could be done:

1. Determine if the Strategy is being run against an Instrument List (More than 1 instrument) and find out how many instruments are in the Instrument List.
2. Is if there is some object (StrategyCollection for example) that would have a count of the number of times a Strategy has been run in a backtest. This must be stored somewhere as the StrategyAnalyzer window has a "Combined Results" row after a Strategy backtest has run against an instrument list, and this would require knowledge of the number of instruments it was run against.

Any ideas? I know this isn't supported by NinjaTrader, but I would appreciate any advice to lead me in the right direction.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
43 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks




Last Updated on August 8, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts