StockFetcher Forums · Filter Exchange · varoffset()<< >>Post Follow-up
graftonian
1,089 posts
msg #154101
Ignore graftonian
9/21/2020 2:39:50 PM

@ed s.
thanks for the tip. I threw this together to keep track of a watchlist. The filter is not complete, just a simple LRI10/50 cross, to test the doability of this project. I Will probably add a stop section later
enjoy, graf

Fetcher[
symlist(GE,GOGO, WPRT, wiz)
draw LRI(10) and draw LRI(50)
set{lriCross, count(LRI(10) crossed above LRI(50), 1)}
draw lriCross
set{DaysSinceTrigger, days(lricross equals 1, 100)}
DaysSinceTrigger > 0
add column DaysSinceTrigger
Set{buyDay, DaysSinceTrigger - 1}
set{BuyPrice, varoffset(open, BuyDay)}
add column buyprice
draw price line at buyprice
/******Performance since buyday****/
set{dlrgain, close - BuyPrice}
add column dlrgain
set{pg1, dlrgain / buyprice}
set{PctGain, pg1 * 100}
add column pctgain
do not draw DaysSinceTrigger
]



nibor100
1,043 posts
msg #154102
Ignore nibor100
9/21/2020 3:36:01 PM

Excellent use of VarOffset!

When you add a Stop you might want to consider incorporating some of Cegis filter ideas regarding a trading system with stop prices and exits updated daily. ( though of course bound by SF complexity rules)

Thanks,
Ed S.

StockFetcher Forums · Filter Exchange · varoffset()<< >>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.