{"id":4003,"date":"2025-12-19T15:12:00","date_gmt":"2025-12-19T14:12:00","guid":{"rendered":"https:\/\/chromatic.se\/?p=4003"},"modified":"2026-04-12T22:24:09","modified_gmt":"2026-04-12T20:24:09","slug":"tradingview-indicator","status":"publish","type":"post","link":"https:\/\/chromatic.se\/en\/tradingview-indicator\/","title":{"rendered":"TradingView indicator 1: \u261c(\u2312\u25bd\u2312)\u261e"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-mnh4ir3h-2a09b7ac1cb0bd6db93ef719012edfc8\">\n#top .hr.hr-invisible.av-mnh4ir3h-2a09b7ac1cb0bd6db93ef719012edfc8{\nheight:50px;\n}\n<\/style>\n<div  class='hr av-mnh4ir3h-2a09b7ac1cb0bd6db93ef719012edfc8 hr-invisible  avia-builder-el-0  el_before_av_heading  avia-builder-el-first '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-mjcxapah-417b26fbcd11e5eea99378b0bc961a32\">\n#top .av-special-heading.av-mjcxapah-417b26fbcd11e5eea99378b0bc961a32{\npadding-bottom:10px;\n}\nbody .av-special-heading.av-mjcxapah-417b26fbcd11e5eea99378b0bc961a32 .av-special-heading-tag .heading-char{\nfont-size:25px;\n}\n.av-special-heading.av-mjcxapah-417b26fbcd11e5eea99378b0bc961a32 .av-subheading{\nfont-size:15px;\n}\n<\/style>\n<div  class='av-special-heading av-mjcxapah-417b26fbcd11e5eea99378b0bc961a32 av-special-heading-h1 blockquote modern-quote modern-centered  avia-builder-el-1  el_after_av_hr  el_before_av_textblock '><h1 class='av-special-heading-tag '  itemprop=\"headline\"  >\u261c(\u2312\u25bd\u2312)\u261e<\/h1><div class=\"special-heading-border\"><div class=\"special-heading-inner-border\"><\/div><\/div><\/div>\n<section  class='av_textblock_section av-mjcxfyq7-4952a10ec5cb0bfcc80c3646071dfda5 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>This is my homemade Moving-Average indicator for Tradingview, written in Pinescript.<\/p>\n<\/div><\/section>\n<div  class='flex_column av-av_one_half-2d22dc0500e159f2b39fe7a147caf14c av_one_half  avia-builder-el-3  el_after_av_textblock  el_before_av_one_half  first flex_column_div  column-top-margin'     ><section  class='av_textblock_section av-mjcxofil-e0cbff9eb244e8846247b37f1cbc950f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>It has 6 trendlines calculating the moving average in these timeframes:<\/p>\n<ul>\n<li>1-minute<\/li>\n<li>5-minute<\/li>\n<li>Hourly<\/li>\n<li>Daily<\/li>\n<li>Weekly<\/li>\n<li>Monthly<\/li>\n<\/ul>\n<p>It has settings to change the MA length and source.<\/p>\n<p>Drop me a comment below with your details if you&#8217;d like the source code and add it to your own set of indicators in TradingView!<\/p>\n<\/div><\/section><\/div>\n<div  class='flex_column av-av_one_half-3b0d446bf9e6f7db91541aa567be4cdf av_one_half  avia-builder-el-5  el_after_av_one_half  el_before_av_comments_list  flex_column_div  column-top-margin'     ><div  class='avia-video av-mjczbwkp-5ec8a813982867f47b5dc70df5a5b444 avia-video-16-9 av-no-preview-image avia-video-load-always av-lazyload-immediate av-lazyload-video-embed'  itemprop=\"video\" itemtype=\"https:\/\/schema.org\/VideoObject\"  data-original_url='https:\/\/youtu.be\/9SqAHv2ws2s'><script type='text\/html' class='av-video-tmpl'><div class='avia-iframe-wrap'><iframe loading=\"lazy\" title=\"\u261c(\u2312\u25bd\u2312)\u261e TradingView indicator (ENG)\" width=\"1500\" height=\"844\" src=\"https:\/\/www.youtube.com\/embed\/9SqAHv2ws2s?feature=oembed&autoplay=0&loop=0&controls=1&mute=0\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div><\/script><div class='av-click-to-play-overlay'><div class=\"avia_playpause_icon\"><\/div><\/div><\/div><\/div>\n<div  class='av-buildercomment av-2enigz-72ca39c6e882070eee02c57bd4dfa814  av-blog-meta-author-disabled av-blog-meta-comments-disabled av-blog-meta-category-disabled av-blog-meta-date-disabled av-blog-meta-html-info-disabled av-blog-meta-tag-disabled'><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":4716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[105,103],"tags":[],"class_list":["post-4003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-portfolio-eng","category-social-wall"],"_links":{"self":[{"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts\/4003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/comments?post=4003"}],"version-history":[{"count":16,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"predecessor-version":[{"id":4715,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts\/4003\/revisions\/4715"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/media\/4716"}],"wp:attachment":[{"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/media?parent=4003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/categories?post=4003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/tags?post=4003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}