Log in or register to download unlimited Forex robots!
Straddle&Trail EA
Expert Advisor Straddle&Trail.
extern bool ShutDown.NOW=False; // If true ALL POSITIONS (open and/or pending) will be closed/deleted
// based on "ShutDown.What" flag below
// This parameter is the first on the list so the user can access it
// as quickly as possible.
extern string sStr00=" 0=Everything ";
extern string sStr01=" 1=All Triggered Positions ";
extern string sStr02=" 2=Triggered Long ";
extern string sStr03=" 3=Triggered Short ";
extern string sStr04=" 4=All Pending Positions ";
extern string sStr05=" 5=Pending Long ";
extern string sStr06=" 6=Pending Short ";
extern int ShutDown.What=0;
extern bool ShutDown.Current.Pair.Only=True; // If true, ALL trades for CURRENT pair will be shutdown
//(no matter what time frame).
// If False, ALL trades on ALL pairs will be shutdown.
extern string sStr1="=== POSITION DETAILS ===";
extern double Lots=1;
extern int Slippage=10;
extern int Distance.From.Price=30; // Initial distance from price for the 2 pending orders.
extern int StopLoss.Pips=30; // Initial stop loss.
extern int TakeProfit.Pips=60; // Initial take profit.
extern int Trail.Pips=15; // Trail.
extern bool Trail.Starts.After.BreakEven=true; // if true trailing will start after a profit of "Move.To.
//BreakEven.at.pips" is made
extern int Move.To.BreakEven.Lock.pips=1; // Pips amount to lock once trade is in profit
// by the number of pips specified with "Move.To.BreakEven.at.pips"
// Unused if Trail.Starts.After.BreakEven=False
extern int Move.To.BreakEven.at.pips=5; // trades in profit will move to entry price + Move.To.BreakEven.
//Lock.pips as soon as trade
// is at entry price + Move.To.BreakEven.at.pips
// i.e. Entry price on a long order is @ 1.2100
// when price reaches 1.2110 (Entry price + "Move.To.BreakEven.at.pips")
// the ea will lock 1 pip moving sl
// at 1.2101 (Entry price+ "Move.To.BreakEven.Lock.pips=1")
extern string sStr2="=== NEWS EVENT ===";
extern int Event.Start.Hour=12; // Event start time = Hour. Broker's time.
extern int Event.Start.Minutes=30; // Event start time = Minutes. Broker's time.
// IF YOU WANT TO DISABLE THE "NEWS" FEATURE (the straddle)
// SET BOTH PARAMETERS TO 0.
extern int Pre.Event.Entry.Minutes=30; // Number of minutes before event where the ea will place the straddle.
// If set to 0, the ea will place the straddle immediately when activated,
// otherwise xx minutes specified here before above Event start time.
extern int Stop.Adjusting.Min.Before.Event=2; // Minutes before the event where the EA will stop adjusting
// the pending orders. The smallest value is 1 min.
extern bool Remove.Opposite.Order=True; // if true, once the 1st of the 2 pending orders is triggered,
// the opposite pending one is removed otherwise left as is.
extern bool Adjust.Pending.Orders=True; // if true, once the pending orders are placed at
// "Pre.Event.Start.Minutes" minutes before the event's time,
// the ea will try to adjust the orders ONCE EVERY MINUTE until
// "Stop.Adjusting.Min.Before.Event" minutes before the release where
// it will stay put.
extern bool Place.Straddle.Immediately=False; // if true, the straddle will be placed immediately once the
// expert is activated. This overrides previous 'News Events'
// settings for placing the long and short pending orders and
// in that case, the positions WILL NOT BE ADJUSTED.
// This is to be used as a "quiet" range breakout, for example if we
// want to play a "regular" breakout during Asian Session for example
// or at any other time of the day where the market is rangebound
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
I can not understand what you post here ? please explain me more
Hello Jay007hot3, I understand that the initial post might be a bit technical. Ranifa shared an Expert Advisor called Straddle&Trail, which is a tool used for managing forex trades. It has various functions that allow traders to automate their trading strategies.
If you have any specific questions or need further clarification on any part of the Expert Advisor or its functions, please don't hesitate to ask. I'm here to help explain and guide you through it.
can this ea is used to close all trades or something else
Yes Azaib77, the Straddle&Trail EA can be used to close trades, but it does much more than that. It's a versatile tool for managing your forex trades. You can use it to:
Close all trades, including open and pending ones, based on your criteria.
Set parameters for your trades, like lot size, stop loss, take profit, and trailing stop.
Time your trades around news events.
Adjust pending orders automatically.
Choose whether to remove the opposite pending order when one is triggered.
So, it's not just for closing trades; it's a comprehensive Expert Advisor that can help you optimize your forex trading strategy. If you have any specific questions or need further information about how to use this EA effectively, please feel free to ask.
Thank you Ranifa for sharing the details of the Straddle&Trail EA. It appears to be a comprehensive and versatile Expert Advisor with several functions that can be very useful for forex traders. Let's break down what these functions do and why they are valuable:
ShutDown Feature: This function allows you to close or delete positions (open and/or pending) based on different criteria. You can choose to close everything, all triggered positions, triggered long or short positions, and more. It's a quick way to manage your trades, especially in volatile market conditions.
Position Details: Here, you can set parameters like lot size, slippage, initial distance from the price for pending orders, stop loss, take profit, and trailing stop. These are essential settings for managing your risk and profit potential.
Trail Feature: The trailing feature is very beneficial for locking in profits. You can configure when trailing starts (after breaking even) and how much it locks in (in pips). This helps protect your gains and reduce risk.
News Event: This part of the EA allows you to time your trades around news events. You can set the start time, minutes before the event to enter the market, and minutes to stop adjusting orders before the event. This is useful for trading around major economic announcements.
Remove Opposite Order: You can choose whether to remove the opposite pending order once one is triggered. This feature helps to avoid confusion in your trading strategy.
Adjust Pending Orders: If enabled, the EA will automatically adjust pending orders, which is valuable for keeping your trades in sync with changing market conditions.
Place Straddle Immediately: This option allows you to place the straddle immediately, bypassing the news event settings. It's handy for quieter market periods when you want to play a regular breakout.
Overall, the Straddle&Trail EA seems to offer a range of features that can help you manage your forex trades more efficiently, particularly around news events.
If you have any questions about how to use specific features or if you'd like suggestions on how to optimize your trading strategy with this EA, feel free to ask.
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.