{"id":4003,"date":"2025-12-19T15:12:00","date_gmt":"2025-12-19T14:12:00","guid":{"rendered":"https:\/\/chromatic.se\/?p=4003"},"modified":"2026-07-15T18:11:37","modified_gmt":"2026-07-15T16:11:37","slug":"tradingview-indicator","status":"publish","type":"post","link":"https:\/\/chromatic.se\/en\/tradingview-indicator\/","title":{"rendered":"TradingView indicator 1<br>\u261c(\u2312\u25bd\u2312)\u261e"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4003\" class=\"elementor elementor-4003\">\n\t\t\t\t<div class=\"elementor-element elementor-element-dcbf758 e-con e-atomic-element e-flexbox-base e-3a61f68 \" data-id=\"dcbf758\" data-element_type=\"e-flexbox\" data-e-type=\"e-flexbox\" data-interaction-id=\"dcbf758\">\n    \t\t<div class=\"elementor-element elementor-element-efeb84c elementor-widget elementor-widget-spacer\" data-id=\"efeb84c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2e8612d elementor-widget elementor-widget-heading\" data-id=\"2e8612d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">\u261c(\u2312\u25bd\u2312)\u261e<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eddc0b5 elementor-widget elementor-widget-text-editor\" data-id=\"eddc0b5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>This is my homemade Moving-Average indicator for Tradingview, written in Pinescript.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\n<\/div>\n<div class=\"elementor-element elementor-element-45edf3a e-flex e-con-boxed e-con e-parent\" data-id=\"45edf3a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-532c3f3 e-con-full e-flex e-con e-child\" data-id=\"532c3f3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f5a093d elementor-widget elementor-widget-text-editor\" data-id=\"f5a093d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-style: inherit; font-weight: inherit;\">It has 6 trendlines calculating the moving average in these timeframes:<\/span><\/p><ul><li>1-minute<\/li><li>5-minute<\/li><li>Hourly<\/li><li>Daily<\/li><li>Weekly<\/li><li>Monthly<\/li><\/ul><p>It has settings to change the MA length and source.<\/p><p>Drop me a comment below with your details or send me an email if you\u2019d like the source code to add to your own set of indicators in TradingView!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-69d95f3 e-con-full e-flex e-con e-child\" data-id=\"69d95f3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-59ba3c0 elementor-widget elementor-widget-video\" data-id=\"59ba3c0\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=9SqAHv2ws2s&amp;source_ve_path=MjM4NTE&amp;embeds_referring_euri=https%3A%2F%2Fchromatic.se%2F&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>A homemade MA TradingView indicator written in PineScript.<\/p>\n","protected":false},"author":3,"featured_media":4716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_links_to":"","_links_to_target":""},"categories":[113,114,105],"tags":[],"class_list":["post-4003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-design","category-portfolio"],"_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":31,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"predecessor-version":[{"id":6367,"href":"https:\/\/chromatic.se\/en\/wp-json\/wp\/v2\/posts\/4003\/revisions\/6367"}],"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}]}}