StockFetcher Forums · Filter Exchange · When Is A Doji Not A Doji?<< >>Post Follow-up
SFMc01
358 posts
msg #63527
Ignore SFMc01
6/9/2008 9:12:54 PM

How does one define a Doji? Especially when it comes to programming StockFetcher. Does the close have to exactly equal the open? Are there "rules" that have been developed that seem to be reliable? What about ... the open must be within 1% of the close? Or, 1/2% ? If possible, I'd really not like to have to learn the hard way ... by experience. Anything seem to work that you would share with me?

Thanaks .... Steve


ludowillems
111 posts
msg #63534
Ignore ludowillems
6/10/2008 9:00:00 AM

Hi Steve,
Have a look at
http://forums.stockfetcher.com/stockdb/fetcher?p=candle

WALLSTREETGENIUS
983 posts
msg #63536
Ignore WALLSTREETGENIUS
modified
6/10/2008 9:01:57 AM

- DELETED BY THEMIGHTYRIGGS HIMSELF -

springhill
74 posts
msg #63572
Ignore springhill
modified
6/11/2008 12:51:03 AM

Here is some code that will find most small body candles.

doji, hangman, hammer, abandoned baby, morning star etc

Play with the paramaters to filter to suit

Fetcher[
/* DOJI and other small body candle finder */
/* REMEMBER - dojis are an indicator that a reversal MIGHT occur*/
/* NOT that the reversal WILL occur!!!!! - So, use other confirmations*/

/* Set a few things here to get relationship between high, low, open and close */

set {hilo, high - low}
set {opclcalc, close - open}
set {hlocratio, opclcalc / hilo}
set {hlocpct, hlocratio * 100}
set {abshlocpct, abs(hlocpct)}

show stocks where price is between 1 and 200
offset is 0

/* Change numeric paramater higher or lower to find size of doji body desired */
abshlocpct < 10

/* Change decreasing to increasing to find doji, hammers, morning star etc at top */
/* Change increasing to decreasing to find doji, hammers, hangman etc at bottom*/
ema(3) decreasing last 3 days

volume(60) > 1000000

add column hilo
add column opclcalc
add column hlocratio
add column abshlocpct

/* Set sort field to hlocratio to sort from low red candle to high green candle*/
/* Set sort field to abshlocpct to sort all candles in numeric order regardless of red or green */
sort by hlocratio ascending]

have fun with it

Sorry I couldn't figure out how to make it clickable. Maybe some can help me? tnx

chetron
2,817 posts
msg #63576
Ignore chetron
modified
6/11/2008 6:39:39 AM

clickable...

doesn't like your notes below???????

/* DOJI and other small body candle finder */
/* REMEMBER - dojis are an indicator that a reversal MIGHT occur*/
/* NOT that the reversal WILL occur!!!!! - So, use other confirmations*/

/* Set a few things here to get relationship between high, low, open and close */


Fetcher[
set {hilo, high - low}
set {opclcalc, close - open}
set {hlocratio, opclcalc / hilo}
set {hlocpct, hlocratio * 100}
set {abshlocpct, abs(hlocpct)}

show stocks where price is between 1 and 200
offset is 0

/* Change numeric paramater higher or lower to find size of doji body desired */
abshlocpct < 10

/* Change decreasing to increasing to find doji, hammers, morning star etc at top */
/* Change increasing to decreasing to find doji, hammers, hangman etc at bottom*/
ema(3) decreasing last 3 days

volume(60) > 1000000

add column hilo
add column opclcalc
add column hlocratio
add column abshlocpct

/* Set sort field to hlocratio to sort from low red candle to high green candle*/
/* Set sort field to abshlocpct to sort all candles in numeric order regardless of red or green */

sort colume 7 ascending

]









chetron
2,817 posts
msg #65002
Ignore chetron
7/14/2008 9:37:31 PM

maybe even ....


Fetcher[

/* tachikawa */

set{vmax,max(open,close)}
set{vmin,min(open,close)}

set{vtop1,high - vmax}
set{vrange,high - low}
set{vbot1,vmin - low}

set{vtop2,vtop1 / vrange}
set{vtop,vtop2 * 100}

set{vbot2,vbot1 / vrange}
set{vbot,vbot2 * 100}

set{trig1,count(vtop above 50,1)}
set{trig2,count(vbot above 50,1)}

set{trigger,trig1 + trig2}

add column vbot
add column vtop

draw vtop on plot vbot

close above .3
volume above 100000
vbot 2 day ago below 50
vbot 1 day ago below 50
vtop 2 day ago below 50
vtop 1 day ago below 50
trigger above .5

]



chetron
2,817 posts
msg #65663
Ignore chetron
modified
7/31/2008 9:48:04 PM

maybe....

Fetcher[
/* tachikawa */

set{vmax,max(open,close)}
set{vmin,min(open,close)}

set{vtop1,high - vmax}
set{vrange,high - low}
set{vbot1,vmin - low}

set{vtop2,vtop1 / vrange}
set{vtop,vtop2 * 100}

set{vbot2,vbot1 / vrange}
set{vbot,vbot2 * 100}


set{trig1a,count(vtop above 50,1)}
set{trig2a,count(vbot above 50,1)}
set{vup,count(close above open,1)}
set{vdn,count(close below open,1)}

set{trig1,trig1a * vup}
set{trig2,trig2a * vdn}

set{trigger,trig1 + trig2}

set{vtopdays,days(trig1a above .50,100)}
set{vbotdays,days(trig2a above .50,100)}

add column vbot
add column vtop

draw vbotdays
draw vtopdays
draw vtop on plot vbot

close above .3
volume above 10000000
vbot 2 day ago below 50
vbot 1 day ago below 50
vtop 2 day ago below 50
vtop 1 day ago below 50
trigger above .5

]



chetron
2,817 posts
msg #65701
Ignore chetron
8/1/2008 9:17:32 AM

even....

Fetcher[


/* tachikawa */

set{vmax,max(open,close)}
set{vmin,min(open,close)}

set{vtop1,high - vmax}
set{vrange,high - low}
set{vbot1,vmin - low}

set{vtop2,vtop1 / vrange}
set{vtop,vtop2 * 100}

set{vbot2,vbot1 / vrange}
set{vbot,vbot2 * 100}


set{trig1a,count(vtop above 50,1)}
set{trig2a,count(vbot above 50,1)}
set{vup,count(close above open,1)}
set{vdn,count(close below open,1)}

set{trig1,trig1a * vup}
set{trig2,trig2a * vdn}

set{trigger,trig1 + trig2}

set{vtopdays,days(trig1a above .50,100)}
set{vbotdays,days(trig2a above .50,100)}

add column vbot
add column vtop

draw vbotdays
draw vtopdays
draw vtop on plot vbot

vtopdays above .5
vtopdays 1 day ago below .5
vbotdays below .5
close above .3
volume above 1000000

trigger above .5


]



StockFetcher Forums · Filter Exchange · When Is A Doji Not A Doji?<< >>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.