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

Notification

Icon
Error

Options
Go to last post Go to first unread
akira  
#1 Posted : Wednesday, August 23, 2006 10:28:07 PM(UTC)
akira

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/24/2006(UTC)
Posts: 1

hi anyone knows how to modity this formula

Standard Deviation Bands

stdh := Mov(C,20,E)+2*(Stdev(C,20));
stdl := Mov(C,20,E)-2*(Stdev(C,20));
stdh;
stdl

so that i can change the followings parameters when i double click on the bands plotted?
period (currently hardcoded as '20') and coeificient ( hard coded as '2')


cheers
wabbit  
#2 Posted : Wednesday, August 23, 2006 10:45:06 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)
Akira,

Welcome to the Forum...

I think you will benefit greatly by reading the MS Users Manual and attempting all the exercises in the free Equis Formula Primer (from the downloads section). Both of these will give you the knowledge and know-how to build your own indicators, experts, explorations and systems; simple ones like expressed in this thread, and with some time and practice you will be able to code more complex ideas.

To get you started try this:

Code:

mul:=2;
prd:=20;

stdh := Mov(C,prd,E)+mul*(Stdev(C,prd));
stdl := Mov(C,prd,E)-mul*(Stdev(C,prd));

{plot}
stdh;
stdl;


OR

Code:

mul:=Input("StDev Multiplier",1,100,2);

prd:=Input("Periods",1,100,20);



stdh := Mov(C,prd,E)+mul*(Stdev(C,prd));

stdl := Mov(C,prd,E)-mul*(Stdev(C,prd));



{plot}

stdh;

stdl;




Hope this helps

wabbit [:D]
jjstein  
#3 Posted : Wednesday, August 23, 2006 11:03:28 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
FYI: To be consistent, the moving average should be "S" (simple), rather than "E" (Exponential); that is what the Standard Deviation calculation is based on.
Users browsing this topic
Guest (Hidden)
Similar Topics
February 2017: Exponential Standard Deviation Bands (2017)
by MS Support 7/28/2017 10:27:44 PM(UTC)
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.