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 |

METASTOCK PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tullric
Posted : Friday, December 22, 2017 10:41:00 AM
Registered User
Joined: 11/10/2004
Posts: 39

trying to write the in tc but keep getting "error missing argument ) " don't know if you can do this in TC but here it is any help greatly appreciated 

 

ADX(10)>=REF(ADX(10),-1)AND WHEN (MACD()>REF(MACD(),-1))

ADX(10)<=REF(ADX(10).-1)AND WHEN (MACD()<REF(MACD(),-1))

ADX(10)>=REF(ADX(10),1)AND WHEN  (MACD()<REF(MACD(),-1))

ADX(10)<=REF(ADX(10),1)AND WHEN (MACD()>REF (MACD(),-1))

if possible i'd like first pcf green 2nd pcf red 3rd yellow and 4th pcf blue

 

thank you rich

Bruce_L
Posted : Friday, December 22, 2017 10:52:20 AM


Worden Trainer

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

The following four separate formula could be used as the Formula in four separate Custom PCF Indicators using the Dots Plot Style plotted in the same pane and scale as each other. Set the color of each indicator as desired. 

IIF(ADX(10, 10) >= ADX(10, 10, 1) AND MACD12.26 > MACD12.26.1, 0, 1 / 0)

IIF(ADX(10, 10) <= ADX(10, 10, 1) AND MACD12.26 < MACD12.26.1, 0, 1 / 0)

IIF(ADX(10, 10) >= ADX(10, 10, 1) AND MACD12.26 < MACD12.26.1, 0, 1 / 0)

IIF(ADX(10, 10) <= ADX(10, 10, 1) AND MACD12.26 > MACD12.26.1, 0, 1 / 0)

The third first argument of the IIF() function is the condition formula itself. The second argument is what cause the Custom PCF Indicator to plot the dot at zero when true (you can change this value to something else if you want). The third argument generates a division by zero error when false making it so not dot plots.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
tullric
Posted : Friday, December 22, 2017 10:59:23 AM
Registered User
Joined: 11/10/2004
Posts: 39

much appreciated bruce  i'll give it a go  and MERRY CHRISTMAS to you and yours and the whole worden team you guys are awesome 

Bruce_L
Posted : Friday, December 22, 2017 11:00:06 AM


Worden Trainer

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

You're welcome. Merry Christmas!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
tullric
Posted : Friday, December 22, 2017 11:04:24 AM
Registered User
Joined: 11/10/2004
Posts: 39

bruce i just pasted it and it is still giving me argument missing near (

 

the oppisite of first error )

Bruce_L
Posted : Friday, December 22, 2017 11:12:35 AM


Worden Trainer

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

I think you are using an earlier version of the software (the previous formulas only work in v17+). Please try using the following four seprate formulas in four seperate Custom PCF Indicators using the Dots Plot Style instead.

0 / ABS(ADX(10, 10) >= ADX(10, 10, 1) AND MACD12.26 > MACD12.26.1)

0 / ABS(ADX(10, 10) <= ADX(10, 10, 1) AND MACD12.26 < MACD12.26.1)

0 / ABS(ADX(10, 10) >= ADX(10, 10, 1) AND MACD12.26 < MACD12.26.1)

0 / ABS(ADX(10, 10) <= ADX(10, 10, 1) AND MACD12.26 > MACD12.26.1)

The value at which the dot should plot when true is now at the beginning of the formula (the zero).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
tullric
Posted : Friday, December 22, 2017 11:23:01 AM
Registered User
Joined: 11/10/2004
Posts: 39

your correct again ty going on 17 

Bruce_L
Posted : Friday, December 22, 2017 11:24:36 AM


Worden Trainer

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

You're welcome.



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