StockFetcher Forums · Filter Exchange · ANOTHER MACD FILTER....<< 1 2 3 4 >>Post Follow-up
chetron
2,817 posts
msg #81981
Ignore chetron
10/28/2009 9:01:13 PM

HOW TO COLOR CODE YOUR INDICATOR.....

I NEED TO SEE THE MACD HISTOGRAM CLEARER, BUT I WANT TO KNOW IF THE FAST LINE IS ABOVE OR BELOW 0....



Fetcher[
SET{VHISTO,MACD HISTOGRAM}
SET{VAR1,COUNT(MACD FAST LINE ABOVE -0.0000,1)}
SET{VAR2,COUNT(MACD FAST LINE BELOW 0.0000,1)}
SET{VHISTOUP,VHISTO * VAR1}
SET{VHISTODN,VHISTO * VAR2}

DRAW MACD
DRAW VHISTODN ON PLOT VHISTO
DRAW VHISTOUP ON PLOT VHISTO

SYMLIST(SPY)
CHART-TIME 1 YEAR
]



chetron
2,817 posts
msg #82645
Ignore chetron
modified
11/8/2009 12:40:28 PM

OLDY BUT GOODY.....


Fetcher[
/* JP MACD REVISITED AND REVAMPED */
/* LONG FILTER */

SET{VHISTO533,MACD(5,3,3) HISTOGRAM}
SET{VAR1,COUNT(MACD(5,3,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR2,COUNT(MACD(5,3,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO533UP,VHISTO533 * VAR1}
SET{VHISTO533DN,VHISTO533 * VAR2}

SET{VHISTO7123,MACD(7,12,3) HISTOGRAM}
SET{VAR11,COUNT(MACD(7,12,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR12,COUNT(MACD(7,12,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO7123UP,VHISTO7123 * VAR11}
SET{VHISTO7123DN,VHISTO7123 * VAR12}

DRAW VHISTO7123DN ON PLOT VHISTO7123
DRAW VHISTO7123UP ON PLOT VHISTO7123

DRAW VHISTO533DN ON PLOT VHISTO533
DRAW VHISTO533UP ON PLOT VHISTO533


VHISTO533UP 1 day ago equal 0
VHISTO533UP equal 0
VHISTO7123UP 1 day ago equal 0
VHISTO7123UP crossed above 0.01
close above .1
volume above 1000000


]




THE SHORT SIDE.....

Fetcher[

/* JP MACD REVISITED AND REVAMPED */
/* SELL SHORT */

SET{VHISTO533,MACD(5,3,3) HISTOGRAM}
SET{VAR1,COUNT(MACD(5,3,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR2,COUNT(MACD(5,3,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO533UP,VHISTO533 * VAR1}
SET{VHISTO533DN,VHISTO533 * VAR2}

SET{VHISTO7123,MACD(7,12,3) HISTOGRAM}
SET{VAR11,COUNT(MACD(7,12,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR12,COUNT(MACD(7,12,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO7123UP,VHISTO7123 * VAR11}
SET{VHISTO7123DN,VHISTO7123 * VAR12}

DRAW VHISTO7123DN ON PLOT VHISTO7123
DRAW VHISTO7123UP ON PLOT VHISTO7123

DRAW VHISTO533DN ON PLOT VHISTO533
DRAW VHISTO533UP ON PLOT VHISTO533


VHISTO7123UP 1 day ago equal 0
VHISTO7123UP equal 0
VHISTO533UP 1 day ago equal 0
VHISTO533UP crossed above 0.01
close above .1
volume above 1000000

]



johnpaulca
12,036 posts
msg #82647
Ignore johnpaulca
11/8/2009 2:15:28 PM

Chet, your programming skills are simply amazing....you rock.

chetron
2,817 posts
msg #82648
Ignore chetron
modified
11/8/2009 3:22:46 PM

I THOUGHT YOU'LD LIKE IT.....



Fetcher[

/* JP MACD REVISITED AND REVAMPED */
/* LONG FILTER ON THE PULL BACK */

SET{VHISTO533,MACD(5,3,3) HISTOGRAM}
SET{VAR1,COUNT(MACD(5,3,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR2,COUNT(MACD(5,3,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO533UP,VHISTO533 * VAR1}
SET{VHISTO533DN,VHISTO533 * VAR2}

SET{VHISTO7123,MACD(7,12,3) HISTOGRAM}
SET{VAR11,COUNT(MACD(7,12,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR12,COUNT(MACD(7,12,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO7123UP,VHISTO7123 * VAR11}
SET{VHISTO7123DN,VHISTO7123 * VAR12}

DRAW VHISTO7123DN ON PLOT VHISTO7123
DRAW VHISTO7123UP ON PLOT VHISTO7123

DRAW VHISTO533DN ON PLOT VHISTO533
DRAW VHISTO533UP ON PLOT VHISTO533

VHISTO533UP 2 DAY AGO EQUAL 0
VAR1 1 day ago ABOVE .50
VHISTO533UP equal 0
VHISTO7123UP BELOW -0.0001
close above .1
volume above 1000000


]




AND FINALLY.....


Fetcher[

/* JP MACD REVISITED AND REVAMPED */
/* SHORT FILTER ON THE PULL BACK */

SET{VHISTO533,MACD(5,3,3) HISTOGRAM}
SET{VAR1,COUNT(MACD(5,3,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR2,COUNT(MACD(5,3,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO533UP,VHISTO533 * VAR1}
SET{VHISTO533DN,VHISTO533 * VAR2}

SET{VHISTO7123,MACD(7,12,3) HISTOGRAM}
SET{VAR11,COUNT(MACD(7,12,3) FAST LINE ABOVE -0.0000,1)}
SET{VAR12,COUNT(MACD(7,12,3) FAST LINE BELOW 0.0000,1)}
SET{VHISTO7123UP,VHISTO7123 * VAR11}
SET{VHISTO7123DN,VHISTO7123 * VAR12}

DRAW VHISTO7123DN ON PLOT VHISTO7123
DRAW VHISTO7123UP ON PLOT VHISTO7123

DRAW VHISTO533DN ON PLOT VHISTO533
DRAW VHISTO533UP ON PLOT VHISTO533
DRAW VAR12 ON PLOT VAR11

VHISTO7123UP 2 DAY AGO EQUAL 0
VAR11 1 day ago ABOVE .0005
VHISTO7123UP equal 0
VHISTO533UP 1 DAY AGO BELOW -.0005


close above .1
volume above 1000000
]



chetron
2,817 posts
msg #82671
Ignore chetron
modified
11/9/2009 6:57:55 AM

WORK IN PROGRESS....


Fetcher[
/* ELDER TWIST */

SET{VAR1,COUNT(MACD FAST LINE ABOVE 0,1)}
SET{VAR2,DAYS(MACD FAST LINE CROSSED BELOW MACD SLOW LINE,10)}
SET{VBUY,VAR1 * VAR2}

DRAW VAR2 ON PLOT VAR1
ADD COLUMN HIGH 1 DAY AGO {BUY LIMIT}

VBUY ABOVE .5
CLOSE ABOVE .1
VOLUME ABOVE 1000000

]




JUST PLAIN COUNT...




Fetcher[
/* ELDER TWIST */

SET{VAR1,COUNT(MACD FAST LINE ABOVE 0,1)}
SET{VAR2,COUNT(MACD FAST LINE CROSSED BELOW MACD SLOW LINE,10)}
SET{VBUY,VAR1 * VAR2}

DRAW VAR2 ON PLOT VAR1
ADD COLUMN HIGH 1 DAY AGO {BUY LIMIT}

VBUY ABOVE .5
CLOSE ABOVE .1
VOLUME ABOVE 1000000

]



mktmole
325 posts
msg #82676
Ignore mktmole
11/9/2009 9:36:33 AM

" Chet, your programming skills are simply amazing....you rock. "
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

HEAR-HEAR ! !


chetron
2,817 posts
msg #83887
Ignore chetron
modified
12/5/2009 1:44:13 PM

FIND THE TOP OF THE BOTTOM
FIND THE BOTTOM OF THE TOP

GOOD READ...


Fetcher[

/* FIND THE TOP OF THE BOTTOM */
/* FIND THE BOTTOM OF THE TOP */

SET{VAR1,MACD(4,8) HISTOGRAM}
SET{VAR2,MACD SLOW LINE}

SET{VMH48,INDPOSITION(VAR1,100) * 100}
SET{VMSL1226,INDPOSITION(VAR2,100) * 100}

DRAW VMSL1226 ON PLOT VMH48

CLOSE ABOVE .1
VOLUME ABOVE 1000000
]



shovel52
18 posts
msg #83918
Ignore shovel52
12/6/2009 3:28:08 PM

Yes most impressive! Would anyone know how to take Chetrons filter below, with the buy and sell signals, and write it to scan for stocks that have pulled back to the EMA 55 in a strong up trend so we can enter on the divergence? I have tried but with no results. This would be perfect for the system I am testing now. I am just trying to eliminate having to look through 500 stocks to find the pull backs. Genius coding here!

chetron 11/26/2007 7:50:24 PM

the reason for the buy/sell columns is to allow you to sort on the type of play you are comfortable with.

to my knowledge, you can't display arrows, it would be nice though. the best i can do is draw the plays on the chart, where the red line is sell and green is buy. the color depends on the order of the variables in the draw command.

p.s. ignore the blue line. lol

Fetcher[

SET{VAR1,COUNT(MACD HISTOGRAM < 0.00,1)}
SET{VAR4,COUNT(MACD HISTOGRAM > -0.00,1)}
SET{VAR7,COUNT(2 DAY SLOPE OF MACD HISTOGRAM > 0,1)}
SET{VAR8,COUNT(2 DAY SLOPE OF MACD HISTOGRAM < 0,1)}

SET{BUY_LONG,VAR1 * VAR7}
SET{SELL_SHORT,VAR4 * VAR8}

SET{THE_PICKS,BUY_LONG + SELL_SHORT}
set{color_me_blue,0}
ADD COLUMN MACD FAST LINE
ADD COLUMN SEPARATOR
ADD COLUMN SELL_SHORT
ADD COLUMN SEPARATOR
ADD COLUMN BUY_LONG

DRAW sell_short on plot color_me_blue
draw buy_long on plot color_me_blue

DRAW ABS(MACD HISTOGRAM)

THE_PICKS > .5 AND VOLUME > 1000000

DO NOT DRAW THE_PICKS

SORT COLUMN 5 DESCENDING

]





chetron
2,817 posts
msg #89765
Ignore chetron
3/17/2010 8:55:55 AM

I LIKE THIS LOOK.....


Eman93
4,750 posts
msg #90772
Ignore Eman93
4/4/2010 9:37:15 AM

chetron
- Ignore chetron
modified 6/28/2008 10:53:18 AM

CANADIEN MALLARD PATTERN......


Fetcher[



/* TACHIKAWA */
/* LOOK FOR MACD HISTOGRAMS THAT LOOK LIKE A DUCK */
/* FLYING WESTWARDLY */
/* BULLISH */

set{var1,macd(4,8) histogram 1 day ago}
set{var2,var1 * 1.21}
SET{VMACDD,MACD(4,8) histogram}
SET{VAR3,COUNT(HIGH ABOVE LOWER BOLLINGER(20),1)}
SET{VAR4,COUNT(LOW BELOW LOWER BOLLINGER(20),1)}
SET{VBBPIERCE,VAR3 * VAR4}

ADD COLUMN VBBPIERCE

DRAW VMACDD LINE AT 0
DRAW RSI(2) LINE AT 0
DRAW RSI(2) LINE AT 100
DRAW WILLIAMS %R(2) LINE AT -0
DRAW WILLIAMS %R(2) LINE AT -100

MACD(4,8) HISTOGRAM < 0
MACD(4,8) HISTOGRAM > var2

RSI(2) CROSSED ABOVE 40
CLOSE ABOVE .3
VOLUME ABOVE 100000

DO NOT DRAW VAR2
CHART-TIME 22 DAY
===============================================

getting lots of hits 700+


StockFetcher Forums · Filter Exchange · ANOTHER MACD FILTER....<< 1 2 3 4 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.