NexusFi: Find Your Edge


Home Menu

 





Backtesting Systems with ATM Stratgies efficiently...


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (0 thanks)
    2. looks_two MXASJ with 3 posts (0 thanks)
    3. looks_3 forenxe with 1 posts (0 thanks)
    4. looks_4 emini_Holy_Grail with 1 posts (0 thanks)
    1. trending_up 5,613 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Backtesting Systems with ATM Stratgies efficiently...

  #1 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

Hey All,

I've managed to code a system that calls an ATM strategy, and I've been backtesting it for the past few days using Market Replay data at 1x speed. I've read that that is the only reliable way to backtest a strategy that includes an ATM.

Have any of you come up with more efficient ways of backtesting systems that include ATM strategies other than using multiple computers? This is like watching paint dry....

I'd also like to ask how you deal with your brokers to ensure what NT is telling you about your positions is real. Do you have separate web-based log in at your broker to check your positions? Or do you call your broker to ensure you are flat (or long x contracts or whatever) when you are calling it a day. FWIW on on a sim account with AMP now.

Thanks for your thoughts...

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

First, I moved this to the Programming section since you're talking about backtesting and calling an ATM from within NinjaScript.

From my understanding of this subject, it is not possible to actually backtest using Strategy Analyzer when using an ATM template. This is why I don't use an ATM template in my strategies, I just code the logic manually to do a similar thing.

As for the Market Replay 1x mode to be accurate -- well, there has been a debate about this. Originally, the NT team said that Market Replay used the delays as defined in the Simulator tab of the Tools -> Options settings. But, then later after I pointed out the online help directly contradicted them, they changed their story. However, in the end, I certainly did not get the feeling that anyone (NT staff) actually really truly knew the answer.

I feel your pain regarding replaying @ 1x speed, I can only imagine...

The best advice I can give is all that "time" is better spent coding your strategy to automatically manage your orders and ditch the ATM. It may take you many hours of initial work, but then you'll recoup it many times over in the end.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


Thanks Mike. I've been thinking VMWare might help. If I can run 4-5 virtual XP machines with individual instances of NT on one (powerful) box just for backtesting with market replay data... that might be a solution.

When you talk of coding the solution in NinjaScript... are you talking about coding the equivalent of an ATM with stops, targets, trails, etc? Or just coding it to signal me to enter the trade?

What I've been doing is backtest/optimize using hard coded stops and targets, and when the system has a good positive extectancy, add the ATM code and test it using market replay data.

Its a pretty ful-time job!

Started this thread Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

I am talking about coding your strategy to auto trade, manage stops, trail, everything. As opposed to calling the ATM template from within the auto strategy.

As for VMware, yes I am a fan and run VirtualBox and VMware on my servers and I also have VMware on my primary trading desktop as back before I gave up on automated strategies, I needed multiple VM's to do the number crunching and backtesting because NT 6.5 is so inefficient.

Just be prepared to deal with the synchronization of data between VM's, it is not a fun task if you make regular changes or want to test on new data.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 forenxe 
Spain
 
Experience: Intermediate
Platform: Ninjatrader
Broker: AMP
Trading: Forex, ES, CL
Posts: 13 since Jun 2009
Thanks Given: 3
Thanks Received: 1

Hi guys,


somewhere here i read that Median renko doesn´t go well with backtesting, is this true, why?

is median renko giving false results with the backtesting?

I have one startegy adjusted with Median Rankoo and excellent results in backtesting, i will start to check it live nest week.

Thanks

Reply With Quote
  #6 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

@MX: Mike is right, forget the idea of using an ATM template in a strategy, it's not working as it should be. It's a better choice to invest time in building your own "ATM-like" functions (and more interesting BTW) than spending hours trying to understand why ATM template didn't do what it was supposed to do.

@forenxe: no idea for renko, but only live testing will tell the truth, renko or not renko.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610


forenxe View Post
Hi guys,


somewhere here i read that Median renko doesn´t go well with backtesting, is this true, why?

is median renko giving false results with the backtesting?

I have one startegy adjusted with Median Rankoo and excellent results in backtesting, i will start to check it live nest week.

Thanks

Do a search for renko, there are threads on this already. You should also read the Hurley Method discussion, it has hundreds of posts and a majority of them are about renko backtesting.

Short answer, the Open and Close are not 'normal' for Renko bars, and NT can't properly handle them in a backtest.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800

I first posted this in July 2009. I've learned a bit since then, with this forum playing a big part in that education.

Started this thread Reply With Quote
  #9 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126

mxasj
I have tried backtesting using Market replay at various speeds and 50x has been giving some relialistic results that I get in sim trades. 100x was closer, 50x is better as you can also see bar drawn. Honestly, I never had patience to try 1x

Reply With Quote




Last Updated on May 2, 2010


© 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