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

9ema crosses 21sma + Price above VWAP Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
StockOperator2016
Posted : Monday, April 30, 2018 1:30:13 PM
Registered User
Joined: 7/23/2016
Posts: 19

Hi Price, What is the code for 9ema crossing the 21sma + Price above VWAP. I want to find stocks were the moving average cross has just happened on the last bar. 

Bruce_L
Posted : Monday, April 30, 2018 2:00:09 PM


Worden Trainer

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

You can't create a condition formula for price being above the VWAP. You can create the condition by clicking on the VWAP indicator on the chart and selecting Create Condition.

Since you are already creating one condition this way, you may as well create the second condition by clicking on one of the moving averages on the chart and selecting Create Condition as well.

Add both conditions to the same EasyScan.

You can create a condition formula for the 9ema crossing up through the 21sma as follows if you would rather use a formula for this condition (you would still need to add it to the same EasyScan as the VWAP condition).

XUP(XAVGC9, AVGC21)

Make sure the time frames of the conditions match the time frame you want to be checking on the chart.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
StockOperator2016
Posted : Monday, April 30, 2018 3:07:32 PM
Registered User
Joined: 7/23/2016
Posts: 19

Thanks Bruce. I have addded some price and volume filters to it. I have got a problem with the Volume section. I am doing a 15 minute scan but I think my code is looking for volume of 300000 on the 15 minute bar. I want to scan for daily volume of 300000, what changes would I need to make.

XUP(XAVGC9,AVGC21) and C >= 15 and C <= 80 and V =>300000

Bruce_L
Posted : Monday, April 30, 2018 3:30:29 PM


Worden Trainer

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

You can't mix time frames in the same formula.

What you can do is take the volume portion out of the formula and add it to the scan as another condition. Then set the time frame of that condition to daily.



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