{"id":110,"date":"2026-02-01T00:00:00","date_gmt":"2026-01-31T16:00:00","guid":{"rendered":""},"modified":"2026-02-01T00:00:00","modified_gmt":"2026-01-31T16:00:00","slug":"st-riskcalc-guide","status":"publish","type":"page","link":"https:\/\/workinvestspend.com\/WIS\/st-riskcalc-guide\/","title":{"rendered":"ST Risk Calculator Guide"},"content":{"rendered":"<p><!-- ST Risk Calculator - WordPress Page Content --><br \/>\n<!-- Paste this into: Pages > Add New > Code Editor (or Custom HTML block) --><\/p>\n<p><!-- Hero Section --><\/p>\n<div class=\"wp-block-cover\" style=\"min-height:400px;background:linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);\">\n<div class=\"wp-block-cover__inner-container\" style=\"text-align:center;padding:3rem 1rem;\">\n<h1 style=\"color:#fff;\">ST Risk Calculator<\/h1>\n<p style=\"color:rgba(255,255,255,0.85);font-size:1.2rem;max-width:700px;margin:0 auto 1.5rem;\">A free MetaTrader 4 Expert Advisor with on-chart risk calculator, ATR-based stop loss &amp; take profit, and one-click trade execution.<\/p>\n<p><span class=\"badge\">Free Download<\/span> <span class=\"badge\" style=\"background:var(--wis-gradient-green);\">MT4 EA<\/span> <span class=\"badge\" style=\"background:var(--wis-gradient-3);\">v2.02<\/span><\/p>\n<\/div>\n<\/div>\n<p><!-- What It Does --><\/p>\n<div style=\"max-width:900px;margin:3rem auto;padding:0 1.5rem;\">\n<div class=\"section-header\">\n<h2>What Does It Do?<\/h2>\n<p>A draggable on-chart panel that calculates your position size, stop loss, and take profit based on ATR &mdash; then lets you execute the trade with one click.<\/p>\n<\/div>\n<p><!-- Feature Cards --><\/p>\n<div class=\"wp-block-columns\" style=\"gap:1.5rem;\">\n<div class=\"wp-block-column has-background\" style=\"background-color:#f8f9fa;text-align:center;\">\n<div class=\"icon-circle\">&#x1F4CA;<\/div>\n<h3>ATR-Based Levels<\/h3>\n<p>Stop loss and take profit are calculated from the 14-period ATR plus spread. No guesswork &mdash; everything is based on actual volatility.<\/p>\n<\/div>\n<div class=\"wp-block-column has-background\" style=\"background-color:#f8f9fa;text-align:center;\">\n<div class=\"icon-circle\" style=\"background:var(--wis-gradient-gold);\">&#x1F4B0;<\/div>\n<h3>2% Risk Sizing<\/h3>\n<p>Automatically calculates the correct lot size so you never risk more than 2% of your account balance on any single trade.<\/p>\n<\/div>\n<div class=\"wp-block-column has-background\" style=\"background-color:#f8f9fa;text-align:center;\">\n<div class=\"icon-circle\" style=\"background:var(--wis-gradient-green);\">&#x26A1;<\/div>\n<h3>One-Click Execution<\/h3>\n<p>Click EXECUTE BUY or EXECUTE SELL and the EA opens the trade with the calculated lot size, stop loss, and take profit &mdash; all set automatically.<\/p>\n<\/div>\n<\/div>\n<hr class=\"wp-block-separator\">\n<p><!-- Panel Overview --><\/p>\n<h2>Panel Overview<\/h2>\n<p>When you attach the EA to any chart, a dark panel appears showing real-time calculations. Here is what each field means:<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>ATR(14)<\/strong><\/td>\n<td>The 14-period Average True Range in pips. This measures the pair&#8217;s recent volatility.<\/td>\n<\/tr>\n<tr>\n<td><strong>Spread<\/strong><\/td>\n<td>Current broker spread in pips, included in all SL\/TP calculations.<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>BUY or SELL &mdash; click the buttons at the top to switch.<\/td>\n<\/tr>\n<tr>\n<td><strong>Entry<\/strong><\/td>\n<td>The entry price (Ask for BUY, Bid for SELL).<\/td>\n<\/tr>\n<tr>\n<td><strong>Stop Loss<\/strong><\/td>\n<td>Calculated as: <code>0.5 &times; ATR + spread<\/code> from entry.<\/td>\n<\/tr>\n<tr>\n<td><strong>Take Profit<\/strong><\/td>\n<td>Calculated as: <code>3 &times; ATR + spread<\/code> from entry.<\/td>\n<\/tr>\n<tr>\n<td><strong>SL Pips<\/strong><\/td>\n<td>Stop loss distance in pips.<\/td>\n<\/tr>\n<tr>\n<td><strong>TP Pips<\/strong><\/td>\n<td>Take profit distance in pips.<\/td>\n<\/tr>\n<tr>\n<td><strong>Lot Size<\/strong><\/td>\n<td>Position size calculated from your risk % and SL distance. Rounded down to your broker&#8217;s lot step.<\/td>\n<\/tr>\n<tr>\n<td><strong>Risk<\/strong><\/td>\n<td>Actual dollar risk and percentage after lot rounding. May be less than 2% if lot hits the 0.01 minimum.<\/td>\n<\/tr>\n<tr>\n<td><strong>R:R Ratio<\/strong><\/td>\n<td>Reward-to-risk ratio. Default settings give approximately 1:5.7.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr class=\"wp-block-separator\">\n<p><!-- How to Install --><\/p>\n<h2>How to Install<\/h2>\n<div style=\"background:linear-gradient(135deg,#f8f9fa 0%,#fff 100%);border-radius:16px;padding:2rem;margin:1.5rem 0;box-shadow:0 4px 20px rgba(0,0,0,0.08);\">\n<p><strong>Step 1 &mdash;<\/strong> Download the file <code>ST_RiskCalc.mq4<\/code><\/p>\n<p><strong>Step 2 &mdash;<\/strong> Open MetaTrader 4 and go to <strong>File &rarr; Open Data Folder<\/strong><\/p>\n<p><strong>Step 3 &mdash;<\/strong> Navigate to <code>MQL4\/Experts\/<\/code> and paste the file there<\/p>\n<p><strong>Step 4 &mdash;<\/strong> Back in MT4, open the <strong>Navigator<\/strong> panel (Ctrl+N)<\/p>\n<p><strong>Step 5 &mdash;<\/strong> Right-click on <strong>Expert Advisors<\/strong> and click <strong>Refresh<\/strong><\/p>\n<p><strong>Step 6 &mdash;<\/strong> Drag <strong>ST_RiskCalc<\/strong> onto any chart<\/p>\n<\/div>\n<div class=\"callout-warning\" style=\"padding:1.5rem 2rem;border-radius:12px;margin:1.5rem 0;\">\n<strong>Important:<\/strong> In the EA properties dialog, make sure to tick <strong>&#8220;Allow live trading&#8221;<\/strong> under the Common tab. Also ensure the <strong>AutoTrading<\/strong> button in the MT4 toolbar is enabled (green icon).\n<\/div>\n<hr class=\"wp-block-separator\">\n<p><!-- How to Use --><\/p>\n<h2>How to Use<\/h2>\n<h3>1. Choose Direction<\/h3>\n<p>Click the <strong style=\"color:#0a0;background:#e8f5e9;padding:2px 10px;border-radius:6px;\">BUY<\/strong> or <strong style=\"color:#d00;background:#ffebee;padding:2px 10px;border-radius:6px;\">SELL<\/strong> button at the top of the panel. All values update instantly and horizontal lines (Entry, SL, TP) are drawn on the chart.<\/p>\n<h3>2. Review the Calculation<\/h3>\n<p>Check the lot size, SL\/TP prices, and actual risk amount. The panel updates on every tick so values always reflect the latest price.<\/p>\n<div class=\"callout-info\" style=\"padding:1.5rem 2rem;border-radius:12px;margin:1.5rem 0;\">\n<strong>Note:<\/strong> If your account balance is small and the SL is wide, the lot may floor to the broker minimum (usually 0.01). The <strong>Risk<\/strong> line shows the <em>actual<\/em> risk after lot rounding &mdash; which may be less than 2%.\n<\/div>\n<h3>3. Execute the Trade<\/h3>\n<p>When you are ready, click the <strong style=\"background:#007700;color:#fff;padding:2px 14px;border-radius:6px;\">EXECUTE BUY<\/strong> or <strong style=\"background:#aa0000;color:#fff;padding:2px 14px;border-radius:6px;\">EXECUTE SELL<\/strong> button. The EA will:<\/p>\n<ol>\n<li>Open the position at market price<\/li>\n<li>Set the stop loss and take profit automatically<\/li>\n<li>Show a confirmation in the status line (ticket number and fill price)<\/li>\n<li>Play a sound on success<\/li>\n<\/ol>\n<h3>4. Move the Panel<\/h3>\n<p>Click and drag the <strong>title bar<\/strong> (the dark bar at the top that says &#8220;ST Risk Calculator&#8221;) to reposition the panel anywhere on the chart.<\/p>\n<h3>5. Clear Lines<\/h3>\n<p>Click <strong>Clear Lines<\/strong> to remove the Entry\/SL\/TP horizontal lines from the chart.<\/p>\n<hr class=\"wp-block-separator\">\n<p><!-- Default Settings --><\/p>\n<h2>Default Settings<\/h2>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>Default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ATR Period<\/td>\n<td>14<\/td>\n<td>Number of bars for ATR calculation<\/td>\n<\/tr>\n<tr>\n<td>Risk Percent<\/td>\n<td>2.0%<\/td>\n<td>Percentage of account balance to risk per trade<\/td>\n<\/tr>\n<tr>\n<td>SL ATR Multiplier<\/td>\n<td>0.5<\/td>\n<td>Stop loss = this &times; ATR + spread<\/td>\n<\/tr>\n<tr>\n<td>TP ATR Multiplier<\/td>\n<td>3.0<\/td>\n<td>Take profit = this &times; ATR + spread<\/td>\n<\/tr>\n<tr>\n<td>ATR Timeframe<\/td>\n<td>Current chart<\/td>\n<td>Timeframe for ATR calculation (can use H4 on M5 chart, etc.)<\/td>\n<\/tr>\n<tr>\n<td>Slippage<\/td>\n<td>2.0 pips<\/td>\n<td>Maximum allowed slippage for order execution<\/td>\n<\/tr>\n<tr>\n<td>Magic Number<\/td>\n<td>20260211<\/td>\n<td>Unique identifier for this EA&#8217;s trades<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>All settings can be changed via <strong>F7<\/strong> (EA Properties &rarr; Inputs tab) while the EA is running.<\/p>\n<hr class=\"wp-block-separator\">\n<p><!-- The Math --><\/p>\n<h2>How the Math Works<\/h2>\n<div class=\"philosophy-box\" style=\"background:linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%) !important;border:2px solid #5c6bc0 !important;\">\n<h3 style=\"margin-top:0;\">SL &amp; TP Formulas<\/h3>\n<p><strong>Stop Loss Distance<\/strong> = 0.5 &times; ATR(14) + Spread<\/p>\n<p><strong>Take Profit Distance<\/strong> = 3 &times; ATR(14) + Spread<\/p>\n<p>For a <strong>BUY<\/strong>: SL = Ask &minus; SL Distance, TP = Ask + TP Distance<br \/>\nFor a <strong>SELL<\/strong>: SL = Bid + SL Distance, TP = Bid &minus; TP Distance<\/p>\n<h3>Lot Size Formula<\/h3>\n<p><strong>Risk Amount<\/strong> = Account Balance &times; 2%<\/p>\n<p><strong>Lot Size<\/strong> = Risk Amount &divide; (SL in points &times; Tick Value)<\/p>\n<p>The result is rounded down to your broker&#8217;s lot step and clamped between the minimum and maximum lot size.<\/p>\n<\/div>\n<hr class=\"wp-block-separator\">\n<p><!-- Why ATR --><\/p>\n<h2>Why Use ATR for Stop Loss &amp; Take Profit?<\/h2>\n<div class=\"wp-block-columns\" style=\"gap:1.5rem;\">\n<div class=\"wp-block-column has-background\" style=\"background-color:#f8f9fa;\">\n<h3>Fixed Pips = Bad<\/h3>\n<p>A 20-pip stop loss might be perfect for EURUSD but suicidal for GBPJPY. Fixed pip values ignore how much the pair actually moves.<\/p>\n<\/div>\n<div class=\"wp-block-column has-background\" style=\"background-color:#e8f5e9;\">\n<h3>ATR = Adaptive<\/h3>\n<p>ATR measures real volatility. When markets are calm, your SL is tighter. When markets are wild, your SL widens to avoid noise. Same logic, every pair, every session.<\/p>\n<\/div>\n<\/div>\n<hr class=\"wp-block-separator\">\n<p><!-- FAQ --><\/p>\n<h2>Frequently Asked Questions<\/h2>\n<details class=\"wp-block-details\">\n<summary>Why is my lot size stuck at 0.01?<\/summary>\n<p>Your account balance is too small relative to the SL distance. The calculated lot comes out below the broker&#8217;s minimum (0.01), so it gets floored up. The <strong>Risk<\/strong> line shows your actual risk after this rounding &mdash; it will be below 2%. This is not a bug, it is your broker&#8217;s minimum lot size limit.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>I get &#8220;AutoTrading is disabled&#8221; when I click Execute<\/summary>\n<p>Click the <strong>AutoTrading<\/strong> button in the MT4 toolbar (top of the screen). The icon should be green, not red. Also check that &#8220;Allow live trading&#8221; is ticked in the EA properties (press F7 &rarr; Common tab).<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>I get &#8220;Trade context busy &#8211; try again&#8221;<\/summary>\n<p>Another EA on the same MT4 is currently executing a trade. MT4 only allows one trade operation at a time. Wait a moment and click Execute again.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>Can I use this on multiple charts at the same time?<\/summary>\n<p>Yes. Each chart gets its own panel and calculations. The Magic Number input (default: 20260211) identifies this EA&#8217;s trades. If you want to track trades separately per chart, give each instance a different Magic Number in the Inputs tab.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>Can I change the SL\/TP multipliers?<\/summary>\n<p>Yes. Press <strong>F7<\/strong> while the EA is on the chart, go to the <strong>Inputs<\/strong> tab. Change <code>SL_ATR_Mult<\/code> (default 0.5) and <code>TP_ATR_Mult<\/code> (default 3.0) to whatever you like. For example, SL_ATR_Mult = 1.0 gives a wider stop, TP_ATR_Mult = 2.0 gives a closer target.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>Does this EA trade automatically?<\/summary>\n<p><strong>No.<\/strong> This is a manual trade tool. It only opens trades when <em>you<\/em> click the Execute button. It does not scan for signals or trade on its own.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>Why does the panel cover the candles?<\/summary>\n<p>The EA sets chart bars to draw behind panel objects so the panel text is readable. When you remove the EA from the chart, the original chart setting is restored. You can also drag the panel to a less obstructive position by clicking and dragging the title bar.<\/p>\n<\/details>\n<details class=\"wp-block-details\">\n<summary>What pairs and instruments does this work on?<\/summary>\n<p>Any instrument available in your MT4: forex pairs, gold (XAUUSD), silver (XAGUSD), indices, etc. The ATR and lot calculations adapt automatically to any symbol&#8217;s tick value, point size, and lot specifications.<\/p>\n<\/details>\n<hr class=\"wp-block-separator\">\n<p><!-- Risk Warning --><\/p>\n<div class=\"callout-danger\" style=\"padding:2rem;border-radius:12px;margin:2rem 0;\">\n<h3 style=\"margin-top:0;color:#c62828;\">Risk Warning<\/h3>\n<p>Trading forex and CFDs involves substantial risk of loss. This tool helps with position sizing and trade execution but does not guarantee profits. Always trade with money you can afford to lose. Past performance is not indicative of future results. You are solely responsible for your trading decisions.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Free MetaTrader 4 EA with on-chart risk calculator, ATR-based stop loss and take profit, and one-click trade execution.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-110","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/pages\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":0,"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/pages\/110\/revisions"}],"wp:attachment":[{"href":"https:\/\/workinvestspend.com\/WIS\/wp-json\/wp\/v2\/media?parent=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}