sylvano 2 posts msg #33044 - Ignore sylvano | 
8/29/2004 1:27:37 AM
  Here is a script written for TC2000, can someone help me translate it for stockfetcher?
 *Spring on Current Bar 
 V > V1 AND (H - L) / V < (H1 - L1) / V1 
 
 *Spring on Previous Bar 
 V1 > V2 AND (H1 - L1) / V1 < (H2 - L2) / V2 
 
 *Stocks 15 - 25%…Long
 AVGC20 >= (H * 1.15) and AVGC20 <= (H * 1.25) 
 
 *Stocks > 25%…Long 
 AVGC20 > (H * 1.25) 
 
 *Stocks 15 - 25%…Short 
 AVGC20 * 1.18 <= L AND AVGC20 * 1.33 >= L 
 
 *Stocks >25%…Short 
 AVGC20 * 1.33 < L 
 
 *Long Reversal Bar 
 H < H1 AND L < L1 AND C > ((H + L) / 2) 
 
 *Short Reversal Bar 
 H > H1 AND L > L1 AND ((H + L) / 2) > C
 Thanks and by the way, those formulas are very profitable.
 
 
  | 
yepher 359 posts msg #33048 - Ignore yepher | 
8/29/2004 8:51:49 PM
  I am not really that familiar with TC200 Syntax but here is an attempt at porting a formula to SF syntax.
 
 Have a look at this formula to get your started:
 
 V > V1 AND (H - L) / V < (H1 - L1) / V1 
 Fetcher[
 set {hMinusLow, high - low}
 set {volRatio, hMinusLow/Volume}
 
 Volume > volume 1 day ago
 AND volRatio < volRatio 1 day ago 
 ]
 
 
 I think all the formulas you posted can be ported fairly easily. I would suggest reading through the Stockfetcher manual and you can also use: http://yepher.com/~yepher/stockfetcher/command.html as a quick cheat sheet.
 
 The commands you will probably use are:
 CMA - Custom Moving Average
 Average - another way the average price or Volume
 Days ago - allows you to offset the measure in time
 High, low, open, close - price
 Volume - volume
 
 set - is a command that can be a little tricky at first so read up on it too.
 
 If you try and port the others and post your progress I am sure there are many here who will be more than willing to help you get it exactly right.
 
 
  | 
robdavis 69 posts msg #33050 - Ignore robdavis | 
8/29/2004 9:20:24 PM
  Sylvano,
 
 Great stuff! Thanks for bringing TC2000 and their scripts to our attention!
 
 
 FIRST TC2000 SCRIPT: 
 "Spring on Current Bar" 
 V > V1 AND (H - L) / V < (H1 - L1) / V1 
 
 
 TRANSLATION FOR SF USERS:
  	     
 
 SECOND TC2000 SCRIPT 
 Spring on Previous Bar 
 V1 > V2 AND (H1 - L1) / V1 < (H2 - L2) / V2 
 
 
 TRANSLATION FOR SF USERS:
  	    
 
 COMBINATION OF FIRST AND SECOND TC2000 SCRIPTS
 Spring on Current Bar 
 V > V1 AND (H - L) / V < (H1 - L1) / V1 
 Spring on Previous Bar 
 V1 > V2 AND (H1 - L1) / V1 < (H2 - L2) / V2 
 
 
 TRANSLATION FOR SF USERS:
  	    
 
 I hope this helps.
 
 
 Rob 
 
 
  | 
robdavis 69 posts msg #33063 - Ignore robdavis | 
8/30/2004 12:32:00 PM
  Sylvano,
 
 Assuming that we want to use the (same) global filter of
  	     ...the 3rd TC2000 script (i.e. "Stocks 15 - 25%…Long; AVGC20 >= (H * 1.15) and AVGC20 <= (H * 1.25)" for SF users is as follows: 
 
  	    
 I hope this helps.
 
 Rob
 
 
  |