logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
swordman  
#1 Posted : Tuesday, April 18, 2006 8:52:22 AM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

I am using ver 7.2 . I will upgrade it soon . I wished the new version of metastock could add a command like 'entrybar' or 'exitbar' , or ' entrybar1 ' if it allows multiple contract in the system tester . I found it is a little redundant every time when I want to refer to the entry day or exit day by using the command valuewhen . For example , each time I don't want to open a position again after N days of the previous position closed . I can used 'barsince (exitday) > N ' , something like that . I could also limit the position for each month/period we opened if we have this function too . Sometime when a trend is very long . I found the new position will be opened again right after the next day the position closed . Correct me if I am wrong or there is already this function in newer version , thank you . Best Regards. :?
Plato  
#2 Posted : Tuesday, April 18, 2006 2:40:03 PM(UTC)
Plato

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/6/2005(UTC)
Posts: 19
Location: Salt Lake City, Utah

We are considering many language enhancements to future product considerations with system testing being among the chief benefactors. Thank you for your contributiion.
smg  
#3 Posted : Tuesday, April 18, 2006 3:41:59 PM(UTC)
smg

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/13/2005(UTC)
Posts: 90

Mr. Plato, I started using System Tester only recently, there are many features I came across in it, and faced some problems. I think it will be appropriate to post some of my initial observations: PROBLEM ONE:- In the Enhanced System Tester (EST) it is possible to have a dynamic Entry size (Based upon the results of a formula). For example, it is possible to write the following formula for entry size with the "Number of Units" option selected from the drop down menu. INT((4000/C)/50)*50 However,if we change the formula to: INT((4000/mov(c,s,2))/50)*50 The results of this formula will not be available on the first bar of testing. This non-availability of entry size on the first bar can have the following unexpected results: Buy & hold profit will be shown as ZERO Buy & hold perfomance will be shown as ZERO Buy & hold annulized perfomance will be shown as ZERO Buy & hold index will be shown as ZERO PROBLEM TWO:- The data range function in the Forum DLL is very good for controlling the test period range. However, it can only filter out trades and - it can not have its effect on the Buy & hold figures. Although,only those trades will be taken which fall with in the date range function, the Buy & hold figures as enumerated above will be calculated from the first bar specified in the date button of the system tester and they will be calculated upto the last bar. Further it is possible that the open trades may not be closed on the last bar,if option to close trades on last bar has been selected. SOLUTION:- Both the above problems can be solved,if we have load date range and test date range separately. There is a button with caption "dates..." on the select securities dialogue in EST. Here we can specify a date range or number of periods to use. It will be more convinient if the functionality of date range DLL function is formalised into this dates selection dialogue. I mean - please give option to select date/time range separately for LOAD date range and TEST date range here itself, on the lines of LOAD date Range and DISPLAY date range in X-axis properties. UserPostedImage UserPostedImage The load date range can ensure that all the formula used have appropriate defined valid values at the first bar of test date range and test date range can be used to calculate Buy & Hold figures, closing on last bar and obviously the system tester trades. I will look forward to have your views. Regards, SMG PS : Please pay particular attention to the YEAR in first image. Presently it is possible to write year in more than 4 digits there. This problem seems to be there in date and month portion also. You may want to ensure robustness here.
wabbit  
#4 Posted : Wednesday, April 19, 2006 1:34:48 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
smg wrote:
In the Enhanced System Tester (EST) it is possible to have a dynamic Entry size (Based upon the results of a formula). For example, it is possible to write the following formula for entry size with the "Number of Units" option selected from the drop down menu. INT((4000/C)/50)*50 However,if we change the formula to: INT((4000/mov(c,s,2))/50)*50 etc etc etc
smg, Changing the dates of the system test will not resolve the problem with setting the number of shares in that trade. The problem is not with the system tester, its with your code. INT((4000/mov(c,s,2))/50)*50 will not return a value until the second bar, just as mov(c,200,s) will not return a value in the first 199 bars. Its a limitation of the existing Mov() function in MS. Because the Mov() in your how-many-shares-to-buy formula returns NA for the first bar, the entire system will also be NA on the first bar, including the buy and hold! The way around this, dont use functions that wll return NA! It's like when you go to the doctor and say, "It hurts when I go like this.." and the doctor will respond, "Well dont go like that!" wabbit :D P.S. Its also why I wrote an MA dll file that will draw from the very left bar! But you didn't seem willing to test it - so you dont get it! Selfish? Yes. You were asked if you wanted to help - you didn't reply. Cest la vie! http://forum.equis.com/viewtopic.php?t=374
wabbit  
#5 Posted : Wednesday, April 19, 2006 3:09:09 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
swordman wrote:
I don't want to open a position again after N days of the previous position closed.
swordman, You can refer to the exit day as "exitday" - - you just have to define this day in a variable. See if this indicator does what you want... {simple crossover system} N:=8; exitday:=C<Mov(C,20,S); entryday:=C>Mov(C,20,S) AND BarsSince(exitday)>N; SE:=0; SX:=0; ExtFml("Forum2.Latch",entryday,exitday,SE,SX); Personally, I avoid using words like "day" in your formulae. What if you were looking at weekly or intraday charts? Then it would be "entryweek" or "entryminute" etc. Use either "bar" or just ignore the time frame altogether, "entry" and "exit" should suffice in most circumstances. {simple crossover system - long side only} N:=8; LX:=C<Mov(C,20,S); LE:=C>Mov(C,20,S) AND BarsSince(LX)>N; SE:=0; SX:=0; ExtFml("Forum2.Latch",LE,LX,SE,SX); Hope this helps. wabbit :D
smg  
#6 Posted : Wednesday, April 19, 2006 1:11:51 PM(UTC)
smg

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/13/2005(UTC)
Posts: 90

wabbit wrote:
P.S. Its also why I wrote an MA dll file that will draw from the very left bar! But you didn't seem willing to test it - so you dont get it! Selfish? Yes. You were asked if you wanted to help - you didn't reply. Cest la vie!
Thanks Wabbit for your explanation. First let me request you that you please give a smile first - I did try your MA DLL, it worked just like our stomach (So long as our stomach works fine we do not even think that it is there). Your DLL worked fine as expected, and deserved a post of Thanks, but just as we forget to thank our stomach, same with your DLL. Please accept it now. Incidentally, my FIRST post itself was related to this first bar valid Moving Averages: http://forum.equis.com/v...=0&postorder=asc&start=4 However the moving average example was just a simple example. there can be any reason for the value not being available on the first bar of System Test. I will request you to please go through the post again. May be I have not been able to explain the concept adequately, however I do feel that if we have Load Date range and Test Date range separately in EST like the X-axis properties of charts, the most complex of situations of values not being available on the First bar of test range can be solved because the we can ensure that FIRST TEST BAR is later than FIRST LOAD BAR and it can be ensured that it has valid values. One more smile please, it will help.... Regards SMG
swordman  
#7 Posted : Thursday, April 20, 2006 1:16:58 PM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

thanks again Wabbit ! You are great , but it seems that I dont have the formula called "Forum2.Latch" . I read the manual and found that this is one of the few function that I still do not fully understand after years of using MS . Is it a dll file under MS ? How can I obtain the function called Latch ?
wabbit  
#8 Posted : Thursday, April 20, 2006 1:24:18 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
The Forum Latch is available from the "downloads" section of the forum...http://forum.equis.com/drm_main.php You can get the Forum.dll file from the "stable versions" section or the Forum2.dll file from the "beta versions" section. Both have the latch function to which I was referring. At some point in time, Patrick will give us his latest version of the file... so there may be another version out soon?? Watch this space. wabbit :D
swordman  
#9 Posted : Thursday, April 20, 2006 1:49:56 PM(UTC)
swordman

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/10/2006(UTC)
Posts: 42
Location: Hong Kong

:P your reponse are so quick , thanks wabbit . I am disappointed after the watching the document file of latch dll . It is for version 8.0 or later .... I am still waiting Equis to reponse me how much I have to pay for a upgrade ? I have been waiting for more than one week ..... I really dont understand the sales department can response in a speed like this ... :(
StorkBite  
#10 Posted : Thursday, April 20, 2006 3:20:36 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Quote:
I really dont understand the sales department can response in a speed like this
:D They don't call him Wabbit for nothin! Thanks for the positive feedback Swordman!
Plato  
#11 Posted : Thursday, April 20, 2006 4:36:26 PM(UTC)
Plato

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/6/2005(UTC)
Posts: 19
Location: Salt Lake City, Utah

swordman wrote:
:P I am still waiting Equis to reponse me how much I have to pay for a upgrade ? :(
Swordman Call or email Equis Sales. Here is the contact information: https://www.metastock.co...mpany/about/Contact.aspx Product pricing information can be found here: https://www.metastock.co...oducts/pricingguide.aspx
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.