Introduction to Straddle&Trail Expert Advisor
If you're looking to enhance your trading game on MetaTrader 4, the Straddle&Trail Expert Advisor (EA) might just be what you need. This handy tool allows you to set up trades that can take advantage of market volatility, especially around news events.
Input Parameters
Let's dive into the key input parameters that you need to know:
extern bool ShutDown.NOW = False; // Close all positions if set to true 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; // Shutdown trades for current pair only extern double Lots = 1; extern int Slippage = 10; extern int Distance.From.Price = 30; // Distance for pending orders extern int StopLoss.Pips = 30; // Initial stop loss extern int TakeProfit.Pips = 60; // Initial take profit extern int Trail.Pips = 15; // Trailing stop extern bool Trail.Starts.After.BreakEven = true; // Start trailing after hitting break-even extern int Move.To.BreakEven.Lock.pips = 1; // Lock pips once in profit extern int Move.To.BreakEven.at.pips = 5; // Move to break-even after x pips
Testing Parameters
To get the most out of the Straddle&Trail EA, here are the parameters I recommend for testing:
- Symbol: EURUSD
- Period: M5
- Model: All ticks
Test Chart
Check out the test results in the chart below:

Happy trading! If you have any questions or want to share your experiences with the Straddle&Trail EA, feel free to drop a comment below.
Comments 0