StockFetcher Forums · General Discussion · Adding support & resistance<< >>Post Follow-up
nainil
10 posts
msg #161504
Ignore nainil
12/21/2024 10:02:31 AM

Hi

Is there a way to add support & resistance lines? I’ve added the code but it’s for some reason not showing up.

/* Define variable for moving average period */
set{ma_period, 90}

/* Touched MA(period) then bounced above it */
low 2 days ago > ma(ma_period) 2 days ago
low 1 day ago < ma(ma_period) 1 day ago
close > open
close > close 1 day ago
close > ma(ma_period)

/* Limit the universe of tickers */
close > 10
average volume(30) > 100,000

/* Calculate Support and Resistance */
set{support, low 10 days ago}
set{resistance, high 10 days ago}
add column support {Support Level}
add column resistance {Resistance Level}

/* Sort by percentage gain close-to-close */
set{Pup1,close / close 1 day ago}
set{Pup2,Pup1 - 1}
set{Pup,Pup2 * 100}
add column Pup {Percentage up}
sort column 5 descending

/* Highlight Support and Resistance Levels */
draw resistance on price
draw support on price
draw ma(ma_period) on price


nibor100
1,044 posts
msg #161508
Ignore nibor100
12/21/2024 6:10:20 PM

The easy way is to use SF's support and resistance capabilities as shown in the Indicators and Measures Forum.
Ed S.

StockFetcher Forums · General Discussion · Adding support & resistance<< >>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.