Discussing How to Use Backtesting? article

All posts which do not fit into any other sections of the forum.

Moderator: admin

Re: Discussing How to Use Backtesting? article

Postby LordTwig » Sat Feb 04, 2012 4:15 am

Thanks Pipgrabber,

Yeah I didn't see that 'Common.lua.rc' was needed at top of resource file......tah.
It holds all missing resource data (that I ended up adding to the resource file myself....since deleted now I have your fix......

Fixed :226 attempt to concatenate global 'Buy' (a nil value). Silly me 'Buy' was supposed to be 'BUY'.... two totally different variables....My bad

PipGrabber wrote:But somehow it doesn't close open trades manually or those created by other strategies. But the terminal message alert says its closed. But the open trade is still there. I wonder if it detects open trades during enum. What could be the cause of such? (theoretically it should work right?)

I don't know the answer either, maybe Nikolay Gekht can answer that??

Cheers
Lordtwig
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: Discussing How to Use Backtesting? article

Postby Apprentice » Sun Feb 05, 2012 3:21 am

I would prefer to have access to the complete code.

Regarding the former issue.
Generally, if you replace all calls from external sources,
Then you will not need this rc.lua.

Instance.
Before (using rc.lua)
Indicator: Description (Resources: get ("description"));
after
Indicator: Description ("Description");

Instead of "Description" you can write anything.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23016
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Discussing How to Use Backtesting? article

Postby jackfx09 » Sat Feb 11, 2012 9:51 am

I have the latest release of Trade Station loaded but I have errors listed when I try to perform backtests. "Failed to load BIGMACINDEX: the file format or version is invalid". Is there something I need to do. thanks!


sjc
jackfx09
 
Posts: 53
Joined: Wed Aug 17, 2011 1:03 pm

Re: Discussing How to Use Backtesting? article

Postby Apprentice » Sun Feb 12, 2012 3:37 am

I can not be sure.
But you probably have version of this indicator, which is several months old.
Download this new version should fix things.
In the meantime, TS has been updated, and the indicator has become incompatible.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23016
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Discussing How to Use Backtesting? article

Postby boss_hogg » Thu Feb 28, 2013 11:45 am

Regarding the length in time of the backtesting, how many candles would you go back to test a strategy in a specific time frame? A few hundred, a few thousand? Is there a rule of thumb?

Cheers,
Alkis
boss_hogg
FXCodeBase: Confirmed User
 
Posts: 48
Joined: Fri Oct 26, 2012 3:03 am

Re: Discussing How to Use Backtesting? article

Postby willcsk » Sat Mar 16, 2013 11:43 am

hi there,,

im trying to place a pending order n got this error..
"specified offer not found,"

after some reading n searching ,, still cant figure it out ...

need some pointer from u,,,

thx,,,

-willie-
willcsk
 
Posts: 18
Joined: Sat Jan 05, 2013 3:21 am

Re: Discussing How to Use Backtesting? article

Postby Victor.Tereschenko » Tue Mar 19, 2013 5:51 am

willcsk wrote:hi there,,

im trying to place a pending order n got this error..
"specified offer not found,"

after some reading n searching ,, still cant figure it out ...

need some pointer from u,,,

thx,,,

-willie-

You'll get this error when you fill an incorrect value into the OfferID field. Check what this field contain when you get this error.
“There are only three sports: bullfighting, motor racing, and mountaineering; all the rest are merely games.” (c) Ernest Hemingway
Victor.Tereschenko
FXCodeBase: Confirmed User
 
Posts: 134
Joined: Fri Nov 19, 2010 8:55 am

Re: Discussing How to Use Backtesting? article

Postby boss_hogg » Tue Apr 02, 2013 3:16 pm

Hi again, I just realised a serious issue with backtesting; I searched for relevant posts but didn't manage to find any.

Anyway, when I test a strategy on the TSII strategy backtester and the Lua Strategy Debugger->tools->check performance/backtest, I get completely different results! Different number of trades, different number of ticks simulated, different total P/L, different everything! Is there a reason for this?
boss_hogg
FXCodeBase: Confirmed User
 
Posts: 48
Joined: Fri Oct 26, 2012 3:03 am

Re: Discussing How to Use Backtesting? article

Postby boss_hogg » Mon Apr 08, 2013 2:59 pm

Is there an answer to my question above? I'm sure there is a reason for different results but it is essential to know which backtesting tool to trust and why...
boss_hogg
FXCodeBase: Confirmed User
 
Posts: 48
Joined: Fri Oct 26, 2012 3:03 am

Re: Discussing How to Use Backtesting? article

Postby Alexey.Pechurin » Wed Apr 10, 2013 6:56 am

Hi, boss_hogg

I compared Indicore SDK 2.1 (the current version from fxcodebase) and
the last version of TS (01.12.031913) - it may be downloaded from fxcm.com.

I tried MA_ADVISOR strategy on EUR/USD and received exactly the same
results. Note that input paramters must be carefully matched:
- Use Quotes Manager prices;
- Account currency (USD);
- Are closing orders allowed -> FIFO/Non FIFO;
- Is hedging allowed -> Non FIFO with hedging;
- MMR is better to take from TS Backtester;
- Lot Size -> Account lot size;
- Allow Trading must be set to True;
When Indicore Debugger asks for Get History it's better to answer
Empty History.

In this circumstances I got exactly the same statistics. Note that
this version of Indicore SDK has known problems with backtesting of
CFD instruments that will be fixed in the next version which is not
released officially yet. The last version of TS Backtester doesn't
have such problems. So backtesting of CFD instruments can produce
different results.

Could you please provide more information about your backtesting
settings. Probably could you send to us Indicore project and TS
Backtester project which produce different results to investigate?

Thank you.
Alexey.Pechurin
 
Posts: 98
Joined: Sun Jul 22, 2012 11:26 pm

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 4 guests