XAG_V6-EA

XAG_V6 Expert Advisor

XAG_V6 is a robot for the MT4 platform that trades Forex, Cryptocurrencies, Indices, and Commodities. You can download and test it for free on your training account.

The initial results have been excellent, and the objective of this article is for many users to test it and thus help its development so that the development team can improve the Robot and offer consistent results.

A team of traders developed this robot using the most modern artificial intelligence tools.

The XAG_V6_Test Expert Advisor (EA) is designed to trade using a trend-catching strategy combined with hedging. It is based on technical indicators, order management, and customizable parameters to ensure flexibility in its operation.

In this post, we’ll explain how this EA works, including the logic behind its trading strategies, the key external variables, and how each parameter influences the EA’s behavior.

The EA can be downloaded below; please read the post carefully before using it.

IMPORTANT UPDATE:

The new MT4 Robot/Expert Advisor that is the update from the XAG was already released. WIth much more functions, more accuracy, and less risk, the GOAT is the new step forward in trading.

LEARN MORE ABOUT THE GOAT EA


Table of Main Features

FeatureDescription
Trend-Catching StrategyOpens trades based on D1, M30, and M1 candle alignment.
Hedging SystemOpens hedging orders after a series of losing trades.
Dynamic Lot SizeIncreases the lot size with each additional order.
Combined Take ProfitCalculates a global take profit level for all open orders.
Volume and ATR FiltersEnsures minimum volume and volatility requirements before trading.
Timed TradingRestricts trading to specific hours of the day.
Order Distance ManagementControls the minimum distance between consecutive orders.
Expiry DateThe EA has an expiration date for security or license management.
Chart Information DisplayDisplays key information about the EA’s operations directly on the chart.

XAG_V6-EA
XAG_V6-EA

External Variables: Control the EA’s Behavior

In this section, we will explain the key external variables that allow users to control and customize the EA’s trading behavior.

VariableTypeDefault ValueDescription
InitialLotSizedouble0.05The starting lot size for the first trade in the sequence.
LotSizeIncreaseValuedouble0.01The fixed increase in lot size for each additional order opened.
MagicNumberint1808A unique identifier for the EA’s orders.
DistanceInPointsint300The minimum distance (in points) between two consecutive orders.
MaxOrdersOnTrendint30The maximum number of orders allowed in the same trend direction.
MaxHedgingOrdersint20The maximum number of hedging orders that can be opened.
HedgingThresholdint3The number of losing orders required before hedging starts.
TakeProfitInMoneydouble500.0The combined take profit target (in the account currency) for all open orders.
Slippageint3The maximum allowable price slippage when opening or closing orders.
TradeStartTimeint1The starting hour for trading (broker time).
TradeStopTimeint24The stopping hour for trading (broker time).
MinVolumedouble500The minimum volume required for the EA to place an order.
MinATRdouble0.0001The minimum ATR value used to filter volatility.
ATRPeriodint14The period used for calculating the ATR (Average True Range).
EnableHedgingboolfalseEnables or disables the EA’s hedging strategy (Strategy 2).
UseCandlesForAdditionalOrdersboolfalseIf true, additional orders will use candle-based trend confirmation.
UseMinVolumeForOrdersboolfalseIf true, additional orders will only be opened if the minimum volume is met.
ExpiryDatedatetimeD’2024.12.30′The expiration date for the EA, after which it will stop working.

Detailed Explanation of EA Logic

1. Trend-Catching Strategy (Strategy 1)

The primary logic of the EA revolves around identifying trends using multiple timeframes:

  • First Order: The EA checks the last two M1 candles, the current M30 candle, and both the current and previous day’s D1 candles. If all these align, the EA will open an order in the trend’s direction.
  • Additional Orders: Once an order is open, the EA checks if conditions allow placing additional orders. The DistanceInPoints variable controls how far the price must move before opening a new order.

2. Hedging Strategy (Strategy 2)

If the EnableHedging option is true, the EA will engage in a hedging strategy:

  • Trigger: Once the EA identifies the number of losing orders (using HedgingThreshold), it opens opposite direction trades to hedge the losses.
  • Max Hedging Orders: The variable MaxHedgingOrders limits the number of hedging orders.

3. Dynamic Lot Sizing

The EA employs a dynamic lot-sizing mechanism where:

  • First Order: Uses the InitialLotSize.
  • Subsequent Orders: Each new order increases the lot size by LotSizeIncreaseValue.

4. Combined Take Profit

The EA calculates a combined take-profit level for all orders based on the total profit goal set by TakeProfitInMoney. When the combined profit from all orders reaches this level, the EA closes all open positions and resets the lot size for future trades.

5. Order Distance Management

The DistanceInPoints variable ensures there is enough distance between orders. This prevents overtrading and ensures that the market has moved sufficiently before placing a new order.

6. Volume and Volatility Filters

To ensure only valid market conditions trigger trades:

  • Min Volume: Orders are only placed if the M5 candle’s volume exceeds MinVolume.
  • ATR Filter: The EA uses the Average True Range (ATR) with the period defined by ATRPeriod to assess volatility, ensuring a minimum ATR value (MinATR) is met before trades are placed.

7. Expiry Date and License Control

The EA includes an expiration feature controlled by the ExpiryDate variable. After this date, the EA stops functioning, which is useful for licensing purposes.

8. Visual Information on the Chart

The EA displays key information on the chart, including:

  • Magic Number
  • Number of open Buy and Sell orders
  • Losing order count
  • Net profit or loss
  • Combined take profit level

9. Other information

a) The EA uses a Magic Number (individual ID) to track and manage orders. Users must use a unique Magic Number every time they use the EA in a different chart. Otherwise, it will mix all the TPs and logic.

b) It uses a dynamic trailing stop linked to volatility, so the TP price is expected to sometimes move up and down.

c) The XAG_V6 has been tested in different assets like Forex pairs, Commodities, Indices, and Crypto, with the best results to be made so far, with XAG (Silver) and XAU (Gold). It is advised to try different setups to find good setups for other assets.

d) The default setup is the one that has been used to XAG with really nice results.

e) This EA is still being developed. For that reason, it is advised not to use it in a real account for now but rather to test it in demo accounts.

f) Other versions with improved features and bug fixes will be left here to be downloaded.

10. Where to test the EA?

You can test the EA in any Broker that offers MT4 Demo Accounts.

We advise you to use a Broker with a server time of UTC +2 since the server time considers some of the features that the EA has.

If you don’t know what brokers have servers in that time zone, please check below a couple of solutions:

4XC – MT4 Demo Account and 100% deposit bónus with the promo link: PROMO LINK

AVA Trade – MT4 Demo Account: LINK FOR DEMO

ROBO FOREX: MT4 Demo Account: LINK FOR DEMO

11. Download the EA below and follow a test account

Below, you can find a link to download the EA.

LINK TO DOWNLOAD

Conclusion

The XAG_V6_Test EA provides a robust framework for trend-catching with a dynamic and customizable approach. With features like hedging, dynamic lot sizing, and combined take profit, it is designed to handle both trending markets and drawdowns efficiently. Additionally, the EA’s behavior can be fine-tuned with the help of external variables, giving users flexibility and control over their trading strategy.

Other Posts For You:

What is Auto Trading, and How Does It Work?

IQ Option Trading Bot

CounterStrike MT4 EA

Break Even Function in Metatrader

End of the Day Order Manager

If you try the XAG_V6 EA, please remember to tell us about the results, suggestions, and ideas you have for improving it.

Use the form below to leave messages.

Check also our other EAs and Tools.

22 Comments

  1. Hi Rui,
    I will continue to use the strategy with and without hedging to see the difference. This week, November 11th to 15th, we will see the difference between both strategies.
    I have already posted the results on EA NEWS_21.

  2. Hi Alberto,
    Thank you for your comment. Keep using the strategy2 (hedging) to see results, since to be honest, I am not testing with hedging. I would use maybe the hedging after a couple of trades (3 or 5).
    Are you also using the other EA the NEWS_21? If yes, please give the results on the other EA page.

  3. Hello Rui,

    My results below.

    EA XAG_V6
    October 30th to November 1st
    Results:
    XAUUSD (Original Setup): + 95.09 $
    AUDUSD (Setup 1): + 8.95 $
    EURUSD (Setup 1): + 4.4 $
    XAGUSD (Original Setup): + 155 $
    XAGUSD (Setup 1): + 63 $
    Total for the week: + 326.44 $
    The EA worked 24 hours non-stop

    EA XAG_V6
    November 4th – 8th
    Results:
    XAUUSD (Original Setup): +$453.51 (186 orders)
    XAUUSD (Setup 1): +$39.25 (36 orders)
    AUDUSD (Setup 1): +$14.95 (36 orders) no negative orders
    EURUSD (Setup 1): +4.45$ (32 orders) no negative orders
    XAGUSD (Original Setup): +490.85$ (60 orders)
    XAGUSD (Setup 1): +82.9$ (38 orders)
    XAGUSD (Setup 2): +64$ (26 orders)
    GBPUSD (Setup 1): +6.85$ (19 orders) no negative orders
    Total for the week: +1156.76$
    The EA worked 24 hours non-stop

    Setups (what is different from the original)

    XAUUSD (Setup 1)
    Enable or disable Strategy 2 : True
    Note: On November 7th I started with Setup “”Use candles for orders 2, 3, etc.: True + Use minimum volume for additional orders: True”” but many orders were opened (more than thirty) that ended up placing the values ​​in negotiation close to -5000$. On November 8th at 2pm (Azores) I changed to Setup 1.

    AUDUSD (Setup 1)
    Number of losing orders to trigger hedging: 1
    Enable or disable Strategy 2 : True
    Use candles for orders 2, 3, etc.: True
    Use minimum volume for additional orders: True

    EURUSD (Setup 1)
    Number of losing orders to trigger hedging: 1
    Enable or disable Strategy 2 : True
    Use candles for orders 2, 3, etc .: True
    Use minimum volume for additional orders: True

    XAGUSD (Setup 1)
    Enable or disable Strategy 2 : True
    Use candles for orders 2, 3, etc.: True
    Use minimum volume for additional orders: True

    XAGUSD (Setup 2)
    Number of losing orders to trigger hedging: 1
    Enable or disable Strategy 2 : True
    Use candles for orders 2, 3, etc.: True
    Use minimum volume for additional orders: True

    GBPUSD (Setup 1)
    Number of losing orders to trigger hedging: 1
    Enable or disable Strategy 2 : True
    Use candles for orders 2, 3, etc.: True
    Use minimum volume for additional orders: True

    NOTES:
    GBPUSD (Setup 1) has one order open for several days (this morning 12 November): -110$
    XAGUSD (Setup 1) has two orders open for several days (this morning 12 November): -532$ and -299$

    Regards
    Alberto

  4. Hi,
    You are correct, we are having the same results. XAG and XAU are very volatille assets. We would need to have a different approach with them. However the forex pairs, on our tests are running very well.
    In any case, we will release a new EA, and improved one with more features and more tools to avoid entering on the wrong trend.
    We hope to do it in the next weeks that new EA.

  5. Yeah, it seems that the XAU pairs are too volatiles and may not be good for this EA. I set the EA on 2 pairs yesterday evening, XAUUSD and XAUAUD. The demo account of 1080$ is double over night and it is now at 2285$. We will continue testing to see the suitable pair.

  6. Hello, That is why we requested people to help us find the best setups and assets to trade. As I have told you before, this asset is very volatile, that is also why you had made 100% profit in one day.
    The results we are having show us that maybe XAG and XAU are not good to be used with this EA.
    In any case, we were expecting big volatilitty due to the USA elections.
    We are working in other tools to be used together with the EAs, and we are developing a better version with less risk that the one everyone is using now.
    In about a week or two, we hope to have the new version ready to be tested.
    Thanks for your help.

  7. But did it closed or it opened more orders? I would advise to set up the trading hours to the bot to start around 8.00 am server time.

  8. Hello,
    Please check:
    1) Is there any other chart using the same MagicNumber (Unique ID of the bot)
    2) Check the Stop Loss and Take Profit. Remember that the TakeProfitInMoney is divided by the lot size. So if you use, for example 500 and you trade with 0.01, it represents only 0,50$.

  9. Since morning i am using XAG Ea on XAUUSD Gold pair.. mostly it gave profit. but in one trade bot gave 34usd drawdown. Dear Developer how can we avoid big drawdown if we use it for XAUUSD.

  10. Today Monday 28 October 2024, I tried XAG EA on XAUUSD Pair. First 20 minuted didnot open any trade. Then it started opening trades but with default lot size 0.05 it closes trade on 0.50 USD profit. i dont know what is the logic. BUT OVERALL i am in profit ( in DEMO Account on Exness)

    I use default settings

  11. Thanks again. For lower the risk, you can enable:
    UseCandlesForAdditionalOrders=true
    UseMinVolumeForOrders=true
    And use a different MagicNUmber, and then open a new chart on BTC, with those 2 parameters above on true and them compare both results. The second one will probably make worst results, but it will have less risk, and at the end od the day, the risk control is the most important thing in long term results.

  12. OK, thanks for the input. As far as I remember, in order to lower the risk of opening too much trades if the trend changes, in BTC is good to increase the opening of additional trades, knowing that 100$ price in BTC, is equal to 10000 points. So, you can use that logic to know what is the Profit per trade and how frequent the EA may open new trades if the trend changes.
    Another tests that we are doing is to let the EA work only from 9h00 UTC time until 22h00 UTC time, to be easier to catch the correct daily trend.
    So, test different setups and different assets and keep us posted with the results.

  13. Sir!

    My setting for BTCUSD for XAG EA

    **********
    InitialLotSize=0.01
    LotSizeIncreaseValue=0.01
    MagicNumber=786
    DistanceInPoints=300
    MaxOrdersOnTrend=30
    MaxHedgingOrders=20
    HedgingThreshold=3
    TakeProfitInMoney=2
    Slippage=3
    TradeStartTime=1
    TradeStopTime=24
    MinVolume=500.0
    MinATR=0.0001
    ATRPeriod=14
    EnableHedging=false
    UseCandlesForAdditionalOrders=false
    UseMinVolumeForOrders=false
    ExpiryDate=2024 12 30 00:00

  14. Thanks sir, very very good bot today sunday all markets are closed, i tried this bot on BTCUSD. with default setting. till now in 1 hrs i earned 20 USD. on demo

  15. Hi Tahir,
    Thank you for sharing the results. While a small test to see results, it is always nice to know how the EA is performing. Can you share the setup you used in terms of Stop Loss, Take Profit, and other important variables?
    Test also the other EA, the NEWS EA together with the Tool to close all the profitable daily trades. All that is available here on the site in: https://iqtradeasy.com/mt4/ and https://iqtradeasy.com/tools-and-calculators/
    Keeps us posted with results, good or bad ones.

  16. I tried XAG EA on BTUSD i changed time frame to 1M and Lot size to 0.01.
    It gave me constent profit i earned around 10 usd in 30 minutes.

  17. I tried to understand the reason why my demo account double in 24h. I lost the internet connection overnight and the trend in XAGUSD continue in the favorable direction. That was just what happen.

  18. Hello Aime,
    Thanks for testing the EA and for giving us updates of the results.
    Making 100% is not normal, maybe you are using a small account with a very big trading lot.
    If you could share the setup you are using to compare with the setup we are using would be great.
    Our testing results have being quite good, but nothing compared with your results.
    I also need to mention that, the fact that the XAG was in a nice trend on the last weeks may help to get good results.
    In any case, we think that one of the main thinks, that we are working in a future update is to help to identify trend changes, like the one it is hapening today, to avoid that the EA enters when the trend is changing to avoid entering on the wrong trend.
    One of our ideas would be to close the trades at nigth, and wait to reopen the EA only when Europe starts to trade, around 8:00 am UTC time.

  19. I tested this robot on a demo account and the account doubled in 1 day. I’m not sure that is the best approach however I’m quite sure this robot is going to be profitable.

Leave a Reply

Your email address will not be published. Required fields are marked *