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?
 
  |