StockFetcher Forums · General Discussion · Assign a number based on a value<< >>Post Follow-up
asa32sd23
4 posts
msg #62975
Ignore asa32sd23
5/22/2008 5:51:58 PM

Looking to write a set{} which assigns a number 1 if the high is higher then yesterday high.. or -1 if todays low if lower then low 1 day ago.

thanks if anyone can help...

chetron
2,817 posts
msg #62982
Ignore chetron
5/22/2008 8:14:04 PM

TRY THIS THREAD " Price Action Trading Method ". IT IS JUST BELOW THIS ONE.




nikoschopen
2,824 posts
msg #62983
Ignore nikoschopen
5/22/2008 8:50:18 PM

Fetcher[
set{Over, count(high above high 1 day ago,1)}
set{Under, count(low below low 1 day ago,1) * -1}
set{Both, Over + Under}
set{None,Over - Under}
None above 0

add column separator
add column Both{Xover(1) / Xunder(-1)}
add column separator
add column high
add column high 1 day ago{high(-1)}
add column separator
add column low
add column low 1 day ago{low(-1)}
add column separator
]



StockFetcher Forums · General Discussion · Assign a number based on a value<< >>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.