﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>ActFX Algorithmic Trading » ActFX » News and Opinion  » Strategy Tester!</title><generator>InstantForum.NET 2012-1</generator><description>ActFX Algorithmic Trading</description><link>http://forum.actfx.com/</link><webMaster>ActFX Algorithmic Trading</webMaster><lastBuildDate>Sun, 20 May 2012 22:44:23 GMT</lastBuildDate><ttl>20</ttl><item><title>Strategy Tester!</title><link>http://forum.actfx.com/FindPost353.aspx</link><description>How do you like the strategy tester? :)</description><pubDate>Thu, 12 Aug 2010 17:26:11 GMT</pubDate><dc:creator>miner</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1849.aspx</link><description>Hi Den,&lt;br&gt;&lt;br&gt;I have both demo and real accounts with AvaFX and I can/have traded 5000 units with those accounts ( 0.05 lots )&lt;br&gt;&lt;br&gt;There is more to it than that though... &lt;br&gt;&lt;br&gt;&lt;br&gt;For example, the manual says that TTrade.Amount is a double type. If I use something like this in my code:&lt;br&gt;&lt;br&gt;log( 'Amount: ' + Format('%.2f', [Trade.Amount]) );&lt;br&gt;&lt;br&gt;it spits the dummy saying that incorrect argument type is supplied. &lt;br&gt;&lt;br&gt;&lt;br&gt;On the other hand if I use '%d' as the formatting string then it is happy. &lt;br&gt;So obviously TTrade.Amount is an *integer* as far as log( ) is concerned.&lt;br&gt;&lt;br&gt;&lt;br&gt;That would also explain why I can't use lot numbers *less* than 1.0.&lt;br&gt;&lt;br&gt;0.5 becomes 1, &lt;br&gt;1.5 which becomes 2! ie the "lot amount" get rounded up to the nearest *integer* when log() &lt;br&gt;is using TTrade.Amount...&lt;br&gt;&lt;br&gt;&lt;br&gt;Then, when I check Open/Closed trades the lots &lt;br&gt;will actually show Trade.Amount * 5000 ???&lt;br&gt;&lt;br&gt;so if I create an order with &lt;br&gt;  amount set to 0.5 then I get traded amount of 5000 ( ie 0.5 converted to 1 then multiplied by 5000 )&lt;br&gt; *and* log() prints TTrade.Amount as 1,&lt;br&gt;for&lt;br&gt;  order amount set to 1.5, I get traded amount of 7500 ( ie 1.5 * 5000 )&lt;br&gt; *and* log() prints TTrade.Amount as 2 !!!&lt;br&gt;&lt;br&gt;&lt;br&gt;This thing is driving me crazy, it just doesn't make sense!&lt;br&gt;&lt;br&gt;Needless to say that testing is impossible with it.&lt;br&gt;&lt;br&gt;&lt;br&gt;Any ideas? Any one?&lt;br&gt;&lt;br&gt;F.&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 12 Aug 2010 17:26:11 GMT</pubDate><dc:creator>fractal_thoughts</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1817.aspx</link><description>&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;FONT color=#000000&gt;Hi, Fractal thoughts&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;FONT color=#000000&gt;I have just done this situation. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;FONT color=#000000&gt;I don't know if it's just me or others have problems with S.T.&lt;BR&gt;&lt;BR&gt;One example is the mysterious floating point exceptions. First if I create an order with smaller than 1 lot "amount" it throws an exception. Why? I thought the minimal lot size is 0.05...&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;FONT color=#000000&gt;In my case I can choose different number of lot, I have tasted it with 0.05 &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;0.5 1 5 lots and everything works greater but only in tester. I think you have to speak with your dealing desk. Because they could set min lot in 1, in that case you are not able to buy or sell with lot 0.5 or less.&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;Then, if I place an order for 1 lot, it actually sets the "amount" to 5000. Why? I also found that if I do a&lt;BR&gt;Log( 'Trade Amount: ' + FloatToStr( trade.Amount ) ) //-- or something similar --// then the logger actually shows 0&lt;BR&gt;when I placed an order for 1 lot!&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;And the manual is not much help either.&lt;BR&gt;Also, why cant the tester remember some of the configuration of the last run? It's so annoying to have to configure new runs every time. Eg if I set the color of a moving average indicator, chances are that I want the same color the next time... or if I want to check data for the last 100 days, chances are that I will want to use 100 days on the next run *too*&lt;BR&gt;&lt;BR&gt;All-in-all and I say this *with respect*, the whole platform seems a little immature more like a high-school project that needs another year or two worth of work on it.&lt;BR&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"&gt;F.&lt;/SPAN&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-ansi-language: EN-US" lang=EN-US&gt;&lt;FONT color=#000000&gt;Regards, Den &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;</description><pubDate>Wed, 28 Jul 2010 04:29:28 GMT</pubDate><dc:creator>Den</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1815.aspx</link><description>I don't know if it's just me or others have problems with S.T.&lt;br&gt;&lt;br&gt;One example is the mysterious floating point exceptions. First if I create an order with smaller than 1 lot "amount" it throws an exception. Why? I thought the minimal lot size is 0.05...&lt;br&gt;&lt;br&gt;Then, if I place an order for 1 lot, it actually sets the "amount" to 5000. Why? I also found that if I do a&lt;br&gt;Log( 'Trade Amount: ' + FloatToStr( trade.Amount ) ) //-- or something similar --// then the logger actually shows 0&lt;br&gt;when I placed an order for 1 lot!&lt;br&gt;&lt;br&gt;And the manual is not much help either.&lt;br&gt;&lt;br&gt;Also, why cant the tester remember some of the configuration of the last run? It's so annoying to have to configure new runs every time. Eg if I set the color of a moving average indicator, chances are that I want the same color the next time... or if I want to check data for the last 100 days, chances are that I will want to use 100 days on the next run *too*&lt;br&gt;&lt;br&gt;All-in-all and I say this *with respect*, the whole platform seems a little immature more like a high-school project that needs another year or two worth of work on it.&lt;br&gt;&lt;br&gt;F.&lt;br&gt;</description><pubDate>Tue, 27 Jul 2010 15:41:23 GMT</pubDate><dc:creator>fractal_thoughts</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1722.aspx</link><description>Hi Everyone&lt;br&gt;&lt;br&gt;&lt;br&gt;I used the test for a few days as I wanted to use the Entry orders strategy in real (EURUSD, 1 hour, 200 candlesticks). The preset of the stop order was 15 pips. I only wanted to observe the Entry Limit orders thatswhy I setted the Enrty Stop Distance to 9999.&lt;br&gt;&lt;br&gt;In the course of the test the strategy placed many orders close to each other. For example when there was a strong bullish movement, a lot of orders were executed in almost the same time. (sell positions)&lt;br&gt;&lt;br&gt;If I observe this breaking bullish movement slowly I realise that there is a moment when the green candle is on its top and some of the opened positions show -25, -23 pips however 15 pips stop+3 pip spread should have allowed maximum 18 pips loss. After the candle falls back these positions will be closed with PROFIT which is not true for the real life.&lt;br&gt;Bigger problem that on April the 11th 2010. I should have lost about -200 pips (in real life) and instead of this the Floating Profit/Loss was more than -2000 pips just for a moment and when the bullish candle fell back, all of the opened positions ended with PROFIT so my observation is true for bigger cases alike.&lt;br&gt;&lt;br&gt;I suppose that in one hour testing the server does not provide data for all the past moments and the test simply skipped over my stop point. But if this is true why the test does not skipped over my limit point as well?&lt;br&gt;One thing is true: if I cannot find the reason, I will not be able to use the test because it would not be based on the REAL past and provides false data.&lt;br&gt;&lt;br&gt;What do you think? Have you also faced this problem?</description><pubDate>Tue, 06 Jul 2010 23:49:09 GMT</pubDate><dc:creator>hawaii1983</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1088.aspx</link><description>Mine works! That's a great improvement!</description><pubDate>Tue, 02 Mar 2010 00:16:21 GMT</pubDate><dc:creator>eMoe</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1078.aspx</link><description>Hello all!&lt;br&gt;&lt;br&gt;Looks like it is now possible to test a strategy using more than 100 values! (at least in my installation of the application) :)</description><pubDate>Mon, 01 Mar 2010 00:06:06 GMT</pubDate><dc:creator>usd</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1030.aspx</link><description>Would love to be able to test on weekends too when the markets are down.  Sometimes I'm able to log into a demo account on the weekend, other times not...  it should be available all the time for testing.  OR have an offline mode and store data locally for testing.   There is an app I've been using lately, check it out:  http://forexsb.com/  It's pretty good. perhaps ActFx can integrate with it :)</description><pubDate>Fri, 19 Feb 2010 04:31:16 GMT</pubDate><dc:creator>GregorAnton</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost1022.aspx</link><description>That's ture. Being unable to fully test causes unconvenience.</description><pubDate>Fri, 19 Feb 2010 04:02:35 GMT</pubDate><dc:creator>bobby</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost888.aspx</link><description>Can't wait until I will be able to test using more data</description><pubDate>Thu, 28 Jan 2010 04:17:06 GMT</pubDate><dc:creator>E.W.</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost509.aspx</link><description>It has happened to me several times too. This just means that the data is not storen in the database for such a long time.</description><pubDate>Wed, 02 Dec 2009 06:15:46 GMT</pubDate><dc:creator>dwight</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost485.aspx</link><description>Very often, when trying to test, I receive an error 'No chart data for...' Why does it happen?</description><pubDate>Fri, 27 Nov 2009 03:41:38 GMT</pubDate><dc:creator>foster</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost476.aspx</link><description>Great! Thanks a lot!!</description><pubDate>Mon, 23 Nov 2009 23:05:27 GMT</pubDate><dc:creator>dwight</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost461.aspx</link><description>Scriptor and Stone,&lt;br&gt;Thank you very much for the feedback. We are aware of this problem, and hopefully it will be fixed soon. Sorry for the inconvenience.</description><pubDate>Tue, 17 Nov 2009 04:42:09 GMT</pubDate><dc:creator>Admin</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost457.aspx</link><description>I had the same problem. Could you please fix, or are we doing anything wrong?</description><pubDate>Tue, 17 Nov 2009 03:19:58 GMT</pubDate><dc:creator>stone</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost450.aspx</link><description>Is there any way to use a bigger number of candles for backtesting? I did not manage to get more than 100 candles :ermm:</description><pubDate>Mon, 16 Nov 2009 05:20:53 GMT</pubDate><dc:creator>scriptor</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost357.aspx</link><description>Oh, I found it. Thank you!</description><pubDate>Thu, 12 Nov 2009 01:22:48 GMT</pubDate><dc:creator>eMoe</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost356.aspx</link><description>You can see them displayed. There is a button on the chart in the Tester just as in a regular chart. :)</description><pubDate>Tue, 10 Nov 2009 15:21:13 GMT</pubDate><dc:creator>shark</dc:creator></item><item><title>RE: Strategy Tester!</title><link>http://forum.actfx.com/FindPost355.aspx</link><description>I like the tester. However i would like to see open positions displayed on the chart as well as closed positions.</description><pubDate>Mon, 09 Nov 2009 06:15:32 GMT</pubDate><dc:creator>eMoe</dc:creator></item></channel></rss>
