Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Well Here is what I did, it will will in the downloads section ...
Here is the DLL file, rename the file for JWWILDER.[censored] to JWWILDER.dll
Then copy it in Drive:\\PROGRAM FILES\\Equis\\MetaStock\\External Function Dlls
The way this dll was programmed is that it calculates a SAR based on an data array of your choice and a limit value of your choice. I did not want to limit
it to what was in the book. The syntax is: ExtFml( "JWWILDER.CSAR", Data Array, Limit Move)
For example you could check the standard SAR, compare the built in indicator Parabolic SAR with a maximum .2
To the following indicator:
ExtFml( "JWWILDER.CSAR", Close, .2)
You will see that they are almost the same ( The difference lies in the fact the MetaStock SAR uses High and Low Values whereas the dll only uses one data array, in this case only the close value)
Anyways to recreate the System with the accumulation swing index you will need to write the following formulae:
For an indicator use :
ExtFml( "JWWILDER.CSAR", ASwing(5), 60)
{ Wilders uses a 60 point Trailing stop in the book, 5 is the Limit move for the swing index, and you can replace that by any value you want }
For A buy signal use:
AccSwingValue:= ASwing(5);
SARValue:=ExtFml( "JWWILDER.CSAR", AccSwingValue, 60);
Cross(AccSwingValue, SARValue)
For a sell signal use :
AccSwingValue:= ASwing(5);
SARValue:=ExtFml( "JWWILDER.CSAR", AccSwingValue, 60);
Cross( SARValue, AccSwingValue)
Hope this helps,
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 7/21/2005(UTC) Posts: 74 Location: Oklahoma USA
|
Should there be an attachment? I cannot locate the file to download. Thanks, Charley
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 7/21/2005(UTC) Posts: 74 Location: Oklahoma USA
|
Patrick, I need some help on this one - with this code ExtFml( "JWWILDER.CSAR", Close, .2) I do get close to the SAR. But when I use your code for the ASwing Indicator I get a number around 2550 applied on the NDX which closed around 1585 today. I tried changing some of the variables but I am not getting anything close to what I expected. Maybe you can shed some light for me. By the way, I had to change the name of the dll file that the self extracting file generated (i.e. JWWILDER_43.dll) to JWWILDER.dll to get it to work. Thanks again, Charley
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
[quote=JWWILDER.CSAR",RSI(14), 1)
this will only have any significance if scaled in the same window as the rsi(14) indicator ...
Hope this makes sense.
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Any comments on this? Has anyone played with it?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 7/21/2005(UTC) Posts: 74 Location: Oklahoma USA
|
Hi Patrick, I changed some variables related to the SAR portion and was able to get quicker signals (about 3 periods) than the standard SAR. However, like the standard SAR it doesn't appear the ExtFml SAR can be used as a trading system - good exit points though. The buy and sell formulas generated pretty good signals but were not real consistant when compared to hindsight MACD Peak/Trough signals. I need to try different variables to see if any change occurs. I am still having difficulty understanding the Accumulation Swing Index and need to further review Wilder on this. I know he used extreme points but the values I get doesn't seem to relate to the extreme points I can manually observe looking back over the data. As I posted before the ASwing is giving me a value of 2550 compared to the current NDX of arround 1580 ( the exterme point the way I figure it should be somewhere around 1628). I just have to do more research on this. Thanks, Charley
OK - I see that Wilder says that the 60 points are NOT in terms of the PRICE. pp. 97 New Concepts in Techinical Trading. I now understand no relation to price. Now I can work on the variables so the sgnals are optimized for the NDX. Later, Charley
|
|
|
|
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)
|
Patrick wrote:Any comments on this? Has anyone played with it?
How about ExtFml("WilderSAR.CSAR", Data Array, Step, Maximum) with variable Step/Max inputs?
jose '-)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
That's a 30 minute thing ... I guess I will just add this function to the next ForumDll version ... I don't see the need to have a separate dll. Maybe that will get some people to upgrade to 9.0 :twisted:
|
|
|
|
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)
|
Patrick wrote:Maybe that will get some people to upgrade to 9.0 :twisted:
The day that MetaStock v9.1+ can export formulae in backward-compatible mode with my clients' v8.0/8.01 versions, will be the day that I upgrade from MS v8.01. ;)
jose '-)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
WilderSAR.CSAR", Data Array, Step, Maximum) with variable Step/Max inputs?[/quote wrote:
Done ... Except that it is part of the forumdll now :
ExtFml("ForumDll.CSAR", Data Array, Step, Maximum) with variable Step/Max inputs ...
I will post this dll as a beta sometime this week end, both for 8.0 and 9.0 in the beta downloads section.
Patrick :mrgreen:
|
|
|
|
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)
|
Good work, Patrick.
Say, does the ForumDll v8.0 work with MS v9.0+ as well?
jose '-)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Quote:Say, does the ForumDll v8.0 work with MS v9.0+ as well?
Well ... I don't know for sure, never tested it :goofy: :oops:
Just tested the beta 8.0 that's in the download section right now and it works on my Meta 9.1 ... But It might be because I have all the dev kit stuff installed on my machine ... Maybe someone else should test it ...
Patrick :mrgreen:
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 10/31/2004(UTC) Posts: 14
Thanks: 4 times
|
Hi Patrick ,
In normal calculation Wilder's SAR start calculation from Swing High / low . Is it possible to add one more variable in your dll , so we can start SAR calculation from other point . for example Ref(Low,-1) / Ref(High,-1) or LLV(L,3) / HHV(High,3) ect.
May be Dll look like this with this variable.....
ExtFml("WilderSAR.CSAR", Data Array,Start Point Buy entry function,Start Point Sell entry function, Step, Maximum)
Regards
Harish Chheda
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Quote:Is it possible to add one more variable in your dll , so we can start SAR calculation from other point .
I could create the function for you if you want but I think it would be too difficult and too confusing to change the current version. Remind me about this in a few weeks if you still want it :D
Patrick :mgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/27/2005(UTC) Posts: 126 Location: Italy
|
I would have the following quesions for the author of this indicator:
a) your indicator comes close to Meyer's Analytics' "Five Parameter Parabolic Noise Filter System" add-on; wouldyou recommend using optimization to find the most appropriate parameters?
b) if I understand previous posts correctly, the customizable SAR can be used in place of signal lines in indicators; is this a use you would recommend? If so, is there a guideline on the selections of parameters or would one rely on optimization alone?
Thanks for helping us to improve our trading.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Five Parameter Parabolic Noise Filter System" add-on
:eek: I have no idea what that is :D And I usually do not recommend optimization ...
Quote:
b) if I understand previous posts correctly, the customizable SAR can be used in place of signal lines in indicators; is this a use you would recommend? If so, is there a guideline on the selections of parameters or would one rely on optimization alone?
.... :| ... I did not think about that, I guess it could be used to replace the classic moving average signal line ... It is a very good idea I would try it out. Ultimately you can use this however you want, it was originally meant to recreate a system and I went a little further by making the function a little more flexible ... As far as the selection parameter I would do a quick optimization, nothing huge, to get an idea. Maybe try it on standard tools, like an macd system .... Like an MACD SAR HISTOGRAM :D you know I'm using that somewhere g don't you :D
Anyways play with it and let me know how it goes, very good suggestion :D
Patrick :mrgreen
|
|
|
|
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)
|
Patrick, are these two plots supposed to be identical?
ExtFml("Forum.CSAR",C,.02,.2);
SAR(.02,.2);
jose '-)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
No because the standard SAR uses high and low values ... The custom function in your case only uses the close, so it should look very similar but not exactly the same.
Patrick :mrgreen:
|
|
|
|
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)
|
Patrick wrote:The custom function in your case only uses the close, so it should look very similar but not exactly the same.
The two plots look absolutely nothing like each other (MS Pro v8.01) - I think there is something wrong with that function.
jose '-)
|
|
|
|
Users browsing this topic |
|
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.