Incredible Charts Stock Market Charting Software. Home   Site Map   About Us   Advertise (pdf)   Contact Us  
 
 
You need to register separately on the Chart Forum
- see Chart Forum Help
Edit Profile Profile Help Help
Forum Rules Forum Rules Advanced Help/Instructions Advanced Help
Search Last 1|3|7 Days
Search Search Forum Tree View Tree View
   

SIROC Formula

Chart Forum » Indicators » SIROC Formula

««  Previous  Next  »»


 
Thread Start New Thread 
Last Poster Posts Pages Last Post
         

Author Message

Top of pagePrevious messageNext messageBottom of page Link to this message
trader123
Member
Username: trader123

Post Number: 1
Registered: 06-2008

Rating: N/A
Votes: 0


Thursday, June 19, 2008 - 03:19 pm:Copy highlighted text to 'New Message' boxEdit Post Delete Post Print Post    View Post/Check IP (Moderator/Admin only) Ban Poster IP (Moderator/Admin only) Move Post (Moderator/Admin Only)



I've found the below Metastock formula for the SIROC indicator but I can't work out how PREV is calculated even though I've checked the manual?

I'm trying to replicate the indicator in Excel and am stuck on a9 because of the use of PREV.

Can anyone help me out?

pr:= CLOSE;
a2:= Mov(pr,30,E);
a3:= Ref(a2,-30);
a4:= 34;
a5:= 13;
a6:= Mov((pr-a2)/a3,a4,E);
a7:= Ref(a6,-1);
a8:= If(a6>a7,a6-a7,0);
a9:= (a8+PREV*(a5-1))/a5;
a10:=If(a6<a7,a7-a6,0);
a11:= (a10+PREV*(a5-1))/a5;
Siroc:= 100*a9/(a9+a11);
Trigger:= Mov(Siroc,8,E);
Siroc;Trigger;10;90;







Top of pagePrevious messageNext messageBottom of page Link to this message
muzza
Member
Username: muzza

Post Number: 308
Registered: 06-2003

Rating: N/A
Votes: 0


Saturday, June 28, 2008 - 12:18 pm:Copy highlighted text to 'New Message' boxEdit Post Delete Post Print Post    View Post/Check IP (Moderator/Admin only) Ban Poster IP (Moderator/Admin only) Move Post (Moderator/Admin Only)



PREV in Metastock is a constant that allows the creation of a "self-referencing" formula

In the Metastock help they illustrate a simple example namely

((H+L+C)/3) + PREV

The means add the High, Low and close together and divide the result by 3. Then add yesterdays value of (H+L+C)/3 to the result.

Note "yesterday" means the values at the PREVIOUS bar - yesterday for daily, last week for weekly and so on.

So in your SIROC indicator where the statement assigns a value to a9

a9:= (a8+PREV*(a5-1))/a5;

I would read that to be make a9 = a8 plus the previous value of a8 times (a5-1) etc

I'd muck about with simple indicators in MS before coding SIROC in excel - and given the genius that I am please check what I am saying by testing as I could be wrong.

Fo e.g. you could make a simple test by making a8:=1 and then code a9 as is and see what displays on your indicator to test PREV

cheers

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

 
Other Threads  
Last PosterPostsPagesLast Post
Can I set an alert?bib26-Aug-08  10:27 pm
Moving average of indicator ?colin_twiggs09-Jul-08  10:25 am
Indicators - time periodsumamura13 06-Jun-08  01:22 pm
Twiggs Money Flow - and BMX, what tha?sumamura06-Jun-08  01:19 pm
Histogramwjbennet22-Apr-08  07:22 pm
No indicator can really lead any marketalexm34 22-Jan-08  01:17 pm
Advance/decline linesjames200118-Jan-08  10:51 am
Incrediblecharts Posts per Dayrastus8113-Jan-08  12:07 pm
Displaying an indicator ontop of the price chart colin_twiggs02-Jan-08  10:19 am
Twiggs money flow filter?lucifuge29-Dec-07  06:48 am
Twiggs Moneynihonjin13-Dec-07  04:54 pm
Moving Averagesingot5425-Nov-07  06:39 pm
OBVbarneyw08-Nov-07  09:46 am
Using the Scale's Numerical Valuesnihonjin21-Sep-07  01:30 pm

Threads by Last Post Time:

First Previous 6 7 8 9 10 11 12 13 14 15 Next Last

Administration Administration   Log Out Log Out    

««  Previous  Next  »»



59.35 msec