XAUUSD and Machine Learning Trading | Page 6 | Forex Factory

HeroPoker_HeroPoker扑克_HeroPoker德扑圈官网

Attachments: XAUUSD and Machine Learning Trading

XAUUSD and Machine Learning Trading

{quote} Hello, what version are you using to test if it is a real account
i m using the v4 but only on a demo account
{quote} i m using the v4 but only on a demo account
Why not use V6 testing
2025-11-11 11:29:50.011741: SELL filter progress:
✗ Crossed Down: False
✓ Trend Down: True
✓ AVG True Range OK: True
✓ AVG Dir Index OK: True
✓ Rel Strength Index OK: True
4/5 filters passed for SELL
Enough time passed signal is (True), 0s has passed, Accept trade is True, Probability is 0.5
2025-11-11 11:29:50.011741: Positions not open yet

When will Crossed Down will become true. Could someone please advise
hlo sir how did u connect mt5 to python ? im having trouble to create bridge
1. Download Python version 3.10 / 3.11 as mentioned above

2. Create an MT5 account with your broker, download MT5, log in, and don't forget to enable your algo trading in the expert advisor option

3. Configure the settings in the TXT file you obtained here using Notepad++ or a similar text editor. The points you need to change are:
Login / Password / Server replace these with your own credentials. Also, do not forget the symbol, as each broker has a different symbol. Since I am using the Exness demo account, there is usually an additional 揗?after the symbol, such as XAUUSDm. If you do not pay attention to the symbol, it may not function properly. Save the TXT file as XAUUSD_V6.py.

4. Don't forget to install all the necessary components in the terminal, such as MetaTrader5, pandas, numpy, scikit-learn, and joblib.
After that, simply run it in the terminal or cmd:
python XAUUSD_v6.py

If you're still confused, ask ChatGPT, Gemini, Deepseek, or others. Everything is getting easier these days, dude.
After trying it for a few days, the results are pretty good. I'm using v6, and I hope this script can still be developed further. I tried it using an Exness MT5 demo account.
I'm also still trying to develop it with the help of ChatGPT or Copilot, because I'm not very good at coding.
However, what I'm posting here is the result of the v6 script that hasn't been modified at all.
Attached Image (click to enlarge)
Click to Enlarge

Name: xau.png
Size: 30 KB
Bro can i get that details i am also working on some strategy ,we can team up i am 4yrs exp
Help please
I just get "Loop Tick" output
Attached Image (click to enlarge)
Click to Enlarge

Name: image_2025-11-18_170303879.png
Size: 10 KB
Help please I just get "Loop Tick" output {image}
Please check the symbol section to see if it matches the broker you are using.
Usually, each broker has a different symbol code. For example, Exness uses XAUUSDm. Based on my personal experience, I forgot to add M to the symbol, and that's why the tick loop appeared.
I got error while running this script :
"Order send failed, retcode=10019"
the loop tick did running well, but when signal triggered it was error. Anybody solved this issue ?
Hello . How are you ?
Was this project successful after testing? Do you have any new updates? Please keep us updated.
For now, I'm in profit. {image}
Hi there,

@sooyjooy, do you still got the bot running ?
and What are the pnl now ?
First trade this week. Only dont know why the tp and sl are so far away haha
Attached Image (click to enlarge)
Click to Enlarge

Name: IMG_6718.jpeg
Size: 113 KB
First trade this week. Only dont know why the tp and sl are so far away haha {image}


Because it sets TP and stop based on ATR
Nice I see ! Some of you Guys running this script also right now ?
I just added this EA to my MT5 and localized the code, changing the print language to Chinese. I'm from China, and I noticed the author is from the Vatican, so he traded from 6 AM to 7 PM in the code—covering the European morning session to the US afternoon session. If you're in Europe, using the author's trading times is perfectly fine. This is based on your local time. If you're in a different time zone, such as Asia (using my UTC+8 time zone as an example), you'll need to modify parts of the code. I've adjusted it to UTC time to trade during both European and US sessions.

Beyond the time zone adjustments, I've also incorporated risk management features into the code. I'm unsure if this aligns with the author's original intent, but I cannot tolerate daily losses exceeding 2%. Therefore, I added risk control logic to cap daily losses. When the day's closed-position losses reach $100, the EA halts opening new positions for the remainder of the day.

Currently, I'm running this EA on my EXNESS demo account. Luck was on my side—it caught a trade shortly after launch. It went from floating profit to floating loss and is now back in profit. Regardless, let's see how this trade plays out. I'll keep it running for a week. Attached is a screenshot of this trade.

By the way, I'm unsure why this order opened midway through the candle. I recall the code was supposed to open positions only after the candle closes. The logic here is unclear to me—any clarification would be greatly appreciated.

If anyone outside the European time zone needs code modifications or time zone suggestions, feel free to leave a comment.
Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 22 KB
Okay okay! Yes Ian european! But I put the code to trade whole day, yesterday it took 2 trades, both they where TP hit and n good profit. After the second i made the bot back to 0.01 for trading, this are the results. I will let it run, and see where we will come! Good to have this thread back up!
Attached Image (click to enlarge)
Click to Enlarge

Name: IMG_6730.jpeg
Size: 144 KB
I just added this EA to my MT5 and localized the code, changing the print language to Chinese. I'm from China, and I noticed the author is from the Vatican, so he traded from 6 AM to 7 PM in the code—covering the European morning session to the US afternoon session. If you're in Europe, using the author's trading times is perfectly fine. This is based on your local time. If you're in a different time zone, such as Asia (using my UTC+8 time zone as an example), you'll need to modify parts of the code. I've adjusted it to UTC time to trade during...

Unfortunately, the first trade did not succeed. The market remained volatile throughout the latter half of the U.S. trading session. After the close, the market gapped higher and continued its upward momentum, ultimately triggering my stop-loss level. I will continue testing this EA for the remainder of the week and may need to adjust its operating hours to cover the Asian trading session, such as shifting it to Beijing time from 8:00 AM to midnight.

Additionally, I noticed that this order was closed outside EA's operational timeframe. Upon consulting Deep Seek, it indicated that the closing transaction was recorded within the tradable time window. However, since the stop-loss trigger occurred outside the tradable period, it was not logged. I have relocated the regular for loop to precede the opening if statement.
Attached Image (click to enlarge)
Click to Enlarge

Name: screenshot.png
Size: 21 KB
Okay okay! Yes Ian european! But I put the code to trade whole day, yesterday it took 2 trades, both they where TP hit and n good profit. After the second i made the bot back to 0.01 for trading, this are the results. I will let it run, and see where we will come! Good to have this thread back up! {image}

Hello friends
Have you changed the code or are you using exactly the same version 6?
For now, I'm in profit. {image}
Does some has an myfxbook account where to monitor when a certain version enters a trade. To me it has not taken any trades in 5 days, not sure but warm up file is never created, because there are no trades. Also I did made some minor changes related to lot calculation based on balance, and schedule based on broker server time.

Thanks