Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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?
|
|
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
|
|
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.
|
|
Guest-1 |