StockFetcher Forums · General Discussion · how to set a time dependency for 2 indicators<< >>Post Follow-up
Matzenator
1 posts
msg #149602
Ignore Matzenator
11/15/2019 4:29:16 AM

Hi all,

hope somebody may help me. I have two indicators and I want to have following dependency:

1) search for the event indicator 'x' within last 3 days from now
2) if the event 'x' happend on a specific day within the last 3 days, I want to have indicator 'y' below a specific value before event 'x'.

Thank you for your support!

BR
Matthias



xarlor
581 posts
msg #149611
Ignore xarlor
11/15/2019 2:46:37 PM

This will get you close.

Fetcher[
/* Example CCI(14) below -100 within last 3 days and RSI(5) below 30 4 days ago */

set{var1,count(CCI(14) < -100,3)}
set{var2,count(RSI(5) 4 days ago < 30,1)}
var1 > 0
var2 > 0

/* Aesthetics */

draw CCI(14)
draw RSI(5)

draw CCI(14) line at -100
draw RSI(5) line at 30
]



StockFetcher Forums · General Discussion · how to set a time dependency for 2 indicators<< >>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.