×

注意!页面内容来自https://mql.robotfx.org/2025/08/metatrader-5-expert-advisor-eabreakeven.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4)indicatorsscripts and libraries that can be used to improve trading resultsminimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | eaBreakeven

MetaTrader ExpertsIndicatorsScripts and Libraries

eaBreakeven is an EA that moves the Stop Loss to breakeven and simultaneously plays the soundwhen the Stop Loss is changed. EA manages the positions for the current chart currency pair onlyi.e. if you attach in on the GBPUSD chartit will manage only GBPUSD positions.

Input parameters

  • Breakeven in points - profit of the positionwhen this expert moves the Stop Loss to breakeven.
  • Breakeven distance in points - the distance value where the Stop Loss is set. For exampleif the opening price of a short position is 1.9873and this parameter is set to 5 pointsthen eaBreakeven will change the Stop Loss to 1.9868.
  • Magic Number - managed orders ID. If 0 then EA will manage all the positions for the current symbol.
  • Enable / disable playing sound - enable/disable audio playback when a break-even occurs.
  • Sound file name - the name of the sound file in the \Sounds folder.
19533

Best MetaTrader Indicators + Profitable Expert Advisors

<> button#comment-editor-src { background: linear-gradient(to right#ff6a00#ee0979); color: #fff; padding: 18px 30px; border: none; border-radius: 30px; font-size: 20px; font-weight: bold; cursor: pointer; display: block; box-shadow: 0 4px 10px rgba(0000.2); transition: transform 0.2s easebox-shadow 0.2s ease; margin: 10px auto; } button#comment-editor-src:hover { transform: scale(1.05); box-shadow: 0 6px 14px rgba(0000.3); } button#comment-editor-src:active { transform: scale(0.98); }

<>.download-button { display: block; padding: 15px 20px; background-color: #54a8d0; color: white; border-radius: 8px; font-weight: bold; text-align: center; cursor: pointer; margin: 20px auto; max-width: 98%; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 1px #000; } .download-button:active { transform: scale(0.98); } .btn-main-text { font-family: 'Oswald'sans-serif; font-weight: 700; letter-spacing: 1.5px; color: #000; display: block; margin-bottom: 5px; text-shadow: 1px 1px 1px #fff; } .indicator-type { text-transform: uppercase; } #custom-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: white; padding: 25px; border-radius: 12px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); } .modal-content p { margin-bottom: 20px; line-height: 1.5; color: #333; } .modal-actions { display: flex; gap: 10px; justify-content: center; } .modal-btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; } .btn-confirm { background: #54a8d0; color: white; } .btn-cancel { background: #e0e0e0; color: #555; } .download-message { text-align: center; margin-top: 10px; font-size: 0.9em; color: #444; } .download-message a { color: #54a8d0; font-weight: bold; text-decoration: none; }
<> .image-feedback-wrapper { position: relative; /* This is the key: establishes a positioning context */ display: inline-block; /* Or 'block' if you want it to take full width of its parent */ margin: 10px auto; /* Apply original image margins to the wrapper instead */ max-width: 100%; /* Ensure wrapper doesn't overflow */ width:100%; text-align: center; /* For centering the wrapper if it's block */ box-sizing: border-box; /* Include padding/border in total width */ border: 1px solid #666666; background-color: #f0f0f0; border-radius:2px; } .image-feedback-wrapper img { display: block; max-width: 100%; height: auto; margin: 0; position: relative; z-index: 1; font-size: 0; color: transparent; overflow: hidden; background-color: #f0f0f0; } .image-feedback-wrapper img::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #f0f0f0; z-index: 1; background-image: url("data:image/svg+xml,%3Csvg%20fill%3D%27none%27%20height%3D%2724%27%20stroke%3D%27%2355555580%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%272%27%20viewBox%3D%270%200%2024%2024%27%20width%3D%2724%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpolyline%20points%3D%2717%201%2021%205%2017%209%27%2F%3E%3Cpath%20d%3D%27M21%205H3v14%27%2F%3E%3Cpolyline%20points%3D%277%2023%203%2019%207%2015%27%2F%3E%3Cpath%20d%3D%27M3%2019h18v-4%27%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: center; background-size: 70%; opacity: 1; } .image-feedback-wrapper img::after { content: attr(alt); position: absolute; top: 50%; left: 50%; transform: translate(-50%-50%); z-index: 2; font-family: sans-serif; font-size: 0.8rem; color: #555; text-align: center; line-height: 1.2; word-wrap: break-word; white-space: pre-wrap; } .feedback-container {height:30px; position: absolute !important; /* Position it relative to its .image-feedback-wrapper parent */ bottom: 3px !important; /* 5px from the bottom of the wrapper */ left: 50% !important; /* Center horizontally */ transform: translateX(-50%) !important; /* Adjust for exact centering */ width: auto !important; /* Let content define width */ padding: 5px 10px !important; /* Padding for the container itself */ border-radius: 5px !important;/* Optional: rounded corners for the container */ background-color: rgba(0000.4) !important; display: flex !important; justify-content: center !important; align-items: center !important; z-index: 100001 !important; /* Ensure it's above the image and everything else */ border: none !important; /* Override the debugging hotpink border */ } .feedback-icon { font-size: 30px !important; cursor: pointer !important; margin: 0 10px !important; display: inline-block !important; color: white !important; /* Make thumbs white for contrast on dark background */ text-shadow: 0px 0px 5px rgba(0,0,0,0.7); /* Optional: slight shadow for readability */ background-color: transparent !important; padding: 0 !important; /* Reset padding if it was set for debugging click area */ border-radius: 0 !important; /* Reset border-radius if set for debugging */ z-index: 100002 !important; /* Even higher z-index for the icons themselves */ } .feedback-icon:hover { color: lightblue !important; /* Change hover color */ transform: scale(1.1) !important; transition: transform 0.2s !important; } .separator.separator a.post-body .image-content.post-body .tr-caption-container { pointer-events: none !important; } .feedback-container.feedback-container *.feedback-icon { pointer-events: auto !important; }