NexusFi: Find Your Edge


Home Menu

 





Optimize speed EURUSD v's @YM


Discussion in TradeStation

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




 
Search this Thread

Optimize speed EURUSD v's @YM

  #1 (permalink)
oreild3
Ireland
 
Posts: 5 since Apr 2014
Thanks Given: 0
Thanks Received: 1

Hi I am using a similar strategy with different inputs on EURUSD and @YM on TS, however the optimisation speed of the @YM is much slower. I am based in Ireland anyone and idea why there is so much difference in speed. Is there a way to actually save historical data to PC. Or has anyone any idea regarding best way to run optimisation.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Quant vue
Trading Reviews and Vendors
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

oreild3,

what are the chart settings for bar type and interval? Are you using look inside bar backtesting? If so, what is the resolution?
My guess is that it has simply something to do with the number of ticks processed during the optimization being different for each symbol. Therefore the questions above help to clarify this.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
oreild3
Ireland
 
Posts: 5 since Apr 2014
Thanks Given: 0
Thanks Received: 1



ABCTG View Post
oreild3,

what are the chart settings for bar type and interval? Are you using look inside bar backtesting? If so, what is the resolution?
My guess is that it has simply something to do with the number of ticks processed during the optimization being different for each symbol. Therefore the questions above help to clarify this.

Regards,
ABCTG

Thanks for your reply ABCTG. However the strange thing is I have each tick selected for EURUSD and selected seconds for @SP in the hope of speeding things up, no luck though. On the EURUSD I have the backtestiing resolution set to 1 tick and on the @SP it is set to 1 sec. I would have thought that there would be as much tick data for the EURUSD as the @SP as it is a liquid product. This has me puzzled ?? Hopefully someone can shed some light. Backtesting is also slow with the @YM. Also of interest is when I load the worksheet the @YM and @SP are much slower to load than the EURUSD. I do not understand how the data load process works in detail on TS. I was wondering if it hand anything to do with the symbol themselves. Can't find anything on the net about this issue.

David

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

David,

TS pulls the data and stores it locally on your disk. Assuming you are using the same start and end date try adding a simple counter to your strategy (or do an empty strategy with a counter) that counts each calculation cycle. This way you know if the amount is similar or way different.
That would be the first thing I'd do. If this shows the values being close enough the additional time might come from your code.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #5 (permalink)
oreild3
Ireland
 
Posts: 5 since Apr 2014
Thanks Given: 0
Thanks Received: 1


ABCTG View Post
David,

TS pulls the data and stores it locally on your disk. Assuming you are using the same start and end date try adding a simple counter to your strategy (or do an empty strategy with a counter) that counts each calculation cycle. This way you know if the amount is similar or way different.
That would be the first thing I'd do. If this shows the values being close enough the additional time might come from your code.

Regards,
ABCTG

Yes that's sound advice I was thinking about looking at the ticks with a counter but the strategy counter is a better idea I will let you know how I fair out.

Thanks
David

Reply With Quote
  #6 (permalink)
oreild3
Ireland
 
Posts: 5 since Apr 2014
Thanks Given: 0
Thanks Received: 1


oreild3 View Post
Yes that's sound advice I was thinking about looking at the ticks with a counter but the strategy counter is a better idea I will let you know how I fair out.

Thanks
David

I think I have found the problem, the issue is related to a global variable.

So thanks again for getting me thinking.

Reply With Quote
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

David,

you are welcome. Out of curiosity what exactly causes the problems with Global Variables that it manifests itself when you test @YM and not when you test EURUSD?

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #8 (permalink)
oreild3
Ireland
 
Posts: 5 since Apr 2014
Thanks Given: 0
Thanks Received: 1


ABCTG View Post
David,

you are welcome. Out of curiosity what exactly causes the problems with Global Variables that it manifests itself when you test @YM and not when you test EURUSD?

Regards,
ABCTG


TS just got back to me and they have said that there is a lot more tick data on the @YM than the EURUSD, so that answers my question. The issue I was having with GV's was that the names of the GV's in the set and get functions were different. I thought this may have had an impact on speed of optimisation, but this was not the case. Looks like it is down to tick data.

Reply With Quote
Thanked by:
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

oreild3,

thanks for the explanation. You should be able to test this easily when you load one chart for each symbol with the same bar interval and same amount of bars. Then you run two optimizations with look inside bar backtesting disabled and the time it takes should be about the same.

Regards,
ABCTG

Follow me on Twitter Reply With Quote




Last Updated on April 29, 2014


© 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