{"id":1576,"date":"2025-02-22T10:29:41","date_gmt":"2025-02-22T10:29:41","guid":{"rendered":"https:\/\/algomojo.com\/blog\/?p=1576"},"modified":"2025-02-22T10:31:04","modified_gmt":"2025-02-22T10:31:04","slug":"understanding-days-mtm-in-target-stop-loss-and-trailing-stop-loss-in-algomojo","status":"publish","type":"post","link":"https:\/\/algomojo.com\/blog\/understanding-days-mtm-in-target-stop-loss-and-trailing-stop-loss-in-algomojo\/","title":{"rendered":"Understanding Day\u2019s MTM in Target, Stop Loss, and Trailing Stop Loss in Algomojo"},"content":{"rendered":"\n<h2><strong>Introduction<\/strong><\/h2>\n\n\n\n<p>Managing risk and optimizing profits are critical in algorithmic trading. With the new <strong>Day\u2019s MTM (Mark-to-Market) feature<\/strong>, Algomojo enhances trade exit strategies by allowing traders to set exit conditions based on <strong>daily MTM profits and losses<\/strong>. This provides a <strong>dynamic<\/strong> and <strong>real-time<\/strong> approach to managing trades.<\/p>\n\n\n\n<p>This guide explains how <strong>Day\u2019s MTM<\/strong> works for <strong>Target, Stop Loss (SL), and Trailing Stop Loss (TSL)<\/strong> and how to configure it effectively within Algomojo.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>1. Day\u2019s MTM Target Type and Target Value<\/strong><\/h2>\n\n\n\n<p><strong>MTM Target<\/strong> is a profit threshold based on accumulated daily MTM values, triggering an exit when reached.<\/p>\n\n\n\n<h3><strong>MTM Target Type Options:<\/strong><\/h3>\n\n\n\n<p>\u2705 <strong>Day\u2019s MTM Value<\/strong> \u2013 Sets the profit exit condition based on daily accumulated MTM profits.<\/p>\n\n\n\n<h3><strong>Example: Using Day\u2019s MTM for Target<\/strong><\/h3>\n\n\n\n<ul><li><strong>MTM Target Value:<\/strong> \u20b92000<\/li><li><strong>Entry Price:<\/strong> \u20b9100<\/li><li><strong>Quantity:<\/strong> 100<\/li><li><strong>Current LTP:<\/strong> \u20b9120<\/li><\/ul>\n\n\n\n<p>\ud83d\udd39 <strong>Calculation:<\/strong><\/p>\n\n\n\n<ul><li><strong>MTM Profit = (LTP &#8211; Entry Price) \u00d7 Quantity<\/strong><\/li><li><strong>\u20b9(120 &#8211; 100) \u00d7 100 = \u20b92000<\/strong><\/li><li><strong>Trade exits when Day\u2019s MTM reaches \u20b92000.<\/strong><\/li><\/ul>\n\n\n\n<p>This ensures profit booking at a pre-defined MTM value without depending on static price targets.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>2. Day\u2019s MTM Stop Loss (SL) Type and SL Value<\/strong><\/h2>\n\n\n\n<p><strong>MTM Stop Loss<\/strong> helps prevent excessive losses by exiting trades when daily MTM losses hit a defined threshold.<\/p>\n\n\n\n<h3><strong>MTM Stop Loss Type Options:<\/strong><\/h3>\n\n\n\n<p>\u2705 <strong>Day\u2019s MTM Value<\/strong> \u2013 Sets an exit when cumulative MTM losses reach a specified amount.<\/p>\n\n\n\n<h3><strong>Example: Using Day\u2019s MTM for Stop Loss<\/strong><\/h3>\n\n\n\n<ul><li><strong>MTM Stop Loss Value:<\/strong> \u20b9-1500<\/li><li><strong>Entry Price:<\/strong> \u20b9100<\/li><li><strong>Quantity:<\/strong> 100<\/li><li><strong>Current LTP:<\/strong> \u20b985<\/li><\/ul>\n\n\n\n<p>\ud83d\udd39 <strong>Calculation:<\/strong><\/p>\n\n\n\n<ul><li><strong>MTM Loss = (LTP &#8211; Entry Price) \u00d7 Quantity<\/strong><\/li><li><strong>\u20b9(85 &#8211; 100) \u00d7 100 = \u20b9-1500<\/strong><\/li><li><strong>Trade exits when Day\u2019s MTM reaches \u20b9-1500.<\/strong><\/li><\/ul>\n\n\n\n<p>This approach dynamically adjusts to market movements and ensures risk is capped at an overall loss level rather than per-trade basis.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>3. Day\u2019s MTM Trailing Stop Loss (TSL) \u2013 Dynamic SL Adjustment<\/strong><\/h2>\n\n\n\n<p>Day\u2019s MTM <strong>Trailing Stop Loss (TSL)<\/strong> locks in profits dynamically as the cumulative MTM value increases.<\/p>\n\n\n\n<h3><strong>MTM TSL Parameters in Algomojo:<\/strong><\/h3>\n\n\n\n<p>\u2705 <strong>MTM Step (X):<\/strong> Defines the incremental profit required for TSL adjustment. \u2705 <strong>TSL Adjustment (Y):<\/strong> Defines the amount by which the stop loss moves when profit increases by X.<\/p>\n\n\n\n<h3><strong>Example: Using Day\u2019s MTM for Trailing Stop Loss<\/strong><\/h3>\n\n\n\n<ul><li><strong>Entry Price:<\/strong> \u20b9100<\/li><li><strong>MTM Initial SL:<\/strong> \u20b9-1000<\/li><li><strong>MTM Step (X):<\/strong> \u20b9500<\/li><li><strong>TSL Adjustment (Y):<\/strong> \u20b9250<\/li><\/ul>\n\n\n\n<p>\ud83d\udd39 <strong>Scenario:<\/strong><\/p>\n\n\n\n<ul><li><strong>At \u20b9100 (Entry Price)<\/strong> \u2192 <strong>Initial MTM SL = \u20b9-1000<\/strong><\/li><li><strong>When Day\u2019s MTM profit reaches \u20b9500<\/strong> \u2192 SL moves to \u20b9-750<\/li><li><strong>When Day\u2019s MTM profit reaches \u20b91000<\/strong> \u2192 SL moves to \u20b9-500<\/li><li><strong>When Day\u2019s MTM profit reaches \u20b91500<\/strong> \u2192 SL moves to \u20b9-250<\/li><li><strong>When Day\u2019s MTM profit reaches \u20b92000<\/strong> \u2192 SL moves to breakeven<\/li><\/ul>\n\n\n\n<p>This mechanism ensures <strong>profits are secured<\/strong> while allowing <strong>trends to continue favorably<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>4. How Algomojo Executes Day\u2019s MTM Target, SL, and TSL<\/strong><\/h2>\n\n\n\n<p>Algomojo continuously evaluates <strong>all three exit conditions<\/strong> during the day: \u2705 <strong>If the Day\u2019s MTM reaches the Target<\/strong>, the position is squared off. \u2705 <strong>If the Day\u2019s MTM hits the Stop Loss<\/strong>, the position is exited to prevent excessive loss. \u2705 <strong>If MTM TSL is active<\/strong>, the stop loss dynamically adjusts and exits when hit.<\/p>\n\n\n\n<p>\ud83d\ude80 <strong>This provides a smarter, automated, and dynamic approach to trading!<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>5. Best Practices for Using Day\u2019s MTM Target, SL, and TSL<\/strong><\/h2>\n\n\n\n<p>\u2705 <strong>Avoid Setting MTM SL Too Tight:<\/strong> Normal market fluctuations can trigger premature exits. \u2705 <strong>Use MTM TSL for Trend-Following Trades:<\/strong> Helps protect gains while riding the trend. \u2705 <strong>Maintain a Proper Risk-Reward Ratio:<\/strong> Example: <strong>Risk \u20b91000 to Gain \u20b92000<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Algomojo\u2019s <strong>Day\u2019s MTM in Target, SL, and TSL<\/strong> provides traders with an advanced exit strategy for automated trading. By implementing this feature, traders can efficiently manage <strong>profits, risks, and stop losses dynamically<\/strong> throughout the day.<\/p>\n\n\n\n<p>\ud83d\udca1 <strong>Test different MTM settings in Algomojo and optimize your strategy today!<\/strong><\/p>\n\n\n\n<p>\ud83d\udce2 <strong>Have questions? Drop them in the comments below! \ud83d\ude80<\/strong><\/p>\n\n\n\n<p>\ud83d\udd17 <strong>Stay updated with new features:<\/strong> <a href=\"https:\/\/docs.algomojo.com\/releases\" data-type=\"URL\" data-id=\"https:\/\/docs.algomojo.com\/releases\">https:\/\/docs.algomojo.com\/releases<\/a><\/p>\n\n\n\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/algomojo.com\/login-to-broker\/\">Login To Broker<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/algomojo.com\/open-an-account\/\">Open An Account<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Managing risk and optimizing profits are critical in algorithmic trading. With the new Day\u2019s MTM (Mark-to-Market) feature, Algomojo enhances trade exit strategies by allowing traders to set exit conditions based on daily MTM profits and losses. This provides a dynamic and real-time approach to managing trades. This guide explains how Day\u2019s MTM works for &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/algomojo.com\/blog\/understanding-days-mtm-in-target-stop-loss-and-trailing-stop-loss-in-algomojo\/\"> <span class=\"screen-reader-text\">Understanding Day\u2019s MTM in Target, Stop Loss, and Trailing Stop Loss in Algomojo<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"elementor_theme","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","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":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[309],"tags":[149,320,317,321],"_links":{"self":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/1576"}],"collection":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/comments?post=1576"}],"version-history":[{"count":4,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/1576\/revisions"}],"predecessor-version":[{"id":1581,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/1576\/revisions\/1581"}],"wp:attachment":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/media?parent=1576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/categories?post=1576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/tags?post=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}