{"id":2693,"date":"2022-09-30T08:32:17","date_gmt":"2022-09-30T08:32:17","guid":{"rendered":"https:\/\/www.overcharts.com\/en\/helpcenter\/?post_type=docs&#038;p=2693"},"modified":"2025-04-24T15:43:31","modified_gmt":"2025-04-24T15:43:31","password":"","slug":"overbasic-alert-functions","status":"publish","type":"docs","link":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/","title":{"rendered":"Overbasic &#8211; Alert Functions"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>My.Alert<\/strong> category contains all built-in functions for generating alerts, and therefore displaying video messages or playing sounds based on specific conditions.<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Display_Notification<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Displays a notification message on screen during real time session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result type<\/strong>: none<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Arguments<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MESSAGE<\/strong>: message to display<\/li>\n\n\n\n<li><strong>DISPLAY MODE<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>BAR<\/strong>: the message is displayed ONLY once per bar.<\/li>\n\n\n\n<li><strong>ALWAYS<\/strong>: the message is ALWAYS displayed, even if it has already been displayed in the current bar.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>CLOSE AFTER X SECONDS<\/strong>: (<em>optional<\/em>) closes alert message window automatically after x seconds.<\/li>\n\n\n\n<li><strong>ADD TO ALERTS LOG<\/strong>: (<em><em>optional<\/em><\/em>) if TRUE, the alert is added to &#8216;Alerts-Log&#8217; window.<\/li>\n\n\n\n<li><strong>ALERT NAME<\/strong>: (<em><em>optional<\/em><\/em>) specifies the alert name.<\/li>\n\n\n\n<li><strong>ALERT PRIORITY<\/strong>: (<em>facoltativo<\/em>) defines the alert importance. Priority is displayed in &#8216;Alerts Log&#8217; window.\n<ul class=\"wp-block-list\">\n<li><strong>H<\/strong>: HIGH priority<\/li>\n\n\n\n<li><strong>M<\/strong>: MEDIUM priority<\/li>\n\n\n\n<li><strong>L<\/strong>: LOW priority<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>My.Alert.Display_notification(\"Hello World!\", \"BAR\")<\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Playsound<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Play a sound during real time session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result type<\/strong>: none<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Arguments<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SOUND TO PLAY<\/strong>: sound to play (select it from available sound list).<\/li>\n\n\n\n<li><strong>PLAYBACK MODE<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>BAR<\/strong>: the sound plays ONLY once per bar.<\/li>\n\n\n\n<li><strong>ALWAYS<\/strong>: the sound is ALWAYS played, even if it has already been played in the current bar.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>ADD TO ALERTS LOG<\/strong>: (<em><em>optional<\/em><\/em>) if TRUE, an alert message is added to &#8216;Alerts-Log&#8217; window. The message is defined by &#8216;ALERT NAME&#8217;, &#8216;ALERT MESSAGE&#8217; and &#8216;ALERT PRIORITY&#8217; parameters.<\/li>\n\n\n\n<li><strong>ALERT NAME<\/strong>: (<em><em>optional<\/em><\/em>) specifies the alert name (in alerts-log window).<\/li>\n\n\n\n<li><strong>ALERT MESSAGE<\/strong>: (<em><em>optional<\/em><\/em>) message to be displayed in the alerts-log window.<\/li>\n\n\n\n<li><strong>ALERT PRIORITY<\/strong>: (<em><em>optional<\/em><\/em>) defines the alert importance. Priority is displayed in &#8216;Alerts Log&#8217; window.\n<ul class=\"wp-block-list\">\n<li><strong>H<\/strong>: HIGH priority<\/li>\n\n\n\n<li><strong>M<\/strong>: MEDIUM priority<\/li>\n\n\n\n<li><strong>L<\/strong>: LOW priority<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>My.Alert.Playsound(\"ALERT 1\", \"BAR\")<\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><strong>Send_Telegram_Message<\/strong><\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Send a notification message on Telegram during the real-time session. <strong>IMPORTANT<\/strong>: remember to configure the Telegram sending parameters in the <strong><a href=\"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/preferences\/\" target=\"_blank\" rel=\"noreferrer noopener\">Preferences<\/a><\/strong> window.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result type<\/strong>: none<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Arguments<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MESSAGE<\/strong>: message to send<\/li>\n\n\n\n<li><strong>SENDING MODE<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>BAR<\/strong>: the message is sent ONLY once per bar.<\/li>\n\n\n\n<li><strong>ALWAYS<\/strong>: the message is ALWAYS sent, even if it has already been sent in the current bar.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>ADD TO ALERTS LOG<\/strong>: (<em><em>optional<\/em><\/em>) if TRUE, the alert is added to &#8216;Alerts-Log&#8217; window.<\/li>\n\n\n\n<li><strong>ALERT NAME<\/strong>: (<em><em>optional<\/em><\/em>) specifies the alert name.<\/li>\n\n\n\n<li><strong>ALERT PRIORITY<\/strong>: (<em>facoltativo<\/em>) defines the alert importance. Priority is displayed in &#8216;Alerts Log&#8217; window.\n<ul class=\"wp-block-list\">\n<li><strong>H<\/strong>: HIGH priority<\/li>\n\n\n\n<li><strong>M<\/strong>: MEDIUM priority<\/li>\n\n\n\n<li><strong>L<\/strong>: LOW priority<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>My.Alert.Send_Telegram_Message(\"Hello World!\", \"BAR\")<\/code><\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>My.Alert category contains all built-in functions for generating alerts, and therefore displaying video messages or playing sounds based on specific conditions. Display_Notification Displays a notification message on screen during real time session. Result type: none Arguments: Playsound Play a sound during real time session. Result type: none Arguments: Send_Telegram_Message Send a notification message on Telegram [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[18],"doc_tag":[],"class_list":["post-2693","docs","type-docs","status-publish","hentry","doc_category-built-in-funtions"],"year_month":"2026-10","word_count":375,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Overcharts Team","author_nicename":"overadmin","author_url":"https:\/\/www.overcharts.com\/en\/helpcenter\/author\/overadmin\/"},"doc_category_info":[{"term_name":"Built-In Funtions","term_url":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs-category\/built-in-funtions\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>Overbasic - Alert Functions - Overcharts Help Center<\/title>\r\n<meta name=\"description\" content=\"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Overbasic - Alert Functions - Overcharts Help Center\" \/>\r\n<meta property=\"og:description\" content=\"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Overcharts Help Center\" \/>\r\n<meta property=\"article:modified_time\" content=\"2025-04-24T15:43:31+00:00\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/docs\\\/overbasic-alert-functions\\\/\",\"url\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/docs\\\/overbasic-alert-functions\\\/\",\"name\":\"Overbasic - Alert Functions - Overcharts Help Center\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/#website\"},\"datePublished\":\"2022-09-30T08:32:17+00:00\",\"dateModified\":\"2025-04-24T15:43:31+00:00\",\"description\":\"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/docs\\\/overbasic-alert-functions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/docs\\\/overbasic-alert-functions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/docs\\\/overbasic-alert-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Overbasic &#8211; Alert Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/#website\",\"url\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/\",\"name\":\"Overcharts Help Center\",\"description\":\"Trading Software &amp; Technical Analysis\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.overcharts.com\\\/en\\\/helpcenter\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Overbasic - Alert Functions - Overcharts Help Center","description":"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/","og_locale":"en_US","og_type":"article","og_title":"Overbasic - Alert Functions - Overcharts Help Center","og_description":"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.","og_url":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/","og_site_name":"Overcharts Help Center","article_modified_time":"2025-04-24T15:43:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/","url":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/","name":"Overbasic - Alert Functions - Overcharts Help Center","isPartOf":{"@id":"https:\/\/www.overcharts.com\/en\/helpcenter\/#website"},"datePublished":"2022-09-30T08:32:17+00:00","dateModified":"2025-04-24T15:43:31+00:00","description":"My.Alert category contains built-in functions for generating alerts and displaying messages or playing sounds based on specific conditions.","breadcrumb":{"@id":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.overcharts.com\/en\/helpcenter\/docs\/overbasic-alert-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.overcharts.com\/en\/helpcenter\/"},{"@type":"ListItem","position":2,"name":"Overbasic &#8211; Alert Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.overcharts.com\/en\/helpcenter\/#website","url":"https:\/\/www.overcharts.com\/en\/helpcenter\/","name":"Overcharts Help Center","description":"Trading Software &amp; Technical Analysis","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.overcharts.com\/en\/helpcenter\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/docs\/2693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/comments?post=2693"}],"version-history":[{"count":6,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/docs\/2693\/revisions"}],"predecessor-version":[{"id":3438,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/docs\/2693\/revisions\/3438"}],"wp:attachment":[{"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/media?parent=2693"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/doc_category?post=2693"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.overcharts.com\/en\/helpcenter\/wp-json\/wp\/v2\/doc_tag?post=2693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}