Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/7/2010 Posts: 11
|
IS THERE A SCAN THAT YOU CAN FIND WHERE STOCHASTICS AND MACD BOTH CROSS UP BUT THE STOCHASTICS IS BELOW 40 AND THE MACD IS CLOSE OR IN OVERSOLD TERRITORY....OF COURSE YOU KNOW THE STOCHASTICS WILL ALWAYS CROSS UP BEFORE MACD....ANY HELP THANKS
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm not quite sure what "MACD IS CLOSE OR IN OVERSOLD TERRITORY", so I just checked for it being at or above zero. Dragging and Dropping the MACD, Stochastic and their Moving Averages into the Code tab of the RealCode Editor should create something similar to first four lines of the following RealCode Rule (had to change the variable names assigned to the Dragged and Dropped Moving Averages so they both weren't MovA):
'# Stoc = indicator.Stochastics
'# MovAofStoc = indicator.MovAvg.3
'# MACD = indicator.MACD
'# MovAofMACD = indicator.MovAvg.2
If Stoc.Value > MovAofStoc.Value AndAlso _
Stoc.Value < 40 AndAlso _
MACD.Value > MovAofMACD.Value AndAlso _
MACD.Value >= 0 AndAlso _
(MACD.Value(1) <= MovAofMACD.Value(1) OrElse _
Stoc.Value(1) <= MovAofStoc.Value(1)) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/7/2010 Posts: 11
|
thanks ur the man
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/7/2010 Posts: 11
|
i meant the macd line crossing above the move avg line on the macd sorry
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It already checks for exactly that (along with your other conditions). The entirety of the conditions required are the MACD is above zero, the Stochastic is below 40, the MACD and Stochastic are both above their Moving Averages and either the MACD or the Stochastic was at or below their Moving Average during the previous Bar.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |