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

Notification

Icon
Error

Options
Go to last post Go to first unread
konrad  
#1 Posted : Tuesday, October 25, 2005 5:37:43 PM(UTC)
konrad

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 424
Location: connecticut,USA

if(c,12,s)> (C,15,S)( -1,0) ROC( c,15,S)< ROC( C,20,S) (-1,0) if it is , or if its not, how this influence in graph? how I can check if this is true or is false , where I can see this on graph?Why is require to write (-1,0)?
StorkBite  
#2 Posted : Tuesday, October 25, 2005 7:37:05 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 -1,0 supposed to represent?
konrad  
#3 Posted : Tuesday, October 25, 2005 11:45:42 PM(UTC)
konrad

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 424
Location: connecticut,USA

Here is more explanation: I have read a formula primer and stay on page 17. Logical Being If (Condition, True Result, False result) If the 12 period RSi is above 70 or the close has dropped by 5 percent or more over the last 3 periods, plot 1, otherwise plot a 0 If ((RSI (12) > 70) OR (((C-Ref(C,3)) Ref (C,-3)) *100<5), 1,0 and here is my question: Why Should I write 1,0 and what that represent? I know that represent 1 for true 0 for false, but how this influence in graph? where I can see that in chart? Is that require to write (1,0) or Metastock Language will do this for me? Can you show me example with graph I am sorry but I can't understand this part of formula and I don't want to stop learning please help me out here!
StorkBite  
#4 Posted : Wednesday, October 26, 2005 12:04:18 AM(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)
Well... in this case the result of a true condition = 1 which means to plot the value 1. The result of a false condition = 0 which means to plot the value 0. Basically you have a flip-flop... on or off condition. Some examples: if (mov(c,12,s) > mov(C,15,S), 1, 0); if (ROC(c,15,S) < ROC( C,20,S), 1, 0); if (RSI(12) > 70 OR (c - ref (c,-3)) < 5, 1, 0); <<< I didn't understand your reference to this one, so it's not right
konrad  
#5 Posted : Wednesday, October 26, 2005 12:26:33 AM(UTC)
konrad

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 424
Location: connecticut,USA

If((C>Mov(C,40,S)) AND (C>Mov(C,120,S)),1,0) I use this formula above to see how this work and the (1,0) represtent true of false of that statement right? is that correct? the high point represtent 1 true, the low point represtent 0 low
StorkBite  
#6 Posted : Wednesday, October 26, 2005 12:48:01 AM(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)
If(C > Mov(C,40,S) AND C > Mov(C,120,S), 1, 0); This will plot a 1 if C is greater than the 40 period average AND the 120 period average. I think what you're thinking is true... the low point on the graph (zero) means that your condition is false; the high point on the graph (one) means that your condition is true.
konrad  
#7 Posted : Wednesday, October 26, 2005 12:51:30 AM(UTC)
konrad

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 424
Location: connecticut,USA

Thank you G.Stockman :)
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.