StockFetcher Forums · General Discussion · DI Syntax Help<< >>Post Follow-up
alexgelf
6 posts
msg #66222
Ignore alexgelf
8/15/2008 11:41:06 AM

Can someone help with syntax:

I want to say that -DI(14) was above +DI(14) for at least 5 days and +DI(14) crossed above -DI(14) today.

This does not work:
show stocks where -DI(14) above +DI(14) for 5 days 1 day ago
and +DI(14) above -DI(14) for 1 day

Thanks.

guru_trader
485 posts
msg #66281
Ignore guru_trader
modified
8/16/2008 4:12:20 PM

This has worked great with certain types of stocks ...

Fetcher[
and chart-length is 45
and avgvol(100) > 543210

and draw adx(14)

and set{ mdi_pdi_diff, MDI(14) - PDI(14) }
and draw mdi_pdi_diff line at 0

and set{ cnt_mdi_pdi_diff_1dago, count(mdi_pdi_diff 1 day ago > 0, 1)}
and add column cnt_mdi_pdi_diff_1dago
and draw cnt_mdi_pdi_diff_1dago

and set{ sum_cmpd1dago, sum(cnt_mdi_pdi_diff_1dago, 5)}
and add column sum_cmpd1dago
and draw sum_cmpd1dago

and sum_cmpd1dago equals 5

and +DI(14) crossed above -DI(14)
]



or

Fetcher[

and chart-length is 45
and avgvol(100) > 543210

and draw adx(14)

and set{ mdi_pdi_diff, MDI(14) - PDI(14) }
and draw mdi_pdi_diff line at 0

and set{ cnt_mdi_pdi_diff, count(mdi_pdi_diff > 0, 1)}
and add column cnt_mdi_pdi_diff
and draw cnt_mdi_pdi_diff

and set{ sum_cmpd, sum(cnt_mdi_pdi_diff, 5)}
and add column sum_cmpd
and draw sum_cmpd

and sum_cmpd 1 day ago equals 5

and +DI(14) crossed above -DI(14)
]



guru_trader
485 posts
msg #66282
Ignore guru_trader
8/16/2008 4:37:09 PM

More ideas ...

Fetcher[
and chart-length is 100

/* Basic Criteria */
and not otcbb
and avgvol(100) > 543210
and sort column 5 descending
and date offset 0

and draw adx(14)

and set{ cnt_mdi_pdi, count( MDI(14) > PDI(14) , 1) }
and draw cnt_mdi_pdi

and set{ sum_cnt_mdi_pdi, sum(cnt_mdi_pdi , 100) }
and add column sum_cnt_mdi_pdi
and draw sum_cnt_mdi_pdi

and sum_cnt_mdi_pdi 1 day ago > sum_cnt_mdi_pdi 2 days ago

and +DI(14) crossed above -DI(14)
]



alexgelf
6 posts
msg #66309
Ignore alexgelf
8/17/2008 9:25:56 AM

thanks guru_trader

StockFetcher Forums · General Discussion · DI Syntax Help<< >>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 2016 - 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