{"id":12,"date":"2024-08-09T23:37:00","date_gmt":"2024-08-09T23:37:00","guid":{"rendered":""},"modified":"2025-06-21T15:30:04","modified_gmt":"2025-06-21T15:30:04","slug":"improved-pine-script-ema-rsi-momentum","status":"publish","type":"post","link":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/","title":{"rendered":"Improved Pine Script: EMA RSI Momentum"},"content":{"rendered":"<p>This pine script is the improved version of previous script. <a href=\"https:\/\/www.capayam.com\/2024\/07\/new-pine-script-published-ema-rsi.html\" target=\"_blank\"><b>Check here<\/b><\/a>. The strategy mainly the same, except it now has StopLoss function, so you sleep soundly knowing your capital is protected.&nbsp;<\/p>\n<p>It also includes Start and Stop timestamp. It can be useful to backtest the strategy at a shorter\/specific period of time.<\/p>\n<p>Strategy Technical Description: It place Buy order when price crosses up EMA line and RSI is above BUY threshold. It exits when the RSI reaches SELL threshold. The recent swing low acts as StopLoss level.<\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/s1062\/Screenshot%202024-08-10%20073505.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img fetchpriority=\"high\" decoding=\"async\" border=\"0\" data-original-height=\"637\" data-original-width=\"1062\" height=\"240\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png\" width=\"400\" \/><\/a><\/div>\n<p><\/p>\n<p><b><u>Recommended setting:<\/u><\/b><\/p>\n<p>Pair: IOUSDT (Binance)<\/p>\n<p>Timeframe: 5 minutes<\/p>\n<p>Capital in wallet: Minimum 30 USDT<\/p>\n<p><\/p>\n<div style=\"background-color: #131722; color: white; font-family: Menlo, &quot;Ubuntu Mono&quot;, Consolas, source-code-pro, monospace, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; line-height: 18px; white-space: pre;\">\n<div><span style=\"color: #787b86;\">\/\/<\/span><span style=\"color: #787b86; font-weight: bold;\">@version=<\/span><span style=\"color: #787b86;\">5<\/span><\/div>\n<div><span style=\"color: #5b9cf6;\">strategy<\/span>(<span style=\"color: #388e3c;\">&#8220;EMA-RSI strategy[www.capayam.com]&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">overlay<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">false<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">initial_capital<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #f57f17;\">10<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">default_qty_type<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">strategy.percent_of_equity<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">default_qty_value<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f57f17;\">100<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">commission_type<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">strategy.commission.percent<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">commission_value<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f57f17;\">0.1<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ The default setting is for IOUSDT (Binance TF5)<\/span><\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Adjustable Inputs<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">emaLength<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input.int<\/span>(<span style=\"color: #f57f17;\">540<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;EMA Length&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">rsiLength<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input.int<\/span>(<span style=\"color: #f57f17;\">14<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;RSI Length&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">rsiOverboughtLevel<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input.int<\/span>(<span style=\"color: #f57f17;\">78<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;RSI Sell Threshold&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">rsiOversoldLevel<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input.int<\/span>(<span style=\"color: #f57f17;\">57<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;RSI Buy Threshold&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">swingLowLookback<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input.int<\/span>(<span style=\"color: #f57f17;\">21<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Recent Swing Low (StopLoss)&#8221;<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #d1d4dc;\">show_time<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f77c80;\">true<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;&#8212;Start Stop (Optional)&#8212;&#8220;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">start_year<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">2022<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Start Year&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">start_month<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">1<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Start Month (1-12)&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">start_day<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">1<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Start Day (1-31)&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">stop_year<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">2026<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Stop Year&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">stop_month<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">12<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Stop Month (1-12)&#8221;<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">stop_day<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">input<\/span>(<span style=\"color: #f57f17;\">31<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;Stop Day (1-31)&#8221;<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Create timestamps from the input dates<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">start_trading_date<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">timestamp<\/span>(<span style=\"color: #d1d4dc;\">start_year<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">start_month<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">start_day<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #f57f17;\">0<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #f57f17;\">0<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">stop_trading_date<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">timestamp<\/span>(<span style=\"color: #d1d4dc;\">stop_year<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">stop_month<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">stop_day<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #f57f17;\">23<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #f57f17;\">59<\/span>)<\/div>\n<div><span style=\"color: #787b86;\">\/\/ Define the EMAs<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">ema<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">ta.ema<\/span>(<span style=\"color: #f77c80;\">close<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">emaLength<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Define the RSI<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">rsi<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">ta.rsi<\/span>(<span style=\"color: #f77c80;\">close<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">rsiLength<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Buy Condition: Price crosses above Long EMA and RSI buy Threshold<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">BuySignal<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">ta.crossover<\/span>(<span style=\"color: #f77c80;\">close<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">ema<\/span>) <span style=\"color: #42bda8;\">and<\/span> <span style=\"color: #d1d4dc;\">rsi<\/span> <span style=\"color: #42bda8;\">&gt;<\/span> <span style=\"color: #d1d4dc;\">rsiOversoldLevel<\/span> <span style=\"color: #42bda8;\">and<\/span> (<span style=\"color: #f77c80;\">time<\/span> <span style=\"color: #42bda8;\">&gt;=<\/span> <span style=\"color: #d1d4dc;\">start_trading_date<\/span>) <span style=\"color: #42bda8;\">and<\/span> (<span style=\"color: #f77c80;\">time<\/span> <span style=\"color: #42bda8;\">&lt;=<\/span> <span style=\"color: #d1d4dc;\">stop_trading_date<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">SellSignal<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #d1d4dc;\">rsi<\/span> <span style=\"color: #42bda8;\">&gt;<\/span> <span style=\"color: #d1d4dc;\">rsiOverboughtLevel<\/span><\/div>\n<div><span style=\"color: #787b86;\">\/\/ Define the stop loss at the recent swing low<\/span><\/div>\n<div><span style=\"color: #d1d4dc;\">recentSwingLow<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #5b9cf6;\">ta.lowest<\/span>(<span style=\"color: #f77c80;\">low<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">swingLowLookback<\/span>)<\/div>\n<div><span style=\"color: #d1d4dc;\">stopLoss<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #d1d4dc;\">recentSwingLow<\/span><\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Plot the EMAs<\/span><\/div>\n<div><span style=\"color: #5b9cf6;\">plot<\/span>(<span style=\"color: #d1d4dc;\">ema<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">color<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">color.green<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;EMA Long&#8221;<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Plot the RSI<\/span><\/div>\n<div><span style=\"color: #5b9cf6;\">hline<\/span>(<span style=\"color: #d1d4dc;\">rsiOverboughtLevel<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #388e3c;\">&#8220;Overbought&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">color<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">color.red<\/span>)<\/div>\n<div><span style=\"color: #5b9cf6;\">hline<\/span>(<span style=\"color: #d1d4dc;\">rsiOversoldLevel<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #388e3c;\">&#8220;Oversold&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">color<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">color.green<\/span>)<\/div>\n<div><span style=\"color: #5b9cf6;\">plot<\/span>(<span style=\"color: #d1d4dc;\">rsi<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">title<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #388e3c;\">&#8220;RSI&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">color<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #f77c80;\">color.purple<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #d1d4dc;\">position_size<\/span> <span style=\"color: #42bda8;\">=<\/span> (<span style=\"color: #5b9cf6;\">math.ceil<\/span>((<span style=\"color: #f77c80;\">strategy.equity<\/span> <span style=\"color: #42bda8;\">\/<\/span> <span style=\"color: #f77c80;\">close<\/span>) <span style=\"color: #42bda8;\">*<\/span> <span style=\"color: #f57f17;\">1<\/span>))<span style=\"color: #42bda8;\">\/<\/span><span style=\"color: #f57f17;\">1<\/span><\/div>\n<p><\/p>\n<div><span style=\"color: #787b86;\">\/\/ Strategy entry with stop loss and take profit<\/span><\/div>\n<div><span style=\"color: #42bda8;\">if<\/span> (<span style=\"color: #d1d4dc;\">BuySignal<\/span>)<\/div>\n<div>&nbsp; &nbsp; <span style=\"color: #5b9cf6;\">strategy.entry<\/span>(<span style=\"color: #388e3c;\">&#8220;Buy&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #f77c80;\">strategy.long<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">qty<\/span> <span style=\"color: #42bda8;\">=<\/span> <span style=\"color: #d1d4dc;\">position_size<\/span>)<\/div>\n<div>&nbsp; &nbsp; <span style=\"color: #5b9cf6;\">strategy.exit<\/span>(<span style=\"color: #388e3c;\">&#8220;StopLoss&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #388e3c;\">&#8220;Buy&#8221;<\/span><span style=\"color: #42bda8;\">,<\/span> <span style=\"color: #d1d4dc;\">stop<\/span><span style=\"color: #42bda8;\">=<\/span><span style=\"color: #d1d4dc;\">stopLoss<\/span>)<\/div>\n<p><\/p>\n<div><span style=\"color: #42bda8;\">if<\/span> (<span style=\"color: #d1d4dc;\">SellSignal<\/span>)<\/div>\n<div>&nbsp; &nbsp; <span style=\"color: #5b9cf6;\">strategy.close<\/span>(<span style=\"color: #388e3c;\">&#8220;Buy&#8221;<\/span>)<\/div>\n<div>&nbsp; &nbsp; <\/div>\n<\/div>\n<p><\/p>\n<p>If you have other recommended stettings, please do share in the comment below.<\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This pine script is the improved version of previous script. Check here. The strategy mainly the same, except it now has StopLoss function, so you sleep soundly knowing your capital<\/p>\n<p><a href=\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\" class=\"btn btn-skin btn-radius\">Continue Reading<span class=\"screen-reader-text\">Improved Pine Script: EMA RSI Momentum<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-pine-script-strategy","tag-pine-script-strategy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Improved Pine Script: EMA RSI Momentum - kriptos.my<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Improved Pine Script: EMA RSI Momentum - kriptos.my\" \/>\n<meta property=\"og:description\" content=\"This pine script is the improved version of previous script. Check here. The strategy mainly the same, except it now has StopLoss function, so you sleep soundly knowing your capitalContinue ReadingImproved Pine Script: EMA RSI Momentum\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\" \/>\n<meta property=\"og:site_name\" content=\"kriptos.my\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-09T23:37:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-21T15:30:04+00:00\" \/>\n<meta name=\"author\" content=\"kriptos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kriptos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\"},\"author\":{\"name\":\"kriptos\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/person\/ab6ae0f7dc407600d321d44b02da9556\"},\"headline\":\"Improved Pine Script: EMA RSI Momentum\",\"datePublished\":\"2024-08-09T23:37:00+00:00\",\"dateModified\":\"2025-06-21T15:30:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\"},\"wordCount\":413,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kriptos.my\/#organization\"},\"image\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png\",\"keywords\":[\"Pine Script Strategy\"],\"articleSection\":[\"Pine Script Strategy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\",\"url\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\",\"name\":\"Improved Pine Script: EMA RSI Momentum - kriptos.my\",\"isPartOf\":{\"@id\":\"https:\/\/kriptos.my\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png\",\"datePublished\":\"2024-08-09T23:37:00+00:00\",\"dateModified\":\"2025-06-21T15:30:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage\",\"url\":\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png\",\"contentUrl\":\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kriptos.my\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Improved Pine Script: EMA RSI Momentum\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kriptos.my\/#website\",\"url\":\"https:\/\/kriptos.my\/\",\"name\":\"kriptos.my\",\"description\":\"Trading Bot Enthusiast\",\"publisher\":{\"@id\":\"https:\/\/kriptos.my\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kriptos.my\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kriptos.my\/#organization\",\"name\":\"kriptos.my\",\"url\":\"https:\/\/kriptos.my\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kriptos.my\/wp-content\/uploads\/2025\/06\/cropped-kriptosmy-perkataan.png\",\"contentUrl\":\"https:\/\/kriptos.my\/wp-content\/uploads\/2025\/06\/cropped-kriptosmy-perkataan.png\",\"width\":872,\"height\":199,\"caption\":\"kriptos.my\"},\"image\":{\"@id\":\"https:\/\/kriptos.my\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/person\/ab6ae0f7dc407600d321d44b02da9556\",\"name\":\"kriptos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a20605acecdd9f3d901b43544301ee4d59d4b1755e81596045ff947403d36442?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a20605acecdd9f3d901b43544301ee4d59d4b1755e81596045ff947403d36442?s=96&d=mm&r=g\",\"caption\":\"kriptos\"},\"url\":\"https:\/\/kriptos.my\/index.php\/author\/08464702926718497666\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Improved Pine Script: EMA RSI Momentum - kriptos.my","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:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/","og_locale":"en_US","og_type":"article","og_title":"Improved Pine Script: EMA RSI Momentum - kriptos.my","og_description":"This pine script is the improved version of previous script. Check here. The strategy mainly the same, except it now has StopLoss function, so you sleep soundly knowing your capitalContinue ReadingImproved Pine Script: EMA RSI Momentum","og_url":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/","og_site_name":"kriptos.my","article_published_time":"2024-08-09T23:37:00+00:00","article_modified_time":"2025-06-21T15:30:04+00:00","author":"kriptos","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kriptos","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#article","isPartOf":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/"},"author":{"name":"kriptos","@id":"https:\/\/kriptos.my\/#\/schema\/person\/ab6ae0f7dc407600d321d44b02da9556"},"headline":"Improved Pine Script: EMA RSI Momentum","datePublished":"2024-08-09T23:37:00+00:00","dateModified":"2025-06-21T15:30:04+00:00","mainEntityOfPage":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/"},"wordCount":413,"commentCount":0,"publisher":{"@id":"https:\/\/kriptos.my\/#organization"},"image":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png","keywords":["Pine Script Strategy"],"articleSection":["Pine Script Strategy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/","url":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/","name":"Improved Pine Script: EMA RSI Momentum - kriptos.my","isPartOf":{"@id":"https:\/\/kriptos.my\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage"},"image":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png","datePublished":"2024-08-09T23:37:00+00:00","dateModified":"2025-06-21T15:30:04+00:00","breadcrumb":{"@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#primaryimage","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png","contentUrl":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg47QJOZsqULfqKcMOHjUe2AEyk0TCltwg5ypH2TL1egeolVolUGLKM7Y-XAOrNAaVghINenLEMCyAdvrF29yLrxlETCZDB2xKnbstp3W8NwoIMSbOstbFtrg6w4QtcY6WymmhyphenhyphenlTBhyQ-mqAUNsWRPbrcjvKIEMXjfMQiCXW42pdLy_ZCQn7Ecd2f4g_HC\/w400-h240\/Screenshot%202024-08-10%20073505.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kriptos.my\/index.php\/2024\/08\/09\/improved-pine-script-ema-rsi-momentum\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kriptos.my\/"},{"@type":"ListItem","position":2,"name":"Improved Pine Script: EMA RSI Momentum"}]},{"@type":"WebSite","@id":"https:\/\/kriptos.my\/#website","url":"https:\/\/kriptos.my\/","name":"kriptos.my","description":"Trading Bot Enthusiast","publisher":{"@id":"https:\/\/kriptos.my\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kriptos.my\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kriptos.my\/#organization","name":"kriptos.my","url":"https:\/\/kriptos.my\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kriptos.my\/#\/schema\/logo\/image\/","url":"https:\/\/kriptos.my\/wp-content\/uploads\/2025\/06\/cropped-kriptosmy-perkataan.png","contentUrl":"https:\/\/kriptos.my\/wp-content\/uploads\/2025\/06\/cropped-kriptosmy-perkataan.png","width":872,"height":199,"caption":"kriptos.my"},"image":{"@id":"https:\/\/kriptos.my\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kriptos.my\/#\/schema\/person\/ab6ae0f7dc407600d321d44b02da9556","name":"kriptos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kriptos.my\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a20605acecdd9f3d901b43544301ee4d59d4b1755e81596045ff947403d36442?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a20605acecdd9f3d901b43544301ee4d59d4b1755e81596045ff947403d36442?s=96&d=mm&r=g","caption":"kriptos"},"url":"https:\/\/kriptos.my\/index.php\/author\/08464702926718497666\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}