Still find the thin out does not work

#47391

Mark
  • Topics: 1
  • Replies: 3
  • Posts: 4

Still find the thin out does not work

/ ———-Creating a Technical Ranking System Scan – not using Watch Lists————

 

// I have restricted this scan to 3 patterns – it works fine up to the code Z1 or Z2 or Z3 – looking for the patterns – these are correct for the ASX100

// As soon as add the score for each pattern to Variable TECH and then filter out the list end up with a much greater number of hits

// Scanning for a number of patterns and assigning points for each pattern
// This is a stripped down version of patterns and points – will add more when the scan works

//————Scanning for a MA12 touch————

// Set RG1 to 30% of the last day range
RG1 = ATR(Day(PERIODAMOUNT=1), BARS=1) * 30/100;
// Set MA1 and MA2 ranges to plus/minus RG1
MA1 = MA(BARS=12, STYLE=Exponential, CALC=HL Average) + RG1 ;
MA2 = MA(BARS=12, STYLE=Exponential, CALC=HL Average) – RG1;
// Check if the High or Low falls within these ranges
H1 = (HIGH() <= MA1 and HIGH() >= MA2);
L1 = (LOW() <= MA1 and LOW() >= MA2);
// Check that the stock has an ADX greater or equal to 20
DX1 = ADX(#ADX Bars:BARS=12) >= #Value:20;
// Check if any of these conditions are true
Z1 = ( H1 or L1 ) and DX1;
// Set this Technical Indicator to 2 points
V1 = IF(Z1 == 1,2,0) ;

//————Scan for a Gartley————

G1 = GPS(SCANTYPE=Both) Matches;
// Check that the stock has an ADX greater or equal to 20
DX2 = ADX(#ADX Bars:BARS=12) >= #Value:20;
// Check if any of these conditions are true
Z2 = G1 and DX2;
// Set this Technical Indicator to 2 points
V2 = IF(Z2 == 1,2,0) ;

//————Scanning for Oliver’s Wedge————

W1 = SWINGSTART( OLIVERWEDGESCAN(INSIDESWING=Three) ) Matches;
// Check that the stock has an ADX greater or equal to 20
DX3 = ADX(#ADX Bars:BARS=12) >= #Value:20;
// Check if any of these conditions are true
Z3 = W1;
// Set this Technical Indicator to 2 points
V3 = IF(Z3 == 1,2,0) ;

//————Only choose stocks that fit the scan criteria———— For today get 25 results which is correct

Z1 or Z2 or Z3;

//———-Add up the Technical Indicators – when uncomment the code below get 97 results and
//———- lots of stocks that no not fullfill the scan criteria

TECH = V1+V2+V3;

//————Only select Stocks with a score of 2 or higher (This does not work)

TECH >= 2;

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close