Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
Draw a line at price that RSI(24) will greater than 50.
thanks a lot. :)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Try this:
If(RSI(24)>50,1,0)
Also, don't forget to check out the Formula Primer. :D
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
Thanks for help :)
But can I draw a line like this image?
Draw a midline of WillR(9)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Try something like this:
Mid(WillR(9), 9)
You will have to set it on a new scale on the left for it to overlay like your graph above. Not sure what it all means though...
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
:) thanks , g_stockman
I think I have to explain it again.
I use Pepsico Monthly chart
|
|
|
|
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 Popcorn-
I'm just playing around with this, because I just have a persistent mental block with where we're trying to go. I think you're explaining it good... my antenna must be broken!
I don't know of any way to programmatically draw a horizontal line at some point, then another disconnected point. I don't mean to overlook the obvious... you could type 0;-50; 50 for example and get 3 disconnected lines, but that's not what you're asking.
What I have been able to do is set up a couple of indicators that might be similar to what you're looking for. If not, let me know and we'll look in another direction. It seems like your Pepsi data and mine are a little different... no biggie, just realize that my chart will not match yours exactly.
First, I made an indicator with the following formula: (H-L)/2+L
While that won't give you a horizontal line, you can change it to a point reference using the color/style tab in the properties dialog box. Select Style, and then the points figure at the bottom of the drop-down list. Then, select the heaviest weight. That will give you a point reference.
Next, I made another indicator with this formula: If(C<(H-L)/2+L AND WillR(9)<-50,1,0)
That will allow you to test what you are saying. If the price is below that horizontal line (point), the WillR(9) will be below -50. If that is indeed true, this indicator will plot a 1, else it will plot a zero if not true.
Let me know if I'm even close or not. Thanks for your patience.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
Thank you g-s, very much appreciated.
:)
I am from Taiwan, Pepsi data was got from yahoo.
:oops: The data is wrong.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
Some trading soft in Taiwan can draw a horizontal line at some point.
If not a horizontal line , can i do like this image?
Draw the midprice on chart
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
That, I can do... Try this:
[code:1:a82a86958f]al:=llv(c,9);
ah:=hhv(c,9);
am:=(al+ah)/2;
am[/code:1:a82a86958f]
Hmm... but you've already done it in your graph above... now, I'm confused again. :?
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
:P I want to draw a horizontal line all the time.
I just check out the Formula Primer. It's easy to write.
But how can i change it to RSI(14)?
RSI code seems to be complex.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
:)
I change indicator to RSI and want to draw a line like willR(9).
If the price is below that line ,the RSI(14) will be below 50.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Popcorn
I don't have the Formula Primer handy and you have unfortunately not included the particular reference you seem to have found.
My suggestion would be that you define the starting point of your line, then use that to "trigger" your RSI() value plot or whatever it is you're trying to plot.
Trigger:=Cross(RSI(C,24),50);
ValueWhen(1,Trigger, CLOSE);
If there are several trigger points created by your definition then your line will step from one value to the next with each trigger. There are numerous techniques for starting and ending a line at any preferred (and definable) point, and it's really up to you to learn the different techniques and use the ones that suit you best. ValueWhen() is the most useful function for truncating the left side of a line, and Ref(Ref()) can be used to truncate the right side of a line (shift forward/shift back).
Unfortunately I haven't really grasped from your comments and pictures exactly what you're trying to do so I may have missed the point completely.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
thanks, mstt :D
I'am writing a system using WillR and RSI.
I want to know at which price indicator will greater than 50 in advance.
It seems that it only draws the closing price that RSI is greater than 50.
I want to draw the line that can show me at which price RSI will greater than 50 or less than 50.
Look like this picture below.
If the closing price maintains above the gray line, WillR(9) will greater than -50.
Below the gray line, WillR(9) will less than -50.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Probably the best thing to do at this point is to go through the formula primer and see how some of the solutions are working. Start with some of the references that we've given to you and ask you questions if you can't get a particular part of the formula to work. There is a lot to start with herein and a system won't be built overnight.
Good luck to you. Write back if you have additional questions.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
:)
Thank you very much for help, g_stockman
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Popcorn
I think I understand you now, and if I do I have bad news. I don't think it's possible tp predict a CLOSE that will guarantee WillR above a certain value. I think it can be done with RSI() because there's only one unknown - the CLOSE. If I understand WillR correctly it also uses HIGH and LOW, so the result for the next bar will (could) be influenced by two additional unknowns. My maths isn't great but I think the best one could hope for would be an approximation.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 12/17/2005(UTC) Posts: 15
|
:?
I know that HLC will be influenced the indicator.
WillR(9) grayline will different everyday.
I only want to show an approximation in chart for convenient, not to predict close.
|
|
|
|
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.