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
|
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
|
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
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome. Merry Christmas!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
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 )
|
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
|
Registered User Joined: 11/10/2004 Posts: 39
|
your correct again ty going on 17
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|