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 |

Help with MA Crossover PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
KevinH
Posted : Wednesday, December 27, 2017 11:12:14 AM
Registered User
Joined: 4/11/2017
Posts: 16

Hi Bruce.

I was looking to create a scan with the following conditions and wondered if you could help?

 

I want to find conditions where

1. The 3EMA crossed above and remained above the 8EMA 

2. Price has crossed above the 20 SMA during the past 20 days

 

Any help would be great!  Thanks

 

Bruce_L
Posted : Thursday, December 28, 2017 9:44:55 AM


Worden Trainer

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

I am not sure if this means you just want 3 above 8 with price possibly even having crossed back down through the 20.

XAVGC3 > XAVGC8 AND CountTrue(XUP(C, AVGC20), 20) > 0

If you want 3 to have just crossed up the 8 with price above the 20 but below sometime during the previous 20 bars.

XUP(XAVGC3, XAVGC8) AND C > AVGC20 AND CountTrue(C1 < AVGC20, 20) > 0

Or some other interpretation entirely.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
KevinH
Posted : Thursday, December 28, 2017 10:13:56 AM
Registered User
Joined: 4/11/2017
Posts: 16

Thanks Bruce! Perfect.

KevinH
Posted : Monday, January 1, 2018 3:00:12 PM
Registered User
Joined: 4/11/2017
Posts: 16

Me again, Bruce!

 

Would you be able to provide the following PCF for a scan?

1. Price above the 50 SMA

2. Price within 15% of its 52 week high

3. Min earnings growth last quarter > 40%

 

Cheers!

 

 

Bruce_L
Posted : Tuesday, January 2, 2018 9:39:07 AM


Worden Trainer

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

Please try the following condition formula.

C > AVGC50 AND 100 * C >= 85 MAXH252

It is not possible to include fundamentals in a Personal Criteria Formula. You need to use fundamentals as WatchList Columns, sorts and EasyScan Conditions. There is no earnings growth rate last quarter fundamental available.

Morningstar Fundamental Data Definitions



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
KevinH
Posted : Tuesday, January 2, 2018 11:08:27 AM
Registered User
Joined: 4/11/2017
Posts: 16

ok, thanks!

KevinH
Posted : Sunday, January 7, 2018 1:49:41 PM
Registered User
Joined: 4/11/2017
Posts: 16

Me agian :)

 

I am trying to replicate an IBD column for daily % volume change measured against the 50 MA of its volume.  Thanks Bruce!

Bruce_L
Posted : Monday, January 8, 2018 10:00:34 AM


Worden Trainer

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

I can only guess at what the calculation of that might be.

The net change in volume compared to the previous bar would be:

V - V1

And the average volume would be:

AVGV50

So the net change in volume expressed as a percentage of the average volume would be:

100 * (V - V1) / AVGV50

But if I were going to compare volume to AVGV50, I would probably not look at the change in volume, but how far volume was above or below the average volume.

100 * (V / AVGV50 - 1)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
KevinH
Posted : Monday, January 8, 2018 11:15:52 AM
Registered User
Joined: 4/11/2017
Posts: 16

Thanks again Bruce!!

KevinH
Posted : Wednesday, March 14, 2018 7:07:50 PM
Registered User
Joined: 4/11/2017
Posts: 16

Hi Bruce!  I'm struggling with this condition signal on a chart and wondered if you could help?

 

Mon,Tues = 1
- rateofChange(close,3)[0] < rateofChange(close,3) [2]
- Stochastics(4) <= 20
 

 

Basically, buy when markets get really oversold on Monday or Tuesday and then to sell on the next day&rsquo;s close. I'm trying to get a signal. I will be using on the SPY
Bruce_L
Posted : Thursday, March 15, 2018 10:02:38 AM


Worden Trainer

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

I am only guessing as to the syntax used in the supplied code. We do not have a way to test if it is Monday or Tuesday, but you can limit yourself to using the formula on Monday or Tuesday.

C - C3 < C2 - C5 AND STOC4 <= 20



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
KevinH
Posted : Thursday, March 15, 2018 11:18:56 AM
Registered User
Joined: 4/11/2017
Posts: 16

Thanks as always!

KevinH
Posted : Wednesday, April 18, 2018 9:24:16 AM
Registered User
Joined: 4/11/2017
Posts: 16

Hi Bruce, I know you've covered this before but I'm looking for a simple cross scan of DMI+ over the DMI - Looking for when the DMI+(14) has crossed above the DMI-(14) in the past one day. Is this possible?

Bruce_L
Posted : Wednesday, April 18, 2018 9:47:34 AM


Worden Trainer

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

If you mean between the previous bar and current bar.

XUP(DIPLUS14, DIMINUS14)

If you mean between two bars ago and one bar ago.

XUP(DIPLUS14.1, DIMINUS14.1)

If you mean either of the above and it has to stay above.

XUP(DIPLUS14, DIMINUS14, 2)

If you mean either of the first two and it can cross back down and still qualify.

CountTrue(XUP(DIPLUS14, DIMINUS14), 2) > 0 



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
KevinH
Posted : Wednesday, April 18, 2018 9:56:40 AM
Registered User
Joined: 4/11/2017
Posts: 16

You rock!

Bruce_L
Posted : Wednesday, April 18, 2018 10:01:18 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.