System Trading

Master Manual Trading with the Buy Sell Close EA for Newbies on MetaTrader 4
MetaTrader4
Master Manual Trading with the Buy Sell Close EA for Newbies on MetaTrader 4

Hey there, fellow traders! If you’re just dipping your toes into the trading waters, you might want to check out the Buy Sell Close manual trading EA. This tool is perfect for beginners, allowing you to not only backtest your strategies in visual mode but also to trade live with confidence. With this EA, you can practice and refine your own trading system during backtesting sessions, which is a fantastic way to get the hang of things. The Buy Sell Close EA allows for manual operation, giving you the flexibility to pause or adjust the speed of your backtests. This is particularly beneficial for those who prefer hands-on trading exercises. Getting Started: Lots Button: Adjust the number of lots directly in the input box to suit your trading style. BUY Button: Click this to place an additional order above your current lot size. SELL Button: Use this to open a short position based on the specified lot size. SL Modify TP Button: This option lets you modify the Stop Loss and Take Profit levels for all open orders relative to the current market price. Close All Buy Button: Press this button to close all your Buy orders in one go. Close All Sell Button: This will close all open Sell orders with a single click. Close All Orders Button: Use this to shut down all of your trading positions at once. On the right side of your display, you’ll find valuable information about your open orders, profits, and more. Parameter Breakdown: MM: Automatically calculates the default lot size based on your risk ratio. Risk: Set at 0.2 for a balance of £10,000, which equates to 0.2 lots. Lots: If MM is set to FALSE, this fixed number of lots will be used. SL (Stop Loss): The default setting is 250 micro-points. TP (Take Profit): The default is set at 500 micro-points. So, why not give it a go? You can practice your own trading strategies with the Buy Sell Close EA. Happy trading, everyone!

2024.02.29
Understanding Drawdown Calculation in MetaTrader 4: A Trader's Guide
MetaTrader4
Understanding Drawdown Calculation in MetaTrader 4: A Trader's Guide

Hey fellow traders! Let’s dive into a crucial aspect of trading—drawdown calculations in MetaTrader 4 (MT4). If you're using an Expert Advisor or a trading bot, understanding how drawdown works can help you manage risk more effectively.First off, it’s important to note that the drawdown calculation can be based on specific parameters, like the magic number and symbol. This means you can tailor your approach to fit your trading style or the particular strategies you’re employing.If you're only interested in assessing the overall performance of your account without getting bogged down by individual trades, you can simply remove the magic number and symbol filters from your code. This way, you’ll get a clearer picture of your total drawdown across the board.Why Does Drawdown Matter?Understanding drawdown is essential because it gives you insight into the potential risks of your trading strategy. Here are a few key points to remember:Risk Management: Knowing your drawdown helps you set proper stop-loss levels.Performance Evaluation: It’s a strong indicator of how well your trading strategy holds up under pressure.Emotional Control: Being aware of potential drawdowns can help keep your emotions in check during tough trading periods.In summary, calculating drawdown in MT4 isn’t just about numbers—it’s about enhancing your trading strategy and managing your risks wisely. So, whether you’re a seasoned trader or just starting out, make sure you’re keeping an eye on your drawdown!

2024.02.14
Understanding Bounce Numbers for Grid and Martingale Strategies in MetaTrader 4
MetaTrader4
Understanding Bounce Numbers for Grid and Martingale Strategies in MetaTrader 4

When it comes to trading strategies like Grid and Martingale, one of the key aspects you need to get right is your lot sizing and the number of trades. It’s crucial for maximizing your success and minimizing your risk. As traders, we often look back at a symbol’s historical performance, especially during range zones. A question we frequently ponder is: How Many Times did the price bounce between the two limits of a range zone? This concept is what I call the Bounce Number. It can be calculated through statistical analysis of any symbol’s historical data from the market. To clarify this further, let’s take a look at Image No. 1. Image No. 1: Definition of Bounce Number, its goal, and applications The image illustrates how price movement generates statistics for the Bounce Number Tool. To manage delays, I developed it as an Expert Advisor (EA) that employs a Sleep function. This function helps prevent crashes on your chart, especially when dealing with a high number of candles set in the tool's input. Now, let’s take a look at Image No. 2, which presents a brief graphical representation of the tool and what the different objects mean. Image No. 2: Bounce Number Statistics. Using the Tool: Referring to Image No. 2, let’s say we set the Bouncing Channel Half Height to 600 points: We can identify 6 different bounce numbers ranging from 1 to 6 for this symbol. A bounce number of 2 indicates that the price starts from the middle of the bounce channel (height of 2 * 600 = 1200 points), moving up and down, touching the red line once and the blue line once before reaching the Take Profit (TP) of 1200 points. For bounce number 5, the price starts from the mid-point of the channel and touches the red line 2 times and the blue line 3 times, or vice versa, before hitting the TP of 1200 points. This logic applies to all bounce numbers. There is no bounce number 7, which means the price hasn’t bounced between the red and blue lines 7 times (with a distance of 1200 points) over the entire historical data selected in the tool’s input. Keep in mind that the more historical data you use (the Max number of lookback candles), the greater the chance of identifying 7 bounces. However, even for 6 bounces, the chance is only 22 out of 9020 total price hits at TPs. Input Settings for the Tool: - Max number of lookback candles: Like with any scanning tool, be cautious about how many you set here. Avoid increasing it too dramatically to prevent crashes due to memory overload. - Time-Frame: The time frame of the candles you want to analyze for bounces from channel limits and TP line touches. A lower time frame is preferable for narrow channels. If you’re unsure, it’s best to stick with the M1 time frame. - Bouncing Channel Half Height: This is the distance in points between the green line and the red and blue lines. - Chart Background Color: Set this to your preference. - Bar Chart Color 1/Bar Chart Color 2: Use these to add a bit of flair to your statistical bars. - Count Cells Color: Choose a color for the count cells. - Bounce Numbers Cell Color: Pick a color for the bounce numbers cell. - Load Bar Color: This load bar will indicate whether the tool is working and how quickly calculations are progressing. Additionally, a button has been added to start the calculations and to enter the number of historical candles directly from the screen.

2024.01.12
Mastering Take Profit Strategies in MetaTrader 4: A Local Trader’s Guide
MetaTrader4
Mastering Take Profit Strategies in MetaTrader 4: A Local Trader’s Guide

IntroductionHey there, fellow traders! If you’re like most of us, you probably rely on your Expert Advisors (EAs) to manage your trades. But have you ever thought about how these EAs determine when to close orders at take profit? While many EAs stick to a simple pip-based approach, the EA Perceptron takes a different route—it focuses on your current profit instead. This makes managing take profit across multiple open positions so much easier, especially if you’re juggling several bots or EAs at once. Want to stay in the loop? Add me to your friends and follow my feed for updates!By using this profit-based method, you can sidestep some of the common headaches that come with pip-based take profits. For instance, if your broker experiences slippage, it could seriously limit your potential profits. With a current profit-based system, you gain better control over your trades, ensuring you don’t leave money on the table.If you’re curious about how to set up a take profit based on current profit, take a peek at the code for the EA SwingBot—it’s a great reference!…Total OrdersFirst things first, let’s look at the code that calculates the total number of open orders tied to the same magic number.The magic number is a unique identifier that you or your EA assigns to each order. Here’s how it works:The code kicks off by initializing a variable total_orders to zero. It then loops through all open orders using a for loop and selects each order with the OrderSelect() function. If the order is successfully selected, it bumps up the total_orders variable by one.//-----------------    int total_orders = 0;    for(int i = 0; i < OrdersTotal(); i++)      {       if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))         {          if(OrderMagicNumber() == MagicNumber)          {          total_orders++;         }         }     }…Calculating Current ProfitThe next step involves initializing two variables: ProfittoMinimo and Profit. The ProfittoMinimo variable sets the threshold for activating take profit, and its value is expressed in your account’s currency. The Profit variable accumulates the current profit from all open positions with the same magic number. Additionally, we’ve got a StopLoss variable for your stop-loss settings.The code employs a for loop to iterate through all open positions using the OrdersTotal() function. For each position, the corresponding order is selected with the OrderSelect() function. If the order is successfully selected and has the same magic number, the order’s profit is added to the Profit variable.      double ProfittoMinimo = 3; // target profit       double Profit = 0; // current profit              for(int i=0; i<OrdersTotal(); i++)         {          if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))            {             if(OrderMagicNumber() == MagicNumber) // For multiple EAs, you can remove the MagicNumber filter to manage total orders               {                Profit += OrderProfit();               }         }       }You can set the minimum profit as an external variable in the EA options:…Closing Positions When Profit is ReachedHere’s where it gets interesting! The code uses a for loop to check all open orders with the OrdersTotal() function, starting from the last order and working backward. For each order, it selects the corresponding trade with the OrderSelect() function.If the trade matches the current chart’s symbol, is of type OP_BUY, and has the same magic number, it checks if the Profit is greater than or equal to ProfittoMinimo. If it is, the trade is closed at the bid price using the OrderClose() function, and you’ll see a message confirming that the buy order has been closed.On the flip side, if it’s a sell order (type OP_SELL), and it meets the criteria, the trade is closed at the ask price, with a message displayed for the closed sell order.      for(int e = OrdersTotal() - 1; e >= 0; e--)         {          if(OrderSelect(e, SELECT_BY_POS, MODE_TRADES))            {             if(OrderSymbol() == Symbol() && OrderType() == OP_BUY && OrderMagicNumber() == MagicNumber) // Only modify the order if the MagicNumber matches               {                if(Profit >= ProfittoMinimo)                  {                   OrderClose(OrderTicket(), OrderLots(), ND(OrderClosePrice()), 3); // Bid price                   Print("Buy order closed", Profit, " - Minimum stop loss: ",MarketInfo(Symbol(), MODE_STOPLEVEL));               }           }             if(OrderSymbol() == Symbol() && OrderType() == OP_SELL && OrderMagicNumber() == MagicNumber)               {                if(Profit >= ProfittoMinimo)                  {                   OrderClose(OrderTicket(), OrderLots(), ND(OrderClosePrice()), 3); // Ask price                   Print("Sell order closed", Profit, " - Minimum stop loss: ",MarketInfo(Symbol(), MODE_STOPLEVEL));                 }           }         }         }…ConclusionThis code can be a game-changer for your position-closing strategies that focus on take profit. Plus, you can easily integrate this with a trailing stop based on your current profit. If you're running multiple Expert Advisors, consider leaving out the if condition on the MagicNumber to set universal take profit levels across all open positions. It’s a handy way to keep all your active EAs in check!

2023.10.27
Mastering the Double Bollinger Band Strategy on MT4: A Comprehensive Guide
MetaTrader4
Mastering the Double Bollinger Band Strategy on MT4: A Comprehensive Guide

1. Overview The Double Bollinger Band Strategy is a powerful tool that uses two sets of Bollinger Bands to refine your entry and exit points in the forex market. This strategy focuses on placing Buy (or Sell) trades when the price crosses above (or below) the 3σ (3 standard deviations). It also takes into account the 2σ (2 standard deviations) level of the Bollinger Bands to inform trading decisions. Default Parameters: 2σ Bollinger Bands (20, 2): This includes a simple moving average over 20 periods and 2 standard deviations. 3σ Bollinger Bands (20, 3): This also uses a 20-period simple moving average but with 3 standard deviations. Input Parameters: 2. Long Entry To open a Buy order, ensure these two conditions are met: Condition 1: The Ask price crosses above the upper 3σ Bollinger Band (BB3UP). Condition 2: If Condition 1 is true, verify that the current price is within the range of the upper 2σ Bollinger Band (BB2UP) and the lower 2σ Bollinger Band (BB2LO). 3. Sell Entry To open a Sell order, ensure these two conditions are met: Condition 1: The Bid price crosses below the lower 3σ Bollinger Band (BB3LO). Condition 2: If Condition 1 is true, ensure the current price is within the range of the lower 2σ Bollinger Band (BB2LO) and the upper 2σ Bollinger Band (BB2UP). 4. Exit Orders Utilize OCO (One Cancels Other) orders to set both stop-loss and take-profit at N pips. ※N: Set this parameter according to your strategy.

2023.10.02
Mastering the Martin Gale Breakout Strategy for MetaTrader 4
MetaTrader4
Mastering the Martin Gale Breakout Strategy for MetaTrader 4

Welcome to the world of Forex trading! Today, we're diving into the Martin Gale Breakout strategy, an Expert Advisor (EA) that many traders swear by on MetaTrader 4. This EA cleverly combines a breakout trading technique with the Martin Gale money management system to enhance your trading performance. Input Parameters: TakeProfPoints: This lets you set the Take Profit level in points for each trade, a crucial part of any trading strategy. BalancePercentageAvailable: Specify the percentage of your account balance to be allocated for trading, keeping your risk in check. TP_Percentage_of_Balance: This determines how much of your account balance is used as Take Profit for each trade. SL_Percentage_of_Balance: Set the percentage of your balance that will go towards your Stop Loss for trades—always a good safety net! Start_The_Recovery: This is key for the recovery process, controlling when and how recovery strategies kick in. TP_Points_Multiplier: A handy tool for adjusting your Take Profit points, allowing for more flexible profit-taking. MagicNumber: A unique identifier for this EA, ensuring it can manage its own trades without interference. Strategy Highlights: Breakout Trading: This EA specializes in spotting breakout opportunities in the market, where price movements break through key levels—definitely a sweet spot for traders! Dynamic Lot Sizing: Lot sizes adjust dynamically based on your account balance and risk tolerance, all while aligning with Martin Gale money management principles. Loss Recovery: This EA comes packed with a robust recovery mechanism that adapts trade parameters to help you bounce back from losses. One of the standout functions in this EA is CalcLotWithTP(), which uses three input parameters: Takeprofit, Startprice, and Endprice. It calculates the necessary volume for a trade to hit your profit goals based on where you enter and exit. Don’t worry if you’re not a coding whiz—everything in the EA’s code is thoroughly commented for easy understanding. For a deeper dive, check out my YouTube video on this strategy: Happy trading, and may your pips be plentiful!

2023.09.26
Unlock Your Trading Potential with MaybeAwo EA for MetaTrader 4
MetaTrader4
Unlock Your Trading Potential with MaybeAwo EA for MetaTrader 4

Key Features: Moving Average Entry: MaybeAwo EA employs a straightforward moving average to pinpoint potential entry points. When the market aligns with the moving average crossover strategy, it can trigger buy or sell orders seamlessly. Customizable Parameters: Tailor the EA to fit your unique trading style! You can adjust input parameters like moving period, lot size, stop loss, take profit, breakeven levels, and even specify trading hours. This flexibility means you can adapt the EA across different asset classes. Breakeven Functionality: Protect your profits with the EA’s two breakeven levels. Once a trade goes into profit, it can automatically shift the stop loss to your breakeven level, ensuring you lock in those gains. Plus, you can tweak the breakeven distances to suit your trading needs. Trailing Stop: As your trade moves in your favor, the EA can implement a trailing stop. This handy feature helps you secure profits during strong trends by adjusting the stop loss level accordingly. Start and End Hours: Set specific trading hours for the EA to operate. This allows you to concentrate your trading efforts during peak market sessions, making your trading more strategic. Important Reminders: Take the time to thoroughly review and adjust the input parameters so that the EA aligns with your personal trading strategy. Always test the EA on a demo account before going live. This step is crucial to understand its performance. Keep an eye on the EA’s performance and be ready to tweak parameters as market conditions evolve. Disclaimer: Trading involves risks, and while MaybeAwo EA can enhance your trading experience, it does not guarantee profits. Use it responsibly and always stay aware of the risks associated with automated trading.

2023.09.10
First Previous 1 2 3 4 5 6 7 8 Next Last