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 |

binary indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
MontyPelerin
Posted : Monday, December 30, 2013 6:00:27 PM
Registered User
Joined: 10/7/2004
Posts: 8

I am trying to combine multiple conditions to produce a composite indicator. While it is more complex than the following, let's say that I would like to add the total of the following:

RSI > 50 = 1, otherwise 0

Moving Average(Trix) > 0 = 1 otherwise 0

tsv > 0, 1, 0

The new indicator would be the sum of these three conditions each period. It would range in value from 0 to 3. Is there a way of plotting this as a custom indicator?

Thanks for any assistance,

LM

diceman
Posted : Monday, December 30, 2013 7:25:47 PM
Registered User
Joined: 1/28/2005
Posts: 6,049

If you put a true false condition in the ABS function

it will equal 1 when true and zero when false.

That allows you to add them.

 

For example testing for a higher close or higher low.

ABS(C>C1)+ABS(L>L1)

will equal zero if both conditions are false.

One when either is true and two when both are true.

 

 

Thanks

 

 

MontyPelerin
Posted : Monday, December 30, 2013 7:33:12 PM
Registered User
Joined: 10/7/2004
Posts: 8

Thanks diceman.

I understand how to add the conditions up (as you have shown). But tsv and trix, for example, I don't believe are allowed in pcf language. How does one handle indicators not allowed in pcf?

diceman
Posted : Monday, December 30, 2013 8:35:16 PM
Registered User
Joined: 1/28/2005
Posts: 6,049

You can only do things you have the PCFs for.

 

Unless you mix the from your chart and indicator type scans with your count indicator.

For example it could be a scan watchlist column you could sort by.

 

 

 

Thanks

 

MontyPelerin
Posted : Monday, December 30, 2013 10:14:41 PM
Registered User
Joined: 10/7/2004
Posts: 8

Diceman,

Thanks for your help. That was what I was afraid of. 

TC2000 could be so much more useful if it expanded the very rudimentary pcf language to include indicators it allows in charts. 

I can export the data and do the calculations in Excel, but that is a pain. Furthermore, there is no way to import my created indicator and plot it in TC2000. 

After almost ten years of using TC2000, I seem to have outgrown it. Sadly, I am considering other alternatives.

 

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.