New version 18 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Condition for yesterday Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
SILVERWESOKE
Posted : Tuesday, June 12, 2018 8:59:28 PM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 874

This is a condition for a scan for today.. Is there any easy way to make another condition, that gives the same information for YESTERDAY  ?  Thanks..

 

 

 

MAXC10.1 > MINC10.10 * 1.1 AND MAXC10.1 / MINC10.1 < MAXC10.6 / MINC10.6 AND C > C1 AND (MINC3 < MAXC7.3) OR (MINC3.1 < MAXC7.3) OR (MINC3.2 < MAXC7.3) OR (MINC3.3 < MAXC7.3) OR (MINC3.4 < MAXC7.3) OR (MINC3.5 < MAXC7.3) OR (MINC3.6 < MAXC7.3) OR (MINC3.7 < MAXC7.3) OR (ABS(C - AVGC10) / C < 0.01) OR (C1 <   C2 AND C2 <= C3) OR (C2 <   C3 AND C3 <= C4) OR   (C3 <   C4 AND C4 <= C5) OR   (C4 <   C5 AND C5 <= C6) OR   (C5 <   C6 AND C6 <= C7) OR   (C6 <   C7 AND C7 <= C8) OR   (C7 <   C8 AND C8 <= C9) OR   (C1 <= C2 AND C2 <   C3) OR (C2 <= C3 AND C3 <   C4) OR   (C3 <= C4 AND C4 <   C5) OR   (C4 <= C5 AND C5 <   C6) OR   (C5 <= C6 AND C6 <   C7) OR   (C6 <= C7 AND C7 <   C8) OR   (C7 <= C8 AND C8 <   C9) OR (  (AVGH3.5) > (AVGH3.8 ) AND  (AVGH3.8 ) > (AVGH3.13) AND  (AVGH3.13) > (AVGH3.18 )  )   

Al_Gorithm
Posted : Wednesday, June 13, 2018 7:32:26 AM
Registered User
Joined: 6/30/2017
Posts: 1,040

Waiting for my coffee to brew so this will be brief...

You can modify the PCF code, but Bruce is better at that than I am, so I will defer until he arrives.

think you can just plug the PCF as-is into a condition column, use a daily timeframe, and say you want the condition True 1 bar ago...

Coffee's ready. Gotta go. Good luck!

SILVERWESOKE
Posted : Wednesday, June 13, 2018 9:12:02 AM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 874

Thanks.  Bruce will this work??

StockGuy
Posted : Wednesday, June 13, 2018 9:16:52 AM

Administration

Joined: 9/30/2004
Posts: 9,038

Yes.

Bruce_L
Posted : Wednesday, June 13, 2018 9:17:21 AM


Worden Trainer

Joined: 10/7/2004
Posts: 63,008

Yes, it will work.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
Posted : Wednesday, June 13, 2018 11:13:30 AM
Registered User
Joined: 6/30/2017
Posts: 1,040

Ha!

Am I good, or what?
Score another one for caffeine!

SILVERWESOKE
Posted : Wednesday, June 13, 2018 11:25:57 AM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 874

Will it work on V 12.6?

Bruce_L
Posted : Wednesday, June 13, 2018 11:45:06 AM


Worden Trainer

Joined: 10/7/2004
Posts: 63,008

No, it won't work in TC2000 v12.6.

You could use it as a Custom PCF % True Indicator. Add a 1-period simple moving average with a 1 period offset to the Custom PCF % True Indicator. Then create a condition for the offset moving average being greater than 0.

That said the formula for 1 bar ago should be as follows assuming I adjusted it correctly (I am probably just as likely to make a mistake adding 1 to all of the bars ago parameters in a formula this long as you would be).

MAXC10.2 > MINC10.11 * 1.1 AND MAXC10.2 / MINC10.2 < MAXC10.7 / MINC10.7 AND C1 > C2 AND (MINC3.1 < MAXC7.4) OR (MINC3.2 < MAXC7.4) OR (MINC3.3 < MAXC7.4) OR (MINC3.4 < MAXC7.4) OR (MINC3.5 < MAXC7.4) OR (MINC3.6 < MAXC7.4) OR (MINC3.7 < MAXC7.4) OR (MINC3.8 < MAXC7.4) OR (ABS(C1 - AVGC10.1) / C1 < .01) OR (C2 < C3 AND C3 <= C4) OR (C3 < C4 AND C4 <= C5) OR (C4 < C5 AND C5 <= C6) OR (C5 < C6 AND C6 <= C7) OR (C6 < C7 AND C7 <= C8) OR (C7 < C8 AND C8 <= C9) OR (C8 < C9 AND C9 <= C10) OR (C2 <= C3 AND C3 < C4) OR (C3 <= C4 AND C4 < C5) OR (C4 <= C5 AND C5 < C6) OR (C5 <= C6 AND C6 < C7) OR (C6 <= C7 AND C7 < C8) OR (C7 <= C8 AND C8 < C9) OR (C8 <= C9 AND C9 < C10) OR (AVGH3.6 > AVGH3.9 AND AVGH3.9 > AVGH3.14 AND AVGH3.14 > AVGH3.19)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
SILVERWESOKE
Posted : Wednesday, June 13, 2018 12:20:57 PM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 874

Works like a dream Bruce.. Thanks!

Bruce_L
Posted : Wednesday, June 13, 2018 12:23:42 PM


Worden Trainer

Joined: 10/7/2004
Posts: 63,008

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.