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

Notification

Icon
Error

Options
Go to last post Go to first unread
spark68  
#1 Posted : Wednesday, March 15, 2006 9:01:25 PM(UTC)
spark68

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/14/2005(UTC)
Posts: 8

1) Is there a way to increse the size of the 'Limit or Stop Price' Box of the System Editor? It also appears that variables that I define in the formula box are not recognized in the 'Limit or Stop Price Box. Any way around this? 2) I am having a problem with 'divide by zero' errors that persist through an system test. When a contract is very young, there may be a single price for that entiore day, which means that the daily range equals zero, so when I divide anything by the daily range, there error comes up. Any advice? 3) How can I display more characters of the individual System names in the System list box of the Enhanced Sytem Tester? 4) Are there any good resources on the Enhanced System Tester? The manual seems to be very light on content for the more advanced capacbilities of the tester. Thanks, Scott
wabbit  
#2 Posted : Thursday, March 16, 2006 12:36:18 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)
spark68 wrote:
2) I am having a problem with 'divide by zero' errors that persist through an system test. When a contract is very young, there may be a single price for that entiore day, which means that the daily range equals zero, so when I divide anything by the daily range, there error comes up. Any advice?
I dont use the system tester much, so I cannot help too much. Someone else might answer soon, but on the code side of things, you could try: Whatever / Max(H-L,0.0001) Hope this helps. wabbit :D
mstt  
#3 Posted : Thursday, March 16, 2006 12:40:49 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Scott 1) Click on the function button for limit price entry formulas. This opens up a box so that you don't have the appearance of only being able to enter 1 line. You can prepare a formula in advance (say as an indicator or in the Buy Order window) and copy that into the single line, but editing is easier when opening the box with the function button. You are limited to 1048 caharater (I think) per Enhanced System Tester window, and if you can't get your formula down to size then you must offload what you can to the indicator builder. It may even be necessary for you to investigate "optimisation outside the ST", something covered in one of my newsletters. 2) You must modify your code by substituting an alternative value whenever the denominator is zero. The substitution needs to be made before the division attempts to execute. This can usually be done within the same variable but it's ofter better to perform the substitution ahead of the division variable. While many people substitute a timy value such as 0.00001 for zero, I have found that 1 is usually all that's needed to do the job. Check before and after results as indicators to see if you substitute value is acceptable. I seem to recall that the EST does not like divide-by-zero errors so substitution is the only way to go. 3) I don't think you can widen the window. The window size is non-adjustable 4) There's a good article in the EquisMetastock Yahoo group files section written by Tom Sprunger. That's a good place to start. I covered several points in a series of MSTT articles some time back. These were not aimed at the advance user as much as the average user who struggled to get the System Tester to do what was required. Most "problems" can be worked around once you understand the System Tester a little better and get a handle on what's possible and what's not. There are a number of issues that trip up the unwary. Roy MetaStock Tips & Tools
sportrider  
#4 Posted : Thursday, March 16, 2006 2:50:02 AM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

Scott, In the enhanced system tester what I do is copy one line in that window,then I click on the very end of it and paste the next line.Then you could scroll through it with the left or right arrow keys.I don't know how many times you could do this ;but I have pasted about 3-4 times this way until I got the whole formula in this one line.
mstt  
#5 Posted : Thursday, March 16, 2006 4:35:44 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Sportrider Click on the approprate "Function" botton and a window of 8-10 lines opens - much easier than trying to manage through the single-line window. You can paste multiple lines up to the maximum character space (1048 I think) into the single-line window, but that's about all it's good for. Check it out and make life easier for yourself. Roy
spark68  
#6 Posted : Thursday, March 16, 2006 1:56:35 PM(UTC)
spark68

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/14/2005(UTC)
Posts: 8

Regarding the System List width question. The window is wide enough for approx 15 characters, but I only see about 5 characters and then '...'. For example, a system named MACD and ADX is listed as 'MACD a...'. Thanks again
sportrider  
#7 Posted : Friday, March 17, 2006 3:46:49 AM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

Roy, Your right,for some reason this was sitting in front of my face and never dawn on me to click it.Many thanks,I thought I was doomed to the one line cut and paste.Thanks again
Mohsen  
#8 Posted : Tuesday, May 23, 2006 1:21:28 AM(UTC)
Mohsen

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/26/2006(UTC)
Posts: 2

Hello every body I'm new in this forum and have several problem in using these sources :P (the biggest is writing in English #-o ) I'm trying to ask a question and excuse me if I'm not good in English I'm trying to test a system .The BUY signals are all correct but SELL and BUY TO COVER orders are not in correct position. the condition for SELL ORDER is :(hi and lo are support and resistance) [color=darkblue:06273c81ba](cross(hi,l) and (highestsince(1,ref(cross(h,hi),-1),h)-hi)>=0.0040) or (cross(lo,l) and ( ValueWhen(1,cross(lo,l),lo) <> (ValueWhen(2,cross(lo,l),lo)))) or (hour()=23) or (dayofweek()=5 and hour()=21 and minute()=30)[/color] order type : stop [color=darkblue:06273c81ba]hi:= FmlVar("1_SCB System","H1") ; lo:= FmlVar("1_SCB System","L1") ; if(cross(lo,l) and ( ValueWhen(1,cross(lo,l),lo) <> (ValueWhen(2,cross(lo,l),lo))),lo,0) or if(hour()=23 or (dayofweek()=5 and hour()=21 and minute()=30),[color=red:06273c81ba]c[/color],0) or if(cross(hi,l) and (highestsince(1,ref(cross(h,hi),-1),h)-hi)>=0.0040,[color=red:06273c81ba]hi[/color],0)[/color] The problem is that the sell signals does not execute at specified (Red) prices :? when I use Simulation.currentPositionValue ,the order does not execute. Thanks for your helps
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.