Forex Tester Forum (Professional Training Software for Traders) Forum Index Forex Tester Forum (Professional Training Software for Traders)

Back to main site   Risk disclosure
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

preloaded datas in optimizer

 
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> General Questions about FT
View previous topic :: View next topic  
Author Message
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Sun Mar 18, 2012 12:48 pm    Post subject: preloaded datas in optimizer Reply with quote

Hi,

I'm working with data from 01-01-2009 to 31-12-2011. I begin backtest from 01-04-2010 since I need historical data to do some calculation.

All is OK with backtester.

But optimizer don't seem to preload data and if I test from 01-04-2010, i received wrong trades.

Am I wrong ? How to run optimiser with historical data but begin test at a D-date ?

Philippe

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Tue Mar 20, 2012 8:42 am    Post subject: Reply with quote

Hello Philippe,

Sorry but there is no way to preload data in optimizer.

as a workaround you can disable the execution of a strategy in code until the test reaches some date. Then you can start optimizer from 01-01-2009

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Tue Mar 20, 2012 9:00 am    Post subject: Reply with quote

FT Support wrote:
Hello Philippe,

Sorry but there is no way to preload data in optimizer.

as a workaround you can disable the execution of a strategy in code until the test reaches some date. Then you can start optimizer from 01-01-2009


Oh oh... So all indicators return wrong value during "shift" number of bars and iHigh, iXXX also return wrong value until "shift" number of bars is reach ?

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Wed Mar 21, 2012 5:44 pm    Post subject: Reply with quote

yes, some indicators may return "0" or incorrect values until some number of bars is reached.
_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Sat Apr 14, 2012 9:19 am    Post subject: Reply with quote

FT Support wrote:
Hello Philippe,

Sorry but there is no way to preload data in optimizer.

as a workaround you can disable the execution of a strategy in code until the test reaches some date. Then you can start optimizer from 01-01-2009


How can i do to set a parameter to select this starting date ? There is no ot_Tdatetime possibility ?

thks

Philippe

_________________
Philippe
Back to top
View user's profile Send private message
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Sat Apr 14, 2012 10:15 am    Post subject: SOLVED ! Reply with quote

Phil_Trade wrote:
FT Support wrote:
Hello Philippe,

Sorry but there is no way to preload data in optimizer.

as a workaround you can disable the execution of a strategy in code until the test reaches some date. Then you can start optimizer from 01-01-2009


How can i do to set a parameter to select this starting date ? There is no ot_Tdatetime possibility ?

thks

Philippe


I solve this with a Pchar param

OptimisationStartDateParam : Pchar = nil ; //(String is ok in testing but bug in optimisation !)

and this code in GetTick()

OptimisationStartDate := StrToDateTime(OptimisationStartDateParam);
if TimeCurrent >= OptimisationStartDate then
begin
// my strategie
end;

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Sat Apr 14, 2012 7:14 pm    Post subject: Reply with quote

As always thank you for sharing the solution you come to with others!
_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> General Questions about FT All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group