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 |

How to create an indicator similar to custom PCF cumulative indicator in TC2000 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sw139
Posted : Friday, July 10, 2015 10:56:23 PM
Registered User
Joined: 9/11/2014
Posts: 14

Cannot find anything in the stockfinder simular to the custom PCF cumulative indicator in TC2000? How can I create it?

 

 

Bruce_L
Posted : Monday, July 13, 2015 10:33:49 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The following RealCode Indicator is designed to replicate the default Custom PCF Cumulative Indicator from TC2000 with the following settings. Note this this is essentially On Balance Volume (OBV).

- Up Condition: C > C1
- Down Condition: C < C1
- Value to Add/Subtract: V

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Custom PCF Cumulative Example
'|******************************************************************
'#Cumulative
Static Sum As Single
If isFirstBar Then
	Sum = 0
End If
Dim UpCondition As Boolean = False
If Price.Last > Price.Last(1) Then
	UpCondition = True
End If
Dim DownCondition As Boolean = False
If Price.Last < Price.Last(1) Then
	DownCondition = True 
End If
Dim ValueToAddSubtract As Single
ValueToAddSubtract = Volume.Value
Sum += (DownCondition - UpCondition) * ValueToAddSubtract
Plot = Sum

You can use anything for the conditions. I just use If Price.Last > Price.Last(1) because that matches C > C1.

RealCode for Real People: Indicators (6:05)



-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.