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

Notification

Icon
Error

Options
Go to last post Go to first unread
bhoomin  
#1 Posted : Monday, July 3, 2006 2:49:54 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello, everybody, i ma new to the forum,i urgently need help in developing an explorer using stochastic ,pl.help me...i want a}current price b}stochastic in oversold-zone c}price when stochastic wa[censored]t before coming down ....and d}i want to filter the two price with a condition that the difference between them is less than 0.5% of the price.......anyone, pl...help me..bhoomin.
wabbit  
#2 Posted : Tuesday, July 4, 2006 12:09:47 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)
bhoomin, Welcome to the Forum. I hope you find the information in this peer-to-peer support network useful. Have you read through the MS Users Manual? There is a wealth of knowledge in there that will get you writing your own indicators and exploratons in no-time. Once you have read the manual (I recommend twice) then download the free Equis Formula Primer (available from the downloads section) and work your way through that. This will give you an excellent base from which to start writing your own codes. There are a lot of people here who are willing to ASSIST you to write your code, but you are going to have to at least make an attempt first. If your code does not achieve your aim, then post it here so we can take a look and help you repair what needs repairing. When posting your code, please post a FULL description of what you are trying to achieve, and a FULL description of the problem/error, along with ALL of the relevant code, and I am sure someone will be able to help you out. If you do not want to learn to program and would rather the Forum Members do all the work for you for free, this will will not happen. You will be encouraged to seek the services of a professional programmer, many members here can provide these services. Your exploration appears relatively simple for the most part. Try using the MS Users Manual and the Equis Formula Primer to code the first two columns of the exploration. If this exploration is returning the results you expect, then try for the third column, then the fourth etc. Start simply and work up from there. Noone became an expert overnight, it takes time to learn the subtleties of the MS Formula Language, but it is all written out for you in the documents I mentioned. If you get stuck, post your best attempts and I am sure someone here will quickly assist you to set your code right. wabbit :D P.S. I deleted your other post that was under the Free External Formulas sticky as this was not the appropriate place to post it.
bhoomin  
#3 Posted : Tuesday, July 4, 2006 1:08:06 AM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

thanks a lot wabit,u are right by all means,i have tried the first two steps succesfuly,the problem is with two others,still, as per your advice i will go thro. manuals twice ..and come back to the forum,with my precise needs....thanks again....bhoomin. :D
wabbit  
#4 Posted : Tuesday, July 4, 2006 1:12:50 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)
For column C; have a look at the ValueWhen() function. Once you have this price, this will help you solve the comparision of the two prices. ... and before you know it, you will have the exploration you are looking for and the satisfaction that you wrote it! The knowledge will stay with you forever, so you are now well on the way to be able to code all your explorations and indicators. wabbit :D
bhoomin  
#5 Posted : Tuesday, July 4, 2006 4:00:36 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello wabbit,thanks again,now,may i again explain what i exactly want?,i have observed a typical stochastic behaviour ,in which ,after an initial burst in the price(viceversa for the down move) the stochastic reaches the height,than as the price take a pause,it passes the time in a narrow range,and the indicator enters the o"sold zone,if and onlt if the damage in the price while the stochastic moves down is negligible or not severe,it virtually explodes,this is also very much effective using 15-30 min.s live charts.......sorry if it is too long .....now that is why i want to find out securities in which stochastic has come down without damaging price......a)close b)stoch (5,3) < 20 done but for c)i tried prev stoch(5,3) > 75.......i thought i can use this column to get the price at that point,,but the error says ,operator expected...what shal i do...than while i attached valuewhen it demands nth ? expression i am typing stoch(5<3) is it ok? as i cannot say how much bars it has taken for stoch to come down how can i use nth .... and for dataarray can i use close? pl.help me.......regards ...bhoomin
bhoomin  
#6 Posted : Tuesday, July 4, 2006 4:11:51 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello sir ,using valuewhen ... can i use this....valuewhen(1,stoch(5,3) > 75,close) ? will it give me the closing price when recently stoch was above 75,on first recent instance?
wabbit  
#7 Posted : Wednesday, July 5, 2006 12:04:23 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)
Not quite. ValueWhen(1,stoch(5,3) > 75,close) will give you the closing price on the last instance when the criteria was true. By example todoy, the stoch is below 75, so the code returns the close the last time the stoch was above 75 (this might have been some time ago). On the next bar the stoch moves above 75, so the code returns the close on that bar. This is good. The next bar the stoch is still above 75, so the code ruturns the close on that bar, but we only want when the stoch moves above 75 for the first time. Use some more code to trigger when the stoch moves from below the 75 line to above it. You could use the Cross() function, but I think the following code is better and more flexible: x:=stoch(5,3); y:=x>75 and alert(x<=75,2); this says the stoch today is aboove 75 and in the last two days the stoch has been equal to or below 75 (if today is > 75 then yesterday must have been <= 75, hence the crossing) You now measure the close on this event: valuewhen(1,y,c) But remember, this will still return the value of the close on the first instance when the stoch crossed the 75 line, even though on the latest bar the stoch may have fallen below 75. You can make up another criteria that says, if the stoch is still above 75 then return the price the first time is moved up, or if the stoch is below 75 return another number (0, -1 , or something else?) (x>75)*valuewhen(1,y,c); or another way: if(x>75, valuewhen(1,y,c), -1) Hope this helps. wabbit :D
bhoomin  
#8 Posted : Wednesday, July 5, 2006 12:49:24 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

dear sir, i think if temporarily i want to keep it simple,so i just want that at the time of exploration the stoch. is o.sold, and i want the price when the indicator was above 75 prior to coming down ...that is it...and iam getting two prices,,,now the key is filtering the difference between two prices,i want minimum difference between them ,,,my problem is how to put the difference in % terms...iam trying ,but give me a hint...as isaid firstly let me keep it simple...and thanks a lot...bhoomin
wabbit  
#9 Posted : Wednesday, July 5, 2006 1:20:17 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)
There are many ways to compare two data items like price. You just have to find one that works for you. Try something like: (Max(Price1, Price2)-Min(Price1.Price2))/Min(Price1,Price2) I'm sorry I didn't fully understand your last post, so maybe you could add a chart showing exactly what data you want to capture and show when the different criteria are met? A picture speaks 1000 words! Hope this helps. wabbit :D
bhoomin  
#10 Posted : Wednesday, July 5, 2006 3:28:09 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello wabbit,what i want is ...after an initial up move a stock gets accmulated,in a narrow range....now,this is shown by stochastic with very high accuracy,so i want to buy a stock in which stoch. goes down but the difference between the prices i.e. cirrent and when the stoch wa[censored]t previously is minimum say 0.5%,in my opinon that is a god buy..attached is a chart..UserPostedImage
bhoomin  
#11 Posted : Wednesday, July 5, 2006 3:47:11 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

another example, but this stock was selected as per my simple explorer..run as on todayUserPostedImage
wabbit  
#12 Posted : Thursday, July 6, 2006 1:55:25 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)
OK... I see what you are trying to achieve. I have already given you enough code by example to be able to do this; the task is not that complicated. I am hesitant to give you the solution without seeing what you have attempted. The whole idea of these forums is for your peers to ASSIST you to answer your problem, not to write all of the code for you. If you want people to write your code for you, then I suggest that you hire a professional programmer. You must try to help yourself, first. I have a solution ready for you, but I will not post it until you post your best attempt at solving the problem yourself. Please indicate in your attempt where the code fails, any error messages and a full version of the actual code you use. Again a chart will be extremely useful for us to be able to see where your code is mssing the objective. wabbit :D Give a man a fish ... teach a man to fish ...
bhoomin  
#13 Posted : Thursday, July 6, 2006 1:14:24 PM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

[color=cyan:fd33d00193][/color]thanks a lot sir,for actualy motivating me to go deeper...actually my code is working,but its very simple..as of now i am getting atleast something..frankly as novice i have to concentrate a little more,on week holidays i will definitly come-out with my best effort..but may i ask u one simple thing? in your opinion is this characteristics of stochastic very much [size=18:fd33d00193][/size:fd33d00193]known [size=12:fd33d00193][/size:fd33d00193]indication or has it something new and intersting ? thanks again,with a request to assist me like u are doing now :D bhoomin..
wabbit  
#14 Posted : Thursday, July 6, 2006 2:04: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)
I doubt there is too much more to be gained from the study of stochastics themselves. However, there might be some merit in observing the stochastic movents in each market to find some an exploitable trait, for trading. These traits might only be found in a small sector of one or two markets? Or they might be found more widely in slightly different guises? These are the joys of analysing stocks and markets! Good luck. I look forward to seeing your code. wabbit :D
bhoomin  
#15 Posted : Sunday, July 9, 2006 11:43:40 AM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello wabbit,here is my code......cola close...,colb stoch(5,3) < 25....,colc valuewhen( 1,stoch(5,3) > 80,close).....,cold if(stoch(5,3) > 75,valuewhen(,stoch(5,3) < 30,close),-1)......MY FILTER IS...(Max(colA,colC)-Min(colA,colC))/Min(colA,colC) AND colA >= 100 AND colC - colD > 10.....now simply put what i need again....i want a scrip which has RISEN with stoch reaching o.bot...then the PRICE has accumulated in a range, AND stoch reaching o.sold zone,where i want to pick it up...i want colc tobe higher than colmn. d but icouldnot put it in as good a manner in which u did, so i simply gave the diff. to be 10...is this to be responded with this =D> ?....also ,i learned that explorer runs extremely slow on LIVE DATA,can i increase the speed by selecting only say 50,scrips ? and can i put an alert on live data using this explorer ?thanks nad i am eagerly waiting your response...bhoomin
bhoomin  
#16 Posted : Monday, July 10, 2006 11:52:07 AM(UTC)
bhoomin

Rank: Member

Groups: Registered, Registered Users
Joined: 7/2/2006(UTC)
Posts: 10
Location: INDIA

hello,wabbit sir,where are u ? i am eagerly waiting for your responce....
wabbit  
#17 Posted : Wednesday, July 12, 2006 11:40:13 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)
This is the post I prepared some days ago. I haven't tested it, but at the time of writing I think I was following your instructions for your Exploration. -- Lets assign the indicator a variable... ind:=stoch(5,3); Find the price when the stoch moved from the overbought (75) to below 75... p1:=Valuewhen(1,ind<75 AND Alert(ind>=75,2),C); Find the price when the stoch enters the oversold region (25)... p2:=Valuewhen(1,ind<25 AND Alert(ind>=25,2),C); Now you want there to be only a minor difference between these two prices. Does it matter if p1 is higher or lower than p2? We can do something along the lines of... p3:=(Max(p1, p2)-Min(p1.p2))/Min(p1,p2); We now look for our criteria: {indicator to be oversold AND} {price difference less than 0.5%} ind<25 AND p3<0.005; See how this goes and let me know. If you want, you can reverse the process and find the stocks which have just entered the overbought region. wabbit :D
Users browsing this topic
Guest (Hidden)
Similar Topics
Stochastic Exploration Pl Guide (Formula Assistance)
by Joy55 6/2/2010 3:03:36 AM(UTC)
Stochastic exploration assistance (Formula Assistance)
by exportwork 4/15/2006 10:49:24 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.