StockFetcher Forums · General Discussion · supertrend indicator<< >>Post Follow-up
pratheepskn
1 posts
msg #140640
Ignore pratheepskn
1/3/2018 7:27:21 PM

Hi,

Does anyone have the code for super trend indicator? or can some help me with the code for below logic?

BASIC UPPERBAND = (HIGH + LOW) / 2 + Multiplier * ATR
BASIC LOWERBAND = (HIGH + LOW) / 2 - Multiplier * ATR

FINAL UPPERBAND = IF( (Current BASICUPPERBAND < Previous FINAL UPPERBAND) and (Previous Close > Previous FINAL UPPERBAND)) THEN (Current BASIC UPPERBAND) ELSE Previous FINALUPPERBAND)

FINAL LOWERBAND = IF( (Current BASIC LOWERBAND > Previous FINAL LOWERBAND) and (Previous Close < Previous FINAL LOWERBAND)) THEN (Current BASIC LOWERBAND) ELSE Previous FINAL LOWERBAND)

SUPERTREND = IF(Current Close <= Current FINAL UPPERBAND ) THEN Current FINAL UPPERBAND ELSE Current FINAL LOWERBAND

Cheese
1,374 posts
msg #140672
Ignore Cheese
1/5/2018 11:46:34 AM

Different charting services may have different interpretaions of supertrend

Working with the existing sF syntax and charting specs, here are some suggestions
by chetron in 2008:

https://www.stockfetcher.com/forums/Filter-Exchange/LINE-ART/61664/-1/61664

Hope this helps.


saubaner
1 posts
msg #145339
Ignore saubaner
modified
11/24/2018 10:38:03 PM

I would be interested in supertrend indicator too. Can stockfetcher support this indicator natively?

StockFetcher Forums · General Discussion · supertrend indicator<< >>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.