| einok msg #97514
 - Ignore einok
 | 11/16/2010 2:07:22 PM 
 set { x1, open 2 days ago + high 2 days ago}
 set { x2, low 2 days ago + close 2 days ago }
 set { x3, x1 + x2 }
 set { myclose, x3/4 }
 
 set { myopen, open  2 days ago + myclose / 2   }
 
 myclose close above myopen
 
 Thanks
 
 
 | 
| duke56468 683 posts
 msg #97515
 - Ignore duke56468
 | 11/16/2010 2:24:37 PM 
 try this
 
 
 
 
 
 | 
| einok msg #97517
 - Ignore einok
 | 11/16/2010 4:30:57 PM 
 Thanks, that works well.  What if I want to do this?
 
 myclose = O+H+L+C /4
 
 
 myopen = (myopen (previous day) + myClose
 (previous day)/2
 
 
 myopen = low 1 day ago
 
 
 Thanks
 
 
 | 
| duke56468 683 posts
 msg #97518
 - Ignore duke56468
 | 11/16/2010 5:23:55 PM 
 Others on this site are better qualified to help you than I am but I think you need to use the set{ } feature for more than 1 function i.e. set{a,open+high} set{b,a+low} ect...  Try your filter as you build and use the de-bug to see where you went wrong in the script.
 Hope this helps.
 
 
 | 
| four 5,087 posts
 msg #97521
 - Ignore four
 modified
 | 11/16/2010 8:55:10 PM 
 
 
 
 
 | 
| einok msg #97547
 - Ignore einok
 | 11/18/2010 12:07:10 PM 
 four,
 
 I don't understand the following
 
 
 set{z, high + min(close,open 1 day ago)}
 
 From the manual:
 The minimum returns the minimum of two values (or indicator results)
 
 Is it whichever is lesser close vs open?
 
 Thanks
 
 
 
 | 
| four 5,087 posts
 msg #97549
 - Ignore four
 modified
 | 11/18/2010 2:16:15 PM 
 four,
 
 I don't understand the following
 
 
 set{z, high + min(close,open 1 day ago)}
 
 ----------------------------------------
 
 Find :
 
 MINIMUM of today's close and the open 1 day ago
 
 Then :
 
 Add today's high to the MINIMUM
 
 HTH
 
 
 | 
| einok msg #97553
 - Ignore einok
 | 11/18/2010 10:54:35 PM 
 four,
 
 Re:
 
 ----------------------------------------
 
 Find :
 
 MINIMUM of today's close and the open 1 day ago
 
 Then :
 
 Add today's high to the MINIMUM
 
 What is meant by minimum of the close or open?  How can there be a minimum?  The close is the close and the open is the open, right?  Confused by the context being used.
 
 Thanks
 
 
 | 
| four 5,087 posts
 msg #97555
 - Ignore four
 modified
 | 11/18/2010 11:52:54 PM 
 Find :
 
 MINIMUM of today's close and the open 1 day ago
 
 Then :
 
 Add today's high to the MINIMUM
 
 What is meant by minimum of the close or open? How can there be a minimum? The close is the close and the open is the open, right? Confused by the context being used.
 
 Thanks
 -----------------------------------------------------------------------------------------------------------------------
 --------------------------Stock went DOWN----------------
 Open today = $10
 Close today = $5
 
 MIN(close,open) = $5
 ---------------------------Stock went UP--------------------
 Open today = $3
 Close today = $6
 
 MIN(close,open) = $3
 
 ---------------------------------------------- PS : I am looking at two dates TODAY'S CLOSE and YESTERDAY'S OPEN.
 
 
 | 
| four 5,087 posts
 msg #97559
 - Ignore four
 | 11/19/2010 12:07:12 PM 
 
 
 
 
 |