New version 18 available now

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

New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: Nattow Gate
User Name: Nattow Gate
Groups: Gold User, Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Gender: Gender:
Joined: Monday, December 16, 2013
Last Visit: Monday, April 16, 2018 3:44:24 PM
Number of Posts: 3
[0.00% of all post / 0.00 posts per day]
Last 10 Posts
Topic: Identifying a new high
Posted: Monday, January 29, 2018 9:00:02 AM

I'm wondering if there is a more elegant solution than what I've written below.  Essentially, what I'm attempting to code is a True or False condition for turning points.

I&#39;m defining the turning point as a candle where today&#39;s close is greater than yesterday&#39;s high (C > H1) and the candle prior to that the Close was below the prior Low (C1 < L2).   

(C > H1 AND C1 < L2) OR

(C > H1 AND (C1 > L2 AND C1 < H2) AND C2 < L3) OR

(C > H1 AND (C1 > L2 AND C1 < H2) AND (C2 > L3 AND C2 < H3) AND C3 < L4) OR

(C > H1 AND (C1 > L2 AND C1 < H2) AND (C2 > L3 AND C2 < H3) AND (C3 > L4 AND C3 < H4) AND C4 < L5)

Here is a link of what I am attempting to accheive using ADBE as an example, the red arrows are the turning points.

The above coding does the job, but was just curious if there was a simpler, more elegant way to code it.



Topic: Sigma Spike - based upon return
Posted: Wednesday, November 08, 2017 10:20:11 PM


I need some help, if doable, in TC2000, tryin gto calculate the ratio of today&#39;s retun/yesterday&#39;s 20 day std deviation of return?


  • Calculate daily returns as: return = today&#39;s close / yesterday&#39;s close - 1
  • Calculate standard deviation of daily returns over a 20 day window. In quasi-Excel langauge:: stdev = stdev(returns, 20)
  • Calculate today&#39;s sigma spike: SigmaSpike = today&#39;s return / yesterday&#39;s stdev
Topic: Andrew Abraham Trend Indicator
Posted: Thursday, April 20, 2017 4:45:01 AM

I&#39;m not sure there is a way to do this in TC2000 but thought to ask, since there have been several new versions rolled out recently with updated PCF coding...

If possible, I&#39;d like to replicate the Andrew Abraham trend indicator from the 1998 Stocks and Commodities magazine....

Basicaly, the plot should compare today&#39;s close vs the Daily High in the priior  21 days minu the 21 day ATR and today&#39;s close vs the Daily Low in the prior 21 days plus the 21 day ATR and plot the following

If C > [MAXC.21 - ATR(21) AND MINL.21 + ATR(21)] then plot MAXC.21 - ATR(21)

If C < [MAXC.21 - ATR(21) AND MINL.21 + ATR(21)] then plot MINC.21 + ATR(21)

If neither of the above is true, then plot the previous day&#39;s value.

I am able to create PCF for MAXC.21 - ATR(21) and MINL.21 + ATR(21)] but unsure how to nest them to create condiational statements - if this is even possible.

Any help appreciated.