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, Subscribers Joined: 10/28/2004(UTC) Posts: 110
|
Patrick,
Thanks for all you have done on these.
I am experiencing a crash when I try to use the RSI.
Everything else seems to work okay.
Preston
|
|
|
|
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)
|
Really ??? How did you use the RSI function, what formula did you use?
Just so that I can test it myself :D
Patrick :mrgreen:
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 4/30/2005(UTC) Posts: 18
|
Hi Patrick,
What is the purpose for ForumDll.cpp
Thanks,
One_Waver
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 8/13/2005(UTC) Posts: 90
|
Hello, Patrick,
I wanted to have a 15 Period Triangular Moving Average, but I wanted that the moving average plot should start from the first bar itself. So as a workaround, I thought that during the initial bars the period for Moving average should be the same as the bar number. But the following formula is starting the plot from the 15th bar. Is it some problem in my formula or the DLL?
pds15 :=If(Cum(1)<15,Cum(1),15);
ExtFml("ForumDll.VarMOV",C,pds15,T) ;
Further, I have written code for Wilder's Smoothing on the same lines which plots the smoothing from the first bar. Can you please add Wilder's Smoothing also to the functions in the DLL. The formula I use is:
pds:=If(Cum(1)<13,Cum(1),13);
Wldsm:= PREV+(1/pds*(C-PREV));
Wldsm
Ragards
SMG
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/28/2004(UTC) Posts: 110
|
Patrick,
Not on my computer but it was somewhat similar to this
Vt:=(Stdev(C,5)/Mov(Stdev(C,5),10,S))*10;
ExtFml("ForumDll.VarRSI",C,vt)
Preston
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey patrick...... i get a floating point divide by 0 error using preston's code... but get the same error with your code, ExtFml("ForumDll.VarRSI", (H+O+L+C)/4, Mov(Stoch(5,3),10,E)),,so trouble might be on my end.....h
|
|
|
|
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)
|
one_waver wrote:Hi Patrick,
What is the purpose for ForumDll.cpp
Thanks,
One_Waver
This is the C++ source code for people who wants to see how it is programmed.
smg :
I did not know for sure how you guys wanted to handle but I could adjust the dll later and make use whatever we have until it can caclaute the average properly. I used to have it setup this but it kinda messed up the scale ...
Wilders ... sure maybe later, remind me in a week or so.
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)
|
Preston,
I do get an error as well with this formula. Thanks for the info I will work on fixing it.
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey patrick.... could it be case 9 is SUM instead of RSI....
break;
case 9: // This refers to the VarSUM Function
switch (a_iNthArg) {
the rest follow suit.....h
|
|
|
|
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 that's not it :D
Anything that starts with // is a comment.
Anything within
/* */ is also a comment for example
/*
jlsdjgajgupajd;gjs;dg
*/
It does not affect anything.
I believe the problems comes from my J setup right before the loop.
I would need to add some extra step like
if(periods==0){periods=i}
if(periods>=i){=i}
....
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/28/2004(UTC) Posts: 110
|
Patrick,
Find the RSI problem yet?
RSI is touchiest indicator there is for division by zero errors and I wonder if that isn't where the problem is?
Preston
|
|
|
|
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)
|
I have not looked at the dll for 3 days ... :D
I'm pretty sure I know how to fix the RSI problem quickly, I have just been to lazy to do it.
I will try to upload the fixed version this afternoon.
Patrick :mrgreen:
|
|
|
|
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 just been to lazy to do it
:smt015 :smt079
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/28/2004(UTC) Posts: 110
|
g_,
LOL!!
Might try a stick of dynamite!
or better yet :smt021
Preston
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
lazy?...... well lets see,
// You need to change the number of functions available here
//
// 1) Latch Patrick Nouvion
// 2) DateRange Patrick Nouvion
// 3) VarRef Patrick Nouvion
// 4) VarHHV Patrick Nouvion
// 5) VarLLV Patrick Nouvion
// 6) VarSUM Patrick Nouvion
// 7) VarHHVBARS Patrick Nouvion
// 8) VarLLVBARS Patrick Nouvion
// 9) VarMOV Patrick Nouvion
// 10) VarRSI Patrick Nouvion
// 11) VarMOM Patrick Nouvion
// 12) VarCMO Patrick Nouvion
i count patrick 12 and us'es 0..... kinda doubt lazy has anything to do with it..... h
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
D'oh!!! #-o Come on h... :roll:
Proof that hayseeds are pretty bright! :smt115
|
|
|
|
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, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey g.... judging from the world over interest in patrcks dll and the fact that its kinda unprecedented , 2 things come to mind,
A = it must be of high value
B = it must be difficult to code
Us'es better start helping out some before a + b = 13 .....h
---------------------------------------------------------------
// You need to change the number of functions available here
//
// 1) Latch Patrick Nouvion
// 2) DateRange Patrick Nouvion
// 3) VarRef Patrick Nouvion
// 4) VarHHV Patrick Nouvion
// 5) VarLLV Patrick Nouvion
// 6) VarSUM Patrick Nouvion
// 7) VarHHVBARS Patrick Nouvion
// 8) VarLLVBARS Patrick Nouvion
// 9) VarMOV Patrick Nouvion
// 10) VarRSI Patrick Nouvion
// 11) VarMOM Patrick Nouvion
// 12) VarCMO Patrick Nouvion
// 13) inter credit card here Patrick Nouvion
-------------------------------------------------------------------------------
|
|
|
|
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: 13) inter credit card here Patrick Nouvion :smt044
You crack me up :lol:
|
|
|
|
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.