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

Notification

Icon
Error

Options
Go to last post Go to first unread
wabbit  
#1 Posted : Thursday, April 27, 2006 12:45:01 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)
I know I said I would have this test version out yesterday, but Uni got in my way! I have rebuilt the work I had done previously and fixed some mistakes. I have added a couple of new functions from many would have seen last time, and not re-written some too! I have attached the TEST version of my indicators and functions. It will expire on Sunday 07 May 2006, so please have your testing done before then. I haven't yet done any documentation for the indicators etc, so if you require confirmation about how something is being calculated, then please let me know. [color=red:c07b3fef41][size=18:c07b3fef41]Let me know of ALL of your successes and failures please.[/size:c07b3fef41][/color] wabbit :D {FILE REMOVED - EXPIRED}
Jose  
#2 Posted : Thursday, April 27, 2006 7:57:59 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
[color=olive:591206ec7e][size=6:591206ec7e]There should be a ban on the use of large bold red fonts...[/size:591206ec7e][/color]
wabbit  
#3 Posted : Thursday, April 27, 2006 8:11:22 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)
I guess it doesn't really matter what font size and colour I use, there will only be the courteous few who will acknowledge it anyway... the rest will just want everything for nothing! :? wabbit :D
StorkBite  
#4 Posted : Thursday, April 27, 2006 3:00:43 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)
Hey W... I want everything for nothing... jk! I really do want to give this test a go, but it will be a few days. Please bear with me.
sportrider  
#5 Posted : Thursday, April 27, 2006 3:29:29 PM(UTC)
sportrider

Rank: Advanced Member

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

Could some one please post the path for me or to save it as what? where? I tried opening but asked me with what?
StorkBite  
#6 Posted : Thursday, April 27, 2006 3:54:05 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)
SR- Is this what you mean?? Download "test.dll" to the MetaStock ExternalFunctionDll folder, most commonly found on your computer at C:\\Program Files\\Equis\\ExternalFunctionDll If MetaStock is running, close it and re-open it. The new functions will be available in the indicator Builder.
sportrider  
#7 Posted : Thursday, April 27, 2006 8:54:00 PM(UTC)
sportrider

Rank: Advanced Member

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

Thanks, exactly what I was looking for.
sportrider  
#8 Posted : Friday, April 28, 2006 3:27:41 AM(UTC)
sportrider

Rank: Advanced Member

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

Wabbit, I tried your count dll.I like it . I did notice one thing - and it might be me -,that was that when the conditions where met on the same day it would post the next day or wouldn't post at all,or if it gap through it would not show up.I'm not sure if its a concern or somthing thats its not suppose to do anyway.I used the cross function{ ExtFml( "test_357.Count",Cross(H,Mov(C,10,S)),Cross(Mov(C,10,S),L))}. It does just what its suppose to. With the exception of the above,then again it might be that i'm doing somthing wrong.
wabbit  
#9 Posted : Friday, April 28, 2006 12:56:22 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)
sportrider, Thanks for the feedback. The count function works: If the reset condition is met, reset the count to zero, then If the count condition is met then count +1 (or at least thats the way I envisaged it working... and based the progam code around this!!) So.... If the reset condition and the count condition both occur on the same bar, the following happens, in order, the reset, resets the counter to zero, then the count increments the counter (on this occasion) to one. I will (eventually) provide the truth table for the functions, but until then, thanks for the response. If this doesn't explain enough, then please ask for more. Hope this helps. wabbit :D
wabbit  
#10 Posted : Friday, April 28, 2006 1:11:37 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)
... and sorry sportrider, nothing in my data (ASX) met that criteria: x:=Cross(H,Mov(C,10,S)); y:=Cross(Mov(C,10,S),L); Cum(x=1 AND y=1)>0 returned nil for all stocks for all time. i.e. I cannot replicate your error on any of my data. wabbit :D
wabbit  
#11 Posted : Monday, May 1, 2006 12:59:28 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)
I take it then, the 22 people, so far, who have downloaded the addin have found that EVERYTHING works EXACTLY as it should. I will go tell Mr Ripley! (G_ and sportrider excused) wabbit :D If you want free stuff developed... ...you know how the rest goes.
smg  
#12 Posted : Wednesday, May 3, 2006 5:28:41 AM(UTC)
smg

Rank: Advanced Member

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

Mr. Wabbit, Today I tested some of the functions of your DLL. Here are some of my views: 1. ExtFml("Wtest_357.Count",1, Reset Condition Data Array) I used ONE in place of "Data Array to Count" - it seems that we can use your function in place of BarsSince Funtion with the benefit of the plot starting from the first bar. (there will be a difference of 1 when the BarsSince Funtion starts having valid values). 2. ExtFml( "Wtest_357.Sort",C,A) Initially, I thought that this functions is same as inbuilt Highest() and Lowest() functions, however it was behaving differently. Further this function seems to be looking into FUTURE. Frankly, I could not make out how to use it right now. 3. ExtFml( "Wtest_357.isDefined", Buy Qty Formula here , (Int((500000 / C) / 50) * 50)) This was the function which solved the problem of Value of Buy Quantity not being availble on first bar in System Tester in some instances, that used to result in all the Buy and Hold Statistics returning Zeros as discussed in: http://forum.equis.com/viewtopic.php?t=3775&postdays=0&postorder=asc&start=2
wabbit  
#13 Posted : Wednesday, May 3, 2006 8:14:14 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:
1. ExtFml("Wtest_357.Count",1, Reset Condition Data Array) I used ONE in place of "Data Array to Count" - it seems that we can use your function in place of BarsSince Funtion with the benefit of the plot starting from the first bar. (there will be a difference of 1 when the BarsSince Funtion starts having valid values).
Yes, the function will return 1 on the first instance and zero when reset.
smg wrote:
2. ExtFml( "Wtest_357.Sort",C,A) Initially, I thought that this functions is same as inbuilt Highest() and Lowest() functions, however it was behaving differently. Further this function seems to be looking into FUTURE. Frankly, I could not make out how to use it right now.
This is purely for statistical use. It simply sorts a data array in ascending or descending order. (Personally, I think it is of limited value... but it was requested and so it is coded)
smg wrote:
3. ExtFml( "Wtest_357.isDefined", Buy Qty Formula here , (Int((500000 / C) / 50) * 50)) This was the function which solved the problem of Value of Buy Quantity not being availble on first bar in System Tester in some instances, that used to result in all the Buy and Hold Statistics returning Zeros as discussed in: http://forum.equis.com/viewtopic.php?t=3775&postdays=0&postorder=asc&start=2
StorkBite  
#14 Posted : Thursday, May 4, 2006 9:56:03 AM(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)
The random generator is keep all the numbers within boundaries now. :-) Whenever the data is refreshed, so is the random number. As Jose mentioned elsewhere, a random generator only appears random. In this case, if you plot two separate indicators with the same boundaries in two different windows, the plots will be the same. If it's that important, maybe you could create a varying seed number to better simulate randomness. In what circumstance will you actually use the random generator?
wabbit  
#15 Posted : Thursday, May 4, 2006 10:25:57 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)
g_stockman wrote:
The random generator is keep all the numbers within boundaries now.
Thats was the idea!!
g_stockman wrote:
Whenever the data is refreshed, so is the random number
Every time the function is called, the clock in the computer re-seeds the random function.
g_stockman wrote:
As Jose mentioned elsewhere, a random generator only appears random
This function, more correctly, is pseudo random. Generation of true randomness usually takes a very complicated algorithm, seeded using physical attributes like radioactive decay or white noise in a speaker etc. This is just a simple function.
g_stockman wrote:
In this case, if you plot two separate indicators with the same boundaries in two different windows, the plots will be the same. If it's that important, maybe you could create a varying seed number to better simulate randomness.
To be perfectly honest, I had never considered the user might use two random plots on the same chart, and so only have a single clock-set seed. I will change it when I get time to have a random seed, so each time the function is called there is a different response.
g_stockman wrote:
In what circumstance will you actually use the random generator?
I have no idea. I just coded it because someone asked for it! Thanks for the comments. wabbit :D
StorkBite  
#16 Posted : Thursday, May 4, 2006 6:38:06 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 have no idea. I just coded it because someone asked for it!
You're the man! :D
wabbit  
#17 Posted : Wednesday, May 10, 2006 9:15:17 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)
OK Team, By now you might have noticed the .dll functions do not work any more. The TESTING VERSION .dll expired last Sunday. What did you think? Were the functions useful? Were the functions correct? What needs expanding? What other functions do you now think are required to compliment these ones? I have a little re-working to do, just a tweak here and there, but do you want me to issue this as a complete .dll or break out the statistical functions? How about some feedback? wabbit :D
sportrider  
#18 Posted : Thursday, May 11, 2006 1:54:57 AM(UTC)
sportrider

Rank: Advanced Member

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

I like complete dll
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.