Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Need some help. Code conversion. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
irishpitbull
Posted : Saturday, March 5, 2011 2:15:58 PM
Registered User
Joined: 2/24/2009
Posts: 7
Can anyone please help me convert my stockfetcher code to telechart? I would really like to start using telechart to find stocks. show stocks where close is between 10 and 50 and average volume(90) > 500000 and open < ema(21) and open < ema(8) and open < ema(4) and close > ema(21) and close > ema(4) and close > ema(8) and close > open and close 3 days ago < ema(21) and close 5 days ago < close 3 days ago and close 5 days ago < ema(90) and add column atr(10) and sort on column 5 ascending and MACD Fast Line(12,26,9) is above the MACD Slow Line(12,26,9) draw resistance(45,15,2) draw resistance(65,10) draw support(65,10,1) draw support(45,15,2) add column slope of EMA(90) add column slope of weekly MA(9) and Slow Stochastic(10) Fast %K is below 75 and beta above 1 and add column Beta {Beta}
Bruce_L
Posted : Monday, March 7, 2011 2:47:56 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Welcome to the forums. A very good foundation for learning how to use TeleChart can be gained by reviewing the following:

If you are new to TeleChart READ THIS FIRST!

I am not familiar with StockFetcher. My best guess at converting the first part of the code into TeleChart's Personal Criteria Formula Language would be:

10 <= C AND C <= 50 AND AVGV90 > 5000 AND O < XAVGC21 AND O < XAVGC8 AND O < XAVGC4 AND C > XAVGC21 AND C > XAVGC4 AND C > XAVGC8 AND C > O AND C3 < XAVGC21.3 AND C5 < C3 AND C5 < XAVGC90.5

The rest of the code would appear to have something to do with charting and columns and nothing to do with identifying stocks, but the exact interpretation of this English language description into something specific is beyond my ability to guess.

How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
irishpitbull
Posted : Friday, March 11, 2011 5:50:26 PM
Registered User
Joined: 2/24/2009
Posts: 7
Bruce thanks so much for taking time out of your busy schedule's to help me. I think we are close but missing a few things. I cleaned the code up and got ride of the columns. Could you take another look at for me. The last code was not working properly. Thank so much! show stocks where close is between 10 and 50 and average volume(90) > 500000 and open < ema(21) and open < ema(8) and open < ema(4) and close > ema(21) and close > ema(4) and close > ema(8) and close > open and close 3 days ago < ema(21) and close 5 days ago < close 3 days ago and close 5 days ago < ema(90) and MACD Fast Line(12,26,9) is above the MACD Slow Line(12,26,9) and Slow Stochastic(10) Fast %K is below 75 and beta above 1
Bruce_L
Posted : Monday, March 14, 2011 8:40:35 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try using the following Personal Criteria Formula as an EasyScan Condition:

10 <= C AND C <= 50 AND AVGV90 > 5000 AND O > XAVGC21 AND O < XAVGC8 AND O < XAVGC4 AND C > XAVGC21 AND C > XAVGC4 AND C > XAVGC8 AND C > O AND C3 < XAVGC21.3 AND C5 < C3 AND C5 < XAVGC90 AND XAVGC12 - XAVGC26 > XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND STOC10.3 < 75

Along with an EasyScan Condition for Beta with the EasyScan Rangefinder set to Value: 1 to Max.

Using EasyScan to find stocks that meet your own criteria
Definitions of all built in scanning and sorting criteria

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

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.