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

Notification

Icon
Error

Options
Go to last post Go to first unread
Noel van Aswegen  
#1 Posted : Monday, March 13, 2006 2:02:00 PM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

Please let me know if it would be possible for someone to help me with a formula... I have the formula but cant manage to get it to work in Metastock... what would you need? just the code that i have?
Patrick  
#2 Posted : Monday, March 13, 2006 2:04:03 PM(UTC)
Patrick

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)
Please post the code you have and someone should be able to help :) ps: Make sure to disable smilies or use the code tag when you post your code.
Noel van Aswegen  
#3 Posted : Monday, March 13, 2006 2:48:42 PM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

The first code is for COT Proxy: (MovingAvg (Open - Close, bars uses in average) / MovingAvg (Range, bars used average) *50) + 50 I hope that makes sense... The other one im not so sure about... Im looking for the code for an indicator called Seasonal Index... this indicator takes all the january months over a period of years and adds them together and then divides them by the period of years... and does that for all the months and then calculates the average difference between the months e.g. Jan and Feb... Assistance will be greatly appreciated.. thanks
Noel van Aswegen  
#4 Posted : Wednesday, March 22, 2006 6:03:03 AM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

I have been trying to figure out how to apply Range within a formula but dont know how.... there is no Range option with in the formula functions.... i also would like to know how to put (open-close) within the Moving average formula..... This help is really and truly urgent and I am pulling out the last of my hair trying to figure it out so any help will be greatly appreciated Thanks
wabbit  
#5 Posted : Wednesday, March 22, 2006 6:49:17 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)
Noel, Have you read the MS Uses Manual? Have you attempted to complete the free Equis Formula Primer? If you had, then you would know the answer to your simple problem, and you would save your hair! Please do these simple tasks, help yourself first, then if you get stuck then please ask for more help. Until then, try either of these two ways: x:=O-C; Mov(x,21,S) OR Mov(O-C,21,S) Hope this helps. wabbit :D
Noel van Aswegen  
#6 Posted : Wednesday, March 22, 2006 8:24:28 AM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

Thanks Wabbit, I have read the manual but realised that I was being silly and notputting the comma at the end, your comment is greatly appreciated... Just one more thing though... do you know what range is? If so do you know how to use it within the program? Noel
wabbit  
#7 Posted : Wednesday, March 22, 2006 9:06:06 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)
Noel van Aswegen wrote:
Do you know what range is? If so do you know how to use it within the program?
Do you mean the built-in RangeIndicator() function? If so, you can create your own version using this code: --8<------------------------------------- {Equis RangeIndicator() function} {coded by wabbit} {22 March 2006} prd1:=Input("Range periods",1,100,10); prd2:=Input("Smoothing periods",1,100,3); x1:=If(ROC(C,1,$)>0, ATR(1)/Max(ROC(C,1,$),0.0001),ATR(1)); x2:=LLV(x1, prd1); x3:=HHV(x1, prd1); x4:=If(x3>x2, 100*(x1-x2)/(x3-x2), 100*(x1-x2)); x5:=Mov(x4,prd2,E); {plot} x5; --8<------------------------------------- or are you simply looking for the range for the day, computed... range:=H-L; or maybe, range:=O-C; or whatever? What do you want to do with the range information? What exactly are looking for? If you express your search/dream in explicit, simple terms then maybe we will have a better understanding of what you are trying to achieve and will therefore be able to provide more help. wabbit :D P.S. If you use SkyPE then callto:treatmentplant
Noel van Aswegen  
#8 Posted : Wednesday, March 22, 2006 9:26:43 AM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

Well it is actually for the formula right at the top... I need to get the Moving Average of the range... I have subsuquently used the difference between the Hi and Lo in the meantime to test the theory but not sure if it will work correctly... only time will tell though... ive sent the formula to be checked by a friend to see if it looks similar to what she has worked out and she will give me the go or not.. Thanks for all your help though.... I really really apreciate it..
wabbit  
#9 Posted : Wednesday, March 22, 2006 10:12:38 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)
If you post your code here, I am sure you will get a response, quickly. wabbit :D
Noel van Aswegen  
#10 Posted : Wednesday, March 22, 2006 10:49:47 AM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

I did! Its near the top of the page.... about the thrid Msg just after Patrick asked me to post the code... the formula is there...
StorkBite  
#11 Posted : Wednesday, March 22, 2006 4:09:01 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)
What is the plot supposed to look like? Perhaps you can build on something like this??? [code:1:c84ef8c318]pds:=Input("Range Periods",1,100,10); spds:=Input("Smoothing Periods",1,100,1); avg:=Mov(O-C,pds,S); rng:=RangeIndicator(pds,spds); plot:=avg/If(rng<>0,rng,1)*50; plot+50[/code:1:c84ef8c318]
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.