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 |

pcf question Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dhirenshah
Posted : Tuesday, June 26, 2018 11:03:32 AM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce how to get rid of the dots in the bottom of the panel when i plot this custom pcf formula... as below 

IIF(MAX(MACD5.21, 2) < MACD5.21.2 AND MACD5.21.2 > MAX(MACD5.21.3, 2) AND MACD5.21.2 > IIF(MAX(MACD5.21.3, 2) < MACD5.21.5 AND MACD5.21.5 > MAX(MACD5.21.6, 2), MACD5.21.5, IIF(MAX(MACD5.21.4, 2) < MACD5.21.6 AND MACD5.21.6 > MAX(MACD5.21.7, 2), MACD5.21.6, IIF(MAX(MACD5.21.5, 2) < MACD5.21.7 AND MACD5.21.7 > MAX(MACD5.21.8, 2), MACD5.21.7, IIF(MAX(MACD5.21.6, 2) < MACD5.21.8 AND MACD5.21.8 > MAX(MACD5.21.9, 2), MACD5.21.8, IIF(MAX(MACD5.21.7, 2) < MACD5.21.9 AND MACD5.21.9 > MAX(MACD5.21.10, 2), MACD5.21.9, IIF(MAX(MACD5.21.8, 2) < MACD5.21.10 AND MACD5.21.10 > MAX(MACD5.21.11, 2), MACD5.21.10, IIF(MAX(MACD5.21.9, 2) < MACD5.21.11 AND MACD5.21.11 > MAX(MACD5.21.12, 2), MACD5.21.11, IIF(MAX(MACD5.21.10, 2) < MACD5.21.12 AND MACD5.21.12 > MAX(MACD5.21.13, 2), MACD5.21.12, IIF(MAX(MACD5.21.11, 2) < MACD5.21.13 AND MACD5.21.13 > MAX(MACD5.21.14, 2), MACD5.21.13, IIF(MAX(MACD5.21.12, 2) < MACD5.21.14 AND MACD5.21.14 > MAX(MACD5.21.15, 2), MACD5.21.14, IIF(MAX(MACD5.21.13, 2) < MACD5.21.15 AND MACD5.21.15 > MAX(MACD5.21.16, 2), MACD5.21.15, IIF(MAX(MACD5.21.14, 2) < MACD5.21.16 AND MACD5.21.16 > MAX(MACD5.21.17, 2), MACD5.21.16, IIF(MAX(MACD5.21.15, 2) < MACD5.21.17 AND MACD5.21.17 > MAX(MACD5.21.18, 2), MACD5.21.17, IIF(MAX(MACD5.21.16, 2) < MACD5.21.18 AND MACD5.21.18 > MAX(MACD5.21.19, 2), MACD5.21.18, IIF(MAX(MACD5.21.17, 2) < MACD5.21.19 AND MACD5.21.19 > MAX(MACD5.21.20, 2), MACD5.21.19, IIF(MAX(MACD5.21.18, 2) < MACD5.21.20 AND MACD5.21.20 > MAX(MACD5.21.21, 2), MACD5.21.20, IIF(MAX(MACD5.21.19, 2) < MACD5.21.21 AND MACD5.21.21 > MAX(MACD5.21.22, 2), MACD5.21.21, IIF(MAX(MACD5.21.20, 2) < MACD5.21.22 AND MACD5.21.22 > MAX(MACD5.21.23, 2), MACD5.21.22, IIF(MAX(MACD5.21.21, 2) < MACD5.21.23 AND MACD5.21.23 > MAX(MACD5.21.24, 2), MACD5.21.23, IIF(MAX(MACD5.21.22, 2) < MACD5.21.24 AND MACD5.21.24 > MAX(MACD5.21.25, 2), MACD5.21.24, IIF(MAX(MACD5.21.23, 2) < MACD5.21.25 AND MACD5.21.25 > MAX(MACD5.21.26, 2), MACD5.21.25, IIF(MAX(MACD5.21.24, 2) < MACD5.21.26 AND MACD5.21.26 > MAX(MACD5.21.27, 2), MACD5.21.26, IIF(MAX(MACD5.21.25, 2) < MACD5.21.27 AND MACD5.21.27 > MAX(MACD5.21.28, 2), MACD5.21.27, IIF(MAX(MACD5.21.26, 2) < MACD5.21.28 AND MACD5.21.28 > MAX(MACD5.21.29, 2), MACD5.21.28, IIF(MAX(MACD5.21.27, 2) < MACD5.21.29 AND MACD5.21.29 > MAX(MACD5.21.30, 2), MACD5.21.29, IIF(MAX(MACD5.21.28, 2) < MACD5.21.30 AND MACD5.21.30 > MAX(MACD5.21.31, 2), MACD5.21.30, IIF(MAX(MACD5.21.29, 2) < MACD5.21.31 AND MACD5.21.31 > MAX(MACD5.21.32, 2), MACD5.21.31, IIF(MAX(MACD5.21.30, 2) < MACD5.21.32 AND MACD5.21.32 > MAX(MACD5.21.33, 2), MACD5.21.32, IIF(MAX(MACD5.21.31, 2) < MACD5.21.33 AND MACD5.21.33 > MAX(MACD5.21.34, 2), MACD5.21.33, IIF(MAX(MACD5.21.32, 2) < MACD5.21.34 AND MACD5.21.34 > MAX(MACD5.21.35, 2), MACD5.21.34, IIF(MAX(MACD5.21.33, 2) < MACD5.21.35 AND MACD5.21.35 > MAX(MACD5.21.36, 2), MACD5.21.35, 101))))))))))))))))))))))))))))))), MACD5.21.2, -10) 
 
thanks
 
Bruce_L
Posted : Tuesday, June 26, 2018 11:08:20 AM


Worden Trainer

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

Change the -10 near the end of the formula to 1 / 0 instead.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, June 26, 2018 11:17:52 AM
Registered User
Joined: 3/10/2012
Posts: 465

I tried doing that but then my plotting of the formula does not come right on top of the high of the macd, as i add 1 period simple moving average to the formula then -2 offset and scaling with macd

so any idea why ?

thanks 

Bruce_L
Posted : Tuesday, June 26, 2018 11:31:12 AM


Worden Trainer

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

Because the moving average only sees the dots, it doesn't see the 1 / 0 spots because they generate error messages.

You could try replacing it with 0 instead so the line of dots ends up on the centerline, but you either plot dots and the moving average works for the offset or you plot 1 / 0 and you don't get dots but you can plot the desired offset moving average.

This is a hack / workaround. It isn't a built in program feature.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, June 26, 2018 12:03:52 PM
Registered User
Joined: 3/10/2012
Posts: 465

ok Bruce noted 

thanks

Bruce_L
Posted : Tuesday, June 26, 2018 12:09:04 PM


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.