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 13, 2006 12:45:55 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)
Available now for TESTING!!! - No promises, yet! Just download: [FILE REMOVED - - see below] and do what needs to be done. PLEASE, PLEASE, PLEASE.... can I have some feedback?? If noone tells me it works, or doesnt work then I will not how it goes! PLUS - I offer these indicators for FREE.... a little thanks every now and then etc etc etc They are fixed period at the moment. IF -R- IF I get some feedback, I may consider making them variable period indicators, like currently exist in the Forum.dll. wabbit :D
StorkBite  
#2 Posted : Thursday, April 13, 2006 8:18:13 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 think this is right on the money! I got both MA's to plot exactly the same as the stock indicators, except that they start on the first bar. They plot quickly too. When I compared them side by side their counterparts in Explorer, the times to calcualte were identical. Very nice! :rockin:
StorkBite  
#3 Posted : Friday, April 14, 2006 10:51:38 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)
Ok, now that I've had a chance to digest your achievement, how are you doing it? Plain English please. :) I think maybe there are some pretty big implications in the making if this method can be used to make a common zero reference point.
wabbit  
#4 Posted : Friday, April 14, 2006 11:30: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)
In laymans terms, it says, SMA ... until the number of bars on the chart is equal to or greater than the number of bars wanted by the user, just take the average over the number of bars that exist... so on the first bar, the SMA returns the average of the first bar i.e the first bar on the second bar, the average of the first two bars on the third bar, the average of the three bars etc etc until the right number of bars is reached, then it works just like 'normal' EMA the first value is the value of the first bar, from there its just like an EMA should work -> %pct(YesterdaysMA) + %pct(TodaysValue) wabbit :D
Jose  
#5 Posted : Friday, April 14, 2006 11:53:17 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)
Hmmm... sounds very much like this ancient indicator: [code:1:9b96b8240a] === EMA === ---8<--------------------------- { Exponential Moving Average v2.2 } { EMA periodicity shortens on low bar count } { ©Copyright 2003-2004 Jose Silva } { http://www.metastocktools.com } pds:=Input("EMA periods",1,2520,21); x:=Input("use Open=1 High=2 Low=3 Close=4 WClose=5 P=6",1,6,4); shift:=Input("EMA vertical shift %",-100,100,0)/100+1; plot:=Input("[1]EMA, [2]Crossover signals",1,2,1); x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=5,WC(),If(x=6,P,C))))); pds:=If(pds>Cum(IsDefined(x)),Cum(IsDefined(x)),pds); Ema:=x*2/(pds+1)+PREV*(1-2/(pds+1)); Ema:=Ema*shift; signals:=Cross(x,Ema)-Cross(Ema,x); If(plot=2,signals,Ema) ---8<--------------------------- [/code:1:9b96b8240a] jose '-)
wabbit  
#6 Posted : Friday, April 14, 2006 12:52:41 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)
Funnly enough, in the dll it goes like this: if(i<=1) l_fMA = l_psData->pfValue; else l_fMA = (a_psResultRec->psResultArray->pfValue[i-1] * (1.0 - l_fPct)) + (l_psData->pfValue*l_fPct); wabbit :D
wabbit  
#7 Posted : Saturday, April 15, 2006 9:29:10 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)
Thanks guys for the feedback. DLL HAS BEEN UPDATED .... Now has variable time periods! Just re-download the dll file again. Please let me know if there are any problems. Happy Easter. wabbit :D
wabbit  
#8 Posted : Monday, April 17, 2006 2:55: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)
... on second thoughts, if you want a copy of the dll as a TESTER then please PM me.... wabbit :D
hayseed  
#9 Posted : Wednesday, April 19, 2006 4:08:01 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey wabbit.... both the ema and sma checked out fine..... they plot perfect..... good work.... btw, you didn't really fall for britneys link did ya...... the '[color=red:b849c1a0a4].pif [/color]' was a dead give away...... h
wabbit  
#10 Posted : Wednesday, April 19, 2006 4:23:54 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)
Nah didn't fall for it... although, as I said, I did download it, on purpose. I like collecting viruses (virii?) and stuff like that. I used to have a large collection of virii, trojans and malicious stuff, before my old HD died taking out the rest of the components with a massive power spike inside the case! I had years of collected works wiped out in flash of blue light, with sparks and smoke. (I never backed these up, on purpose) Some of the code was very good, it gave me some great ideas on how to do other things more efficiently etc. Some, like this .pif file were just poorly constructed and written annoyances by some bored pre-pubescent in a high school IT class. I just like taking code apart... its sort of a hobby. Whether it be MS code, or any other code. Its also a good way to test out different hacking tools and decompilers etc. Not to mention a good way to test out some of the different anti-virus and firewall software. Download the virus onto one machine in your local network, and try to get it to infect another on the same network, through differnt AV tools and firewalls. You'd be surprised how many things can get through one, two or more of the different defence systems. Each has its strong points and weak points. e.g. Windows firewall is very little defence against even (nowadays) un-sophisitcated attacks. wabbit :D
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.