Log in or register to download unlimited Forex robots!
StopLoss to BreakEven
This EA will not place any order. It will modify the order if profit is equal to or greater than minimum requirement and move SL to BreakEven.
There are two files. First file for pairs having digits 4 or 5 and second file is for digits 2 or 3 i.e JPY pairs.
Join the MT4talk Telegram channel: https://t.me/MT4talkchannel
Join the MT4talk Telegram group: https://t.me/+XcwLRi9oFOJhYjlk
Watch videos from the MT4talk YouTube channel.
https://www.youtube.com/@MT4talkForexForum/videos
Thank you for sharing such a good ea. Wait a minute, I'll download the test
well you guide me what is pair digit 4 or 5 and where i can put these digits please reply i wll wait...
thank for sharing this EA ... its very helpfull to chance stoploss setting
This Expert Advisor (EA) SL2BE.mq4 is a simple tool for managing Stop Loss (SL) orders. It automatically adjusts the Stop Loss to break even (BE) once a specified profit target has been reached.
Let's break down how this EA works:
Initialization: The EA starts with some basic settings and an external input parameter for the number of pips required to move the Stop Loss to the break-even point (BE). By default, this is set to 30 pips.
Start Function: This is the main part of the EA that runs when it's activated. It goes through all open orders and checks if they meet certain conditions to move the Stop Loss to break even.
Currency Pair Filter: The EA first checks if the current currency pair is one of the following: USDJPY, EURJPY, or GBPJPY. If it is, the EA exits and does nothing. This suggests that the EA is designed to work on other currency pairs, excluding these three.
Iterating Through Orders: The EA then iterates through all open orders for the selected currency pair.
Conditions for Moving Stop Loss to Break Even: For each order, it checks the following conditions:
If the order is a sell order (type == OP_SELL) and the Stop Loss (stopPrice) is higher than the opening price (openPrice).
If the current ask price (the price at which you can sell) is less than or equal to (openPrice - BE_Pips * 0.0001). This is used to determine if the profit has reached the specified number of pips to trigger the move to break even.
If the order is a buy order (type == OP_BUY) and the Stop Loss (stopPrice) is lower than the opening price (openPrice).
If the current bid price (the price at which you can buy) is greater than or equal to (openPrice + BE_Pips * 0.0001). This checks if the profit has reached the specified number of pips to move the Stop Loss to break even.
Modifying Orders: If any of the conditions are met, the EA modifies the order. It sets the Stop Loss and Take Profit to the current opening price (which effectively moves the Stop Loss to break even). The order's color is also changed for visual feedback: Red for sell orders and Blue for buy orders.
The primary strategy here is to move the Stop Loss to the break-even point once a certain profit target in pips (BE_Pips) has been reached. This helps to protect the trader's capital in case the market reverses after they are in profit. The EA applies this strategy to all open orders on currency pairs other than USDJPY, EURJPY, and GBPJPY. This means it can be used for risk management in various currency pairs.
This Expert Advisor (EA) SL2BE_Jpy(1).mq4 is designed to manage Stop Loss (SL) orders for Japanese Yen (JPY) currency pairs. It's a simple tool that moves the Stop Loss to a break-even level when a certain profit threshold is reached.
Here's a description of what this EA does:
Initialization:
The EA is initialized with some settings, including the number of pips (price movements) at which the Stop Loss should be moved to break even (BE). The default is 30 pips.
It allows you to specify the name of the JPY pair to which this EA should be applied. The default is "USDJPY."
Main Function:
The main function of this EA operates when the EA is activated.
It first checks if the current trading symbol (currency pair) matches the specified JPY pair. If it does, the EA proceeds to the next steps.
Loop Through Open Orders:
The EA then goes through all the open orders for the selected JPY pair.
For each order, it checks whether the order is a "sell" (short) or "buy" (long) position.
It retrieves the order's opening price and Stop Loss price.
Moving Stop Loss to Break-Even:
If it's a "sell" order (short position), and the Stop Loss is above the entry price (i.e., in profit), and the current ask price is equal to or below the entry price minus the specified BE pips, the EA moves the Stop Loss to the entry price.
If it's a "buy" order (long position), and the Stop Loss is below the entry price (i.e., in profit), and the current bid price is equal to or above the entry price plus the specified BE pips, the EA moves the Stop Loss to the entry price.
In summary, this EA is designed to manage Stop Loss orders for specific JPY pairs. It identifies open orders, checks their type (buy/sell), and adjusts the Stop Loss to the entry price (break-even) when a certain profit threshold, specified in pips, is reached. This strategy is commonly used by traders to protect their profits and minimize losses in their trades.
Why don't many people post their daily winning results?
MT4talk PRO members can Turn off MT4talk daily winning result post requirements for $49.99 / month. More info...
Latest profit posts from the Trade Executor EA users.
By using the MT4talk website, you automatically agree to the Forum Rules & Terms of Use, as well as the terms below.
Everything you see on the MT4talk website is created by its users, mainly the members of the MT4talk forum.
What is MT4talk?
MT4talk is an online Forex forum with over 5000 Forex robots and over 3000 Forex indicators uploaded by forum members in the last 10 years, available to download from forum posts. The Uploaded file does not come with support.
The website doesn't sell Forex robots and doesn't provide support for the ones you download. MT4talk offers a PRO membership, allowing you to download unlimited files from forum posts. Even though the site usually doesn't provide support for downloaded Forex robots, if you're new to Forex and need help, you can buy the MT4talk dedicated support membership from the MT4talk forum. The MT4talk Dedicated support subscription is only available for purchase for MT4talk PRO members.
The MT4talk Team also provides an Artificial Intelligence Forex robot called "MT4talk Forex AI Signal - Trade Executor EA" to PRO members. However, this Forex robot is only a bonus and is not included in the original PRO membership.
Updates for the Forex robots may be limited or nonexistent, depending on the creator. If you choose to download any Forex robot or setting file from the forum, you acknowledge that you are using it at your own risk. MT4talk PRO membership is a digital product. Therefore, after you complete the PRO membership purchase, there is no refund available!
We are conducting real-life tests on Forex robots to assess their performance. For certain robots, we may use a demo account to conduct tests, and for other Forex robots, we may use a real Forex account. It's essential to recognize that we are not financial advisors and cannot provide investment guidance. Our objective is to discover effective market analysis solutions through testing various strategies, which could be beneficial to our community.
CFTC RULE 4.41 – HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS, IN GENERAL, ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.
Disclaimer - No representation is being made that any Forex account will or is likely to achieve profits or losses similar to those shown on backtests in this forum. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. Hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. All information on this forum is for educational purposes only and is not intended to provide financial advice. Any statements posted by forum members or the MT4talk EA Tester Team about profits or income expressed or implied, do not represent a guarantee. Your actual trading may result in losses as no trading system is guaranteed. You accept full responsibilities for your actions, trades, profit or loss, and agree to hold the MT4talk team and forum members of this information harmless in any and all ways.
Affiliates Disclaimer - The website may have links to partner websites, and if you sign up and trade through these links, we will receive a commission. Our affiliate partners are FXOpen, FBS, LQDFX, and MyForexVPS.
Copyright MT4talk.com Forum Rules - Privacy Policy.