If matype = "medianHigh" then Median(src, length) else If matype = "median" then Median(src, length) else If matype = "low" then Lowest(src, length) else If matype = "high" then Highest(src, length) else If matype = "hma" then HullMovingAvg(src, length) else If matype = "wma" then WMA(src, length) else If matype = "rma" then WildersAverage(src, length) else If matype = "ema" then ExpAverage(src, length) else Input useDiminishingRange = yes # 'Diminishing Stop Distance'ĭefineGlobalColor("up", CreateColor(76,175,80)) ĭefineGlobalColor("dn", CreateColor(255,82,82)) ĭef ma = if matype = "sma" then sliced else Input waitForClose = yes # 'Wait for Close' Input useClosePrices = yes # 'Use Close Price' Input multiplier = 4 # 'Supertrend range multiplier' Input length = 20 # 'Supertrend range calculation length' Input supertrendType = #'Applied Calculation' # converted and mod by - 05/2023 - Not Typical Conv #indicator("Master Supertrend ", "MST ", overlay = true) #// This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |