StockFetcher Forums · General Discussion · Limit command to after event<< >>Post Follow-up
epsimpson
5 posts
msg #121995
Ignore epsimpson
modified
11/14/2014 3:12:01 PM

I am trying to set a variable for the low after a stock reaches a high. I then want to screen for stocks that close 50% above the high and recent low. Here is my dysfunctional code. Any suggestions are appreciated.

Fibonacci up(65,10) crossed .5 from above

set{xhi,fibonacci up(65,10) high}
set{xlow,low after xhi}
set{xrange,xhi - xlow}
set{xhalfrange,xrange / 2}
set{xtrigger,xlow + xhalfrange}

and closed above xtrigger

and do not draw fibonacci up(65,10)
and draw xlow
and draw xhi

-E

epsimpson
5 posts
msg #122004
Ignore epsimpson
modified
11/17/2014 3:49:52 PM

This is the idea. To test the sells it would help to set a variable for days between high and low. Is that possible?


Fibonacci up(45,4) crossed below .3

set{xfibhi,high 45 day high}
set{xfiblow,low 45 day low}
set{xlow,low 8 day low}
set{xrange,xfibhi - xlow}
set{xhalfrange,xrange / 2}
set{xtrigger,xlow + xhalfrange}

and closed above xtrigger

set{xsellrange,xfibhi - xfiblow}
set{xsellpeak,xlow + xsellrange}
set{xsellprofit,xsellpeak - xtrigger}
set{xsellpercent,xsellprofit / xtrigger}

and add column xsellpercent
and where xsellpercent is > .2

and average volume(100) is above 50000
and close is above .01
and offset 10 days


StockFetcher Forums · General Discussion · Limit command to after event<< >>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.