StockFetcher Forums · General Discussion · Price change from when RSI(2) was over 80<< >>Post Follow-up
dashover
226 posts
msg #154732
Ignore dashover
11/24/2020 12:16:24 AM

Price > 50
RSI (2) < 20

How do I determine change in % and $ since the stock was last RSI(2) > 80 ?

Thx!

graftonian
1,089 posts
msg #154735
Ignore graftonian
modified
11/24/2020 9:03:31 AM

The variable buyflag is probably not right , set as you wish.
Graf

Fetcher[
Set{buyFlag, count(RSI(2) > 80, 1)}
draw BuyFlag
Draw RSI(2)
set{DaysSinceTrigger, days(BuyFlag equals 1, 21)}
add column DaysSinceTrigger
sort on column 6 ascending
DaysSinceTrigger between 0 and 21
/****buy price is open the next day***/
Set{buyDay, DaysSinceTrigger - 1}
set{BuyPrice, varoffset(open, BuyDay)}
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
set{PctPerDay, PctGain / BuyDay}
draw PctPerDay
draw PctPerDay line at 0
do not draw DaysSinceTrigger
]





dashover
226 posts
msg #154749
Ignore dashover
11/24/2020 10:29:06 PM

Very Nice Job, Thanks!!


StockFetcher Forums · General Discussion · Price change from when RSI(2) was over 80<< >>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.