{"id":133,"date":"2026-10-23T14:33:22","date_gmt":"2026-10-23T14:33:22","guid":{"rendered":"https:\/\/kriptos.my\/?p=133"},"modified":"2026-10-23T14:33:22","modified_gmt":"2026-10-23T14:33:22","slug":"pine-script-revision-msb-strategy-with-optional-days","status":"publish","type":"post","link":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/","title":{"rendered":"Pine script revision: MSB strategy with optional days"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Another feature is added from <a href=\"https:\/\/kriptos.my\/index.php\/2026\/10\/06\/new-pine-script-msb-strategy-revised-with-trailing-profit\/\">previous script<\/a> which is the <strong>Day Filter<\/strong>. You can now choose which days to open trade. This is to improve your probability of winning trade.   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pine scriptcode as below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/This Pine script strategy was inspired and modified from MSB-OB by EmreKb. Credit goes to EmreKb.\n\n\/\/@version=5\nstrategy(\"MSB strategy&#91;kriptos.my]\", overlay=true, max_lines_count=500, max_bars_back=4900, max_boxes_count=500, initial_capital=100, default_qty_type=strategy.percent_of_equity, default_qty_value=99, pyramiding=1, commission_type=strategy.commission.percent, commission_value=0.22)\n\n\/\/In general, most recommended TF is 15min. Alternatives are 30min &amp; 1hour\n\/\/code266\n\n\/\/ --- STRATEGY SETTINGS ---\nstrat_group = \"Strategy Settings\"\nzigzag_len = input.int(18, \"ZigZag Length &#91;Recommended 3-30]\", group=strat_group)\nfib_factor = input.float(0.87, \"Fib Factor &#91;Recommended 0.3-0.99]\", 0, 1, 0.01, group=strat_group)\ntp_perc = input.float(9.9, title=\"Take Profit % &#91;Recommended 4-14%]\", step=0.1, group=strat_group)\nrr_ratio = input.float(2.6, title=\"Reward\/Risk Ratio &#91;Recommended 1.0-3.0]\", step=0.1, group=strat_group)\nsl_perc = tp_perc \/ rr_ratio \/\/ Auto-calculates SL based on RR\n\n\/\/ --- NEW TRAILING TAKE PROFIT SETTINGS ---\nuse_trail = input.bool(true, title=\"Enable Trailing Take Profit\", group=strat_group)\ntrail_offset_perc = input.float(0.2, title=\"Trail Offset %\", step=0.1, group=strat_group)\n\ntime_group = \"Time Filter &#91;DO NOT FORGET to SET A DAY AFTER]\"\nstart_time = input.time(timestamp(\"2025-10-01 00:00\"), title=\"Start Time\", group=time_group)\nend_time = input.time(timestamp(\"2027-12-31 23:59\"), title=\"End Time\", group=time_group)\nin_time_frame = time >= start_time and time &lt;= end_time\n\n\/\/ --- DAY FILTER SETTINGS ---\nday_group = \"Day Filter Settings\"\ntrade_mon = input.bool(true,  title=\"Monday\", group=day_group)\ntrade_tue = input.bool(false,  title=\"Tuesday\", group=day_group)\ntrade_wed = input.bool(true,  title=\"Wednesday\", group=day_group)\ntrade_thu = input.bool(false, title=\"Thursday\", group=day_group)\ntrade_fri = input.bool(true,  title=\"Friday\", group=day_group)\ntrade_sat = input.bool(false,  title=\"Saturday\", group=day_group)\ntrade_sun = input.bool(true,  title=\"Sunday\", group=day_group)\n\nis_trading_day = (dayofweek == dayofweek.monday and trade_mon) or\n                 (dayofweek == dayofweek.tuesday and trade_tue) or\n                 (dayofweek == dayofweek.wednesday and trade_wed) or\n                 (dayofweek == dayofweek.thursday and trade_thu) or\n                 (dayofweek == dayofweek.friday and trade_fri) or\n                 (dayofweek == dayofweek.saturday and trade_sat) or\n                 (dayofweek == dayofweek.sunday and trade_sun)\n\n\/\/ --- ORIGINAL INDICATOR SETTINGS ---\nsettings = \"Settings\"\nshow_zigzag = input.bool(true, \"Show Zigzag\", group=settings)\ntext_size = input.string(size.tiny, \"Text Size\", &#91;size.tiny, size.small, size.normal, size.large, size.huge], group=settings)\ndelete_boxes = input.bool(false, \"Delete Old\/Broken Boxes\", group=settings)\n\nbu_ob_inline_color = \"Bu-OB Colors\"\nbe_ob_inline_color = \"Be-OB Colors\"\nbu_bb_inline_color = \"Bu-BB Colors\"\nbe_bb_inline_color = \"Be-BB Colors\"\n\nbu_ob_display_settings = \"Bu-OB Display Settings\"\nbu_ob_color = input.color(color.new(color.green, 70), \"Color\", group=bu_ob_display_settings, inline=bu_ob_inline_color)\nbu_ob_border_color = input.color(color.green, \"Border Color\", group=bu_ob_display_settings, inline=bu_ob_inline_color)\nbu_ob_text_color = input.color(color.green, \"Text Color\", group=bu_ob_display_settings, inline=bu_ob_inline_color)\n\nbe_ob_display_settings = \"Be-OB Display Settings\"\nbe_ob_color = input.color(color.new(color.red, 70), \"Color\", group=be_ob_display_settings, inline=be_ob_inline_color)\nbe_ob_border_color = input.color(color.red, \"Border Color\", group=be_ob_display_settings, inline=be_ob_inline_color)\nbe_ob_text_color = input.color(color.red, \"Text Color\", group=be_ob_display_settings, inline=be_ob_inline_color)\n\nbu_bb_display_settings = \"Bu-BB &amp; Bu-MB Display Settings\"\nbu_bb_color = input.color(color.new(color.green, 70), \"Color\", group=bu_bb_display_settings, inline=bu_bb_inline_color)\nbu_bb_border_color = input.color(color.green, \"Border Color\", group=bu_bb_display_settings, inline=bu_bb_inline_color)\nbu_bb_text_color = input.color(color.green, \"Text Color\", group=bu_bb_display_settings, inline=bu_bb_inline_color)\n\nbe_bb_display_settings = \"Be-BB &amp; Be-MB Display Settings\"\nbe_bb_color = input.color(color.new(color.red, 70), \"Color\", group=be_bb_display_settings, inline=be_bb_inline_color)\nbe_bb_border_color = input.color(color.red, \"Border Color\", group=be_bb_display_settings, inline=be_bb_inline_color)\nbe_bb_text_color = input.color(color.red, \"Text Color\", group=be_bb_display_settings, inline=be_bb_inline_color)\n\nvar float&#91;] high_points_arr = array.new_float(5)\nvar int&#91;] high_index_arr = array.new_int(5)\nvar float&#91;] low_points_arr = array.new_float(5)\nvar int&#91;] low_index_arr = array.new_int(5)\n\nvar box&#91;] bu_ob_boxes = array.new_box(5)\nvar box&#91;] be_ob_boxes = array.new_box(5)\nvar box&#91;] bu_bb_boxes = array.new_box(5)\nvar box&#91;] be_bb_boxes = array.new_box(5)\nvar box&#91;] bu_mb_boxes = array.new_box(5) \nvar box&#91;] be_mb_boxes = array.new_box(5) \n\nto_up = high >= ta.highest(zigzag_len)\nto_down = low &lt;= ta.lowest(zigzag_len)\n\ntrend = 1\ntrend := nz(trend&#91;1], 1)\ntrend := trend == 1 and to_down ? -1 : trend == -1 and to_up ? 1 : trend\n\nlast_trend_up_since = ta.barssince(to_up&#91;1])\nlow_val = ta.lowest(nz(last_trend_up_since > 0 ? last_trend_up_since : 1, 1))\nlow_index = bar_index - ta.barssince(low_val == low)\n\nlast_trend_down_since = ta.barssince(to_down&#91;1])\nhigh_val = ta.highest(nz(last_trend_down_since > 0 ? last_trend_down_since : 1, 1))\nhigh_index = bar_index - ta.barssince(high_val == high)\n\nif ta.change(trend) != 0\n    if trend == 1\n        array.push(low_points_arr, low_val)\n        array.push(low_index_arr, low_index)\n    if trend == -1\n        array.push(high_points_arr, high_val)\n        array.push(high_index_arr, high_index)\n\nf_get_high(ind) =>\n    &#91;array.get(high_points_arr, array.size(high_points_arr) - 1 - ind), array.get(high_index_arr, array.size(high_index_arr) - 1 - ind)]\n\nf_get_low(ind) =>\n    &#91;array.get(low_points_arr, array.size(low_points_arr) - 1 - ind), array.get(low_index_arr, array.size(low_index_arr) - 1 - ind)]\n\nf_delete_box(box_arr) =>\n    if delete_boxes\n        box.delete(array.shift(box_arr))\n    else\n        array.shift(box_arr)\n    0\n\n&#91;h0, h0i] = f_get_high(0)\n&#91;h1, h1i] = f_get_high(1)\n\n&#91;l0, l0i] = f_get_low(0)\n&#91;l1, l1i] = f_get_low(1)\n\nif ta.change(trend) != 0 and show_zigzag\n    if trend == 1\n        line.new(h0i, h0, l0i, l0)\n    if trend == -1\n        line.new(l0i, l0, h0i, h0)\n\nmarket = 1\nmarket := nz(market&#91;1], 1)\nmarket := market == 1 and close &lt; l0 and low &lt; l0 - math.abs(h0 - l0) * fib_factor ? -1 : market == -1 and close > h0 and high > h0 + math.abs(h0 - l0) * fib_factor ? 1 : market\nlast_l0 = ta.valuewhen(ta.change(market) != 0, l0, 0)\nlast_h0 = ta.valuewhen(ta.change(market) != 0, h0, 0)\nmarket := last_l0 == l0 or last_h0 == h0 ? market : market == 1 and l0 &lt; l1 and l0 &lt; l1 - math.abs(h0 - l1) * fib_factor ? -1 : market == -1 and h0 > h1 and h0 > h1 + math.abs(h1 - l0) * fib_factor ? 1 : market\n\nbu_ob_index = bar_index\nbu_ob_index := nz(bu_ob_index&#91;1], bar_index)\nfor i=h1i to l0i&#91;zigzag_len]\n    index = bar_index - i \n    if open&#91;index] > close&#91;index]\n        bu_ob_index := bar_index&#91;index]\n\nbu_ob_since = bar_index - bu_ob_index\n\nbe_ob_index = bar_index\nbe_ob_index := nz(be_ob_index&#91;1], bar_index)\nfor i=l1i to h0i&#91;zigzag_len]\n    index = bar_index - i \n    if open&#91;index] &lt; close&#91;index]\n        be_ob_index := bar_index&#91;index]\n\nbe_ob_since = bar_index - be_ob_index\n\nbe_bb_index = bar_index\nbe_bb_index := nz(be_bb_index&#91;1], bar_index)\nfor i=h1i - zigzag_len to l1i\n    index = bar_index - i\n    if open&#91;index] > close&#91;index]\n        be_bb_index := bar_index&#91;index]\n\nbe_bb_since = bar_index - be_bb_index\n\nbu_bb_index = bar_index\nbu_bb_index := nz(bu_bb_index&#91;1], bar_index)\nfor i=l1i - zigzag_len to h1i\n    index = bar_index - i\n    if open&#91;index] &lt; close&#91;index]\n        bu_bb_index := bar_index&#91;index]\n\nbu_bb_since = bar_index - bu_bb_index\n\nif ta.change(market) != 0\n    if market == 1\n        line.new(h1i, h1, h0i, h1, color=color.green, width=2)\n        label.new(int(math.avg(h1i, l0i)), h1, \"MSB\", color=color.new(color.black, 100), style=label.style_label_down, textcolor=color.green, size=size.small)\n        bu_ob = box.new(bu_ob_index, high&#91;bu_ob_since], bar_index + 10, low&#91;bu_ob_since], bgcolor=bu_ob_color, border_color=bu_ob_border_color, text=\"Bu-OB\", text_color=bu_ob_text_color, text_halign=text.align_right, text_size=text_size)\n        array.push(bu_ob_boxes, bu_ob)\n        \n        is_bu_bb = l0 &lt; l1\n        bu_bb = box.new(bu_bb_index, high&#91;bu_bb_since], bar_index + 10, low&#91;bu_bb_since], bgcolor=bu_bb_color, border_color=bu_bb_border_color, text=is_bu_bb ? \"Bu-BB\" : \"Bu-MB\", text_color=bu_bb_text_color, text_halign=text.align_right, text_size=text_size)\n        \n        if is_bu_bb\n            array.push(bu_bb_boxes, bu_bb)\n        else\n            array.push(bu_mb_boxes, bu_bb)\n\n    if market == -1\n        line.new(l1i, l1, l0i, l1, color=color.red, width=2)\n        label.new(int(math.avg(l1i, h0i)), l1, \"MSB\", color=color.new(color.black, 100), style=label.style_label_up, textcolor=color.red, size=size.small)\n        be_ob = box.new(be_ob_index, high&#91;be_ob_since], bar_index + 10, low&#91;be_ob_since], bgcolor=be_ob_color, border_color=be_ob_border_color, text=\"Be-OB\", text_color=be_ob_text_color, text_halign=text.align_right, text_size=text_size)\n        array.push(be_ob_boxes, be_ob)\n        \n        is_be_bb = h0 > h1\n        be_bb = box.new(be_bb_index, high&#91;be_bb_since], bar_index + 10, low&#91;be_bb_since], bgcolor=be_bb_color, border_color=be_bb_border_color, text=is_be_bb ? \"Be-BB\" : \"Be-MB\", text_color=be_bb_text_color, text_halign=text.align_right, text_size=text_size)\n        \n        if is_be_bb\n            array.push(be_bb_boxes, be_bb)\n        else\n            array.push(be_mb_boxes, be_bb)\n\n\/\/ --- MODIFIED ALERTS, BOX EXTENSION LOOPS &amp; STRATEGY TRIGGER ---\nlong_signal = false\n\nfor bull_ob in bu_ob_boxes\n    if not na(bull_ob)\n        bottom = box.get_bottom(bull_ob)\n        top = box.get_top(bull_ob)\n        if close &lt; bottom\n            f_delete_box(bu_ob_boxes)\n        else if close &lt; top\n            continue \n        else\n            box.set_right(bull_ob, bar_index + 10)\n            if close&#91;1] &lt;= top and barstate.isconfirmed\n                alert(\"Price closed above BU-OB green box\")\n                long_signal := true\n    \nfor bull_bb in bu_bb_boxes\n    if not na(bull_bb)\n        bottom = box.get_bottom(bull_bb)\n        top = box.get_top(bull_bb)\n        if close &lt; bottom\n            f_delete_box(bu_bb_boxes)\n        else if close &lt; top\n            continue \n        else\n            box.set_right(bull_bb, bar_index + 10)\n            if close&#91;1] &lt;= top and barstate.isconfirmed\n                alert(\"Price closed above Bu-BB green box\")\n                long_signal := true\n\nfor bull_mb in bu_mb_boxes\n    if not na(bull_mb)\n        bottom = box.get_bottom(bull_mb)\n        top = box.get_top(bull_mb)\n        if close &lt; bottom\n            f_delete_box(bu_mb_boxes)\n        else if close &lt; top\n            continue\n        else\n            box.set_right(bull_mb, bar_index + 10)\n\nfor bear_ob in be_ob_boxes\n    if not na(bear_ob)\n        top = box.get_top(bear_ob)\n        bottom = box.get_bottom(bear_ob)\n        if close > top\n            f_delete_box(be_ob_boxes)\n        else if close > bottom\n            continue \n        else\n            box.set_right(bear_ob, bar_index + 10)\n            if close&#91;1] >= bottom and barstate.isconfirmed\n                alert(\"Price closed below BE-OB red box\")\n        \nfor bear_bb in be_bb_boxes\n    if not na(bear_bb)\n        top = box.get_top(bear_bb)\n        bottom = box.get_bottom(bear_bb)\n        if close > top\n            f_delete_box(be_bb_boxes)\n        else if close > bottom\n            continue\n        else\n            box.set_right(bear_bb, bar_index + 10)\n            if close&#91;1] >= bottom and barstate.isconfirmed\n                alert(\"Price closed below Be-BB red box\")\n\nfor bear_mb in be_mb_boxes\n    if not na(bear_mb)\n        top = box.get_top(bear_mb)\n        bottom = box.get_bottom(bear_mb)\n        if close > top\n            f_delete_box(be_mb_boxes)\n        else if close > bottom\n            continue\n        else\n            box.set_right(bear_mb, bar_index + 10)\n\nalertcondition(ta.change(market) != 0, \"MSB\", \"MSB\")\n\n\/\/ --- STRATEGY EXECUTION ---\nif long_signal and in_time_frame and is_trading_day\n    strategy.entry(\"Long\", strategy.long)\n\nif strategy.position_size > 0\n    limit_price = strategy.position_avg_price * (1 + (tp_perc \/ 100))\n    stop_price = strategy.position_avg_price * (1 - (sl_perc \/ 100))\n    \n    if use_trail\n        trail_offset_ticks = (limit_price * (trail_offset_perc \/ 100)) \/ syminfo.mintick\n        strategy.exit(\"Exit Long\", \"Long\", stop=stop_price, trail_price=limit_price, trail_offset=trail_offset_ticks)\n    else\n        strategy.exit(\"Exit Long\", \"Long\", limit=limit_price, stop=stop_price)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span style=\"text-decoration: underline;\">Setting suggestions<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pair: XMRUSDT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Exchanger: Kucoin<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TF: 15min<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zigzag length 18<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fib Factor: 0.87<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">RR Ratio 2.6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable Trailing TP: checked<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Trail Offset 0.2%<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Days to trade to open trade: Mon, Wed, Fri, Sun<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">**code266<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another feature is added from previous script which is the Day Filter. You can now choose which days to open trade. This is to improve your probability of winning trade.<\/p>\n<p><a href=\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\" class=\"btn btn-skin btn-radius\">Continue Reading<span class=\"screen-reader-text\">Pine script revision: MSB strategy with optional days<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-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>Pine script revision: MSB strategy with optional days - 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\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pine script revision: MSB strategy with optional days - kriptos.my\" \/>\n<meta property=\"og:description\" content=\"Another feature is added from previous script which is the Day Filter. You can now choose which days to open trade. This is to improve your probability of winning trade.Continue ReadingPine script revision: MSB strategy with optional days\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\" \/>\n<meta property=\"og:site_name\" content=\"kriptos.my\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-23T14:33:22+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/person\/e7d9ab723a328727c8755e36e3abe80e\"},\"headline\":\"Pine script revision: MSB strategy with optional days\",\"datePublished\":\"2026-10-23T14:33:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\"},\"wordCount\":73,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kriptos.my\/#organization\"},\"articleSection\":[\"Pine Script Strategy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\",\"url\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\",\"name\":\"Pine script revision: MSB strategy with optional days - kriptos.my\",\"isPartOf\":{\"@id\":\"https:\/\/kriptos.my\/#website\"},\"datePublished\":\"2026-10-23T14:33:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kriptos.my\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pine script revision: MSB strategy with optional days\"}]},{\"@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\/e7d9ab723a328727c8755e36e3abe80e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kriptos.my\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/72a50d9cc55ed45eb9ef06fffd6dfe994a9582cdb5833fbfaeb73562d06e4ae8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/72a50d9cc55ed45eb9ef06fffd6dfe994a9582cdb5833fbfaeb73562d06e4ae8?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"description\":\"Founder and Writer\",\"sameAs\":[\"https:\/\/kriptos.my\"],\"url\":\"https:\/\/kriptos.my\/index.php\/author\/kriptos\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pine script revision: MSB strategy with optional days - 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\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/","og_locale":"en_US","og_type":"article","og_title":"Pine script revision: MSB strategy with optional days - kriptos.my","og_description":"Another feature is added from previous script which is the Day Filter. You can now choose which days to open trade. This is to improve your probability of winning trade.Continue ReadingPine script revision: MSB strategy with optional days","og_url":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/","og_site_name":"kriptos.my","article_published_time":"2026-10-23T14:33:22+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#article","isPartOf":{"@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/"},"author":{"name":"admin","@id":"https:\/\/kriptos.my\/#\/schema\/person\/e7d9ab723a328727c8755e36e3abe80e"},"headline":"Pine script revision: MSB strategy with optional days","datePublished":"2026-10-23T14:33:22+00:00","mainEntityOfPage":{"@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/"},"wordCount":73,"commentCount":0,"publisher":{"@id":"https:\/\/kriptos.my\/#organization"},"articleSection":["Pine Script Strategy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/","url":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/","name":"Pine script revision: MSB strategy with optional days - kriptos.my","isPartOf":{"@id":"https:\/\/kriptos.my\/#website"},"datePublished":"2026-10-23T14:33:22+00:00","breadcrumb":{"@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kriptos.my\/index.php\/2026\/10\/23\/pine-script-revision-msb-strategy-with-optional-days\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kriptos.my\/"},{"@type":"ListItem","position":2,"name":"Pine script revision: MSB strategy with optional days"}]},{"@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\/e7d9ab723a328727c8755e36e3abe80e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kriptos.my\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/72a50d9cc55ed45eb9ef06fffd6dfe994a9582cdb5833fbfaeb73562d06e4ae8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72a50d9cc55ed45eb9ef06fffd6dfe994a9582cdb5833fbfaeb73562d06e4ae8?s=96&d=mm&r=g","caption":"admin"},"description":"Founder and Writer","sameAs":["https:\/\/kriptos.my"],"url":"https:\/\/kriptos.my\/index.php\/author\/kriptos\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts\/133","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":1,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriptos.my\/index.php\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}