• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

XauUsd M5 Superscalper source code

I thought the subject matter of this forum was xauusd m5 superscalper source code? Or am I the only one working from the original code? Is there any other way of making it better? Thanks to all of you who have helped so far. I think I am just going to take a back seat for now and see what happens here next. There is also a comment such as " it doesnt work". Well, where is that proof? Did you use it on demos in real time? Or did you just do a quick backtest to see what happens? Is this just a forum where people just make comments with not caring how to improve the subject at hand? I personally have found that expert advisor that works for me. And it was here on this forum that I found it. And I want to say thank you for allowing me to be part of this group to finally find that special expert advisor that works for me. I will say my goodbyes for now. Good luck to everyone in your endeavors to finding an expert advisor that will work for you.
 
I rewrote the code almost entirely because the original was unreadable—full of junk variables and convoluted logic. I clarified the structure and implemented proper order management and robust margin checks. I also changed the name to avoid confusion. The original Expert Advisor was designed for the M1 timeframe; however, on XAUUSD M1, there is a lot of market noise, and the spread and slippage completely ruin the results. Testing revealed that signals are much more stable on the M15 timeframe, with fewer false triggers. I am currently testing the next version of this Expert Advisor on a demo account. The results in the strategy tester have been excellent—it looks almost like a "Holy Grail" system—so I plan to link this version to Myfxbook. We shall see how things unfold from here.
 

Attachments

  • Screen01.jpg
    Screen01.jpg
    116.8 KB · Views: 23
  • Screen02.jpg
    Screen02.jpg
    122.3 KB · Views: 21
I rewrote the code almost entirely because the original was unreadable—full of junk variables and convoluted logic. I clarified the structure and implemented proper order management and robust margin checks. I also changed the name to avoid confusion. The original Expert Advisor was designed for the M1 timeframe; however, on XAUUSD M1, there is a lot of market noise, and the spread and slippage completely ruin the results. Testing revealed that signals are much more stable on the M15 timeframe, with fewer false triggers. I am currently testing the next version of this Expert Advisor on a demo account. The results in the strategy tester have been excellent—it looks almost like a "Holy Grail" system—so I plan to link this version to Myfxbook. We shall see how things unfold from here.
1778756040143.png
Yet another person who trusts a standard backtest with less than 90% accuracy. This version of the EA is not profitable on a live account.
 
Yes, you're absolutely right about that. Backtesting—even with the tick data I use from Tickstory—is just a simulation. Results may vary on a demo account, and on a real account, everything is completely different: slippage, commissions, delays, psychology. I understand that perfectly. The screenshots I mentioned are from a different version of the EA (the next, newer one). They have nothing to do with the current version I posted, so don't confuse them. I'm currently testing it on a demo account and will see how it goes. If it proves unviable on a demo account, then we'll continue to look for another solution. I have no illusions about it being "super-profitable in real life."
 

Attachments

  • Screen03.jpg
    Screen03.jpg
    162.7 KB · Views: 12
Ja, da hast du absolut recht. Backtesting – selbst mit den Tick-Daten, die ich von Tickstory verwende – ist nur eine Simulation. Die Ergebnisse können bei einem Demo-Account variieren, und bei einem echten Account ist alles völlig anders: Verzögerungen, Provisionen, Verzögerungen, Psychologie. Das verstehe ich vollkommen. Die erwähnten Screenshots stammen von einer anderen Version des EA (der nächsten, neueren). Sie haben nichts mit der aktuellen Version zu tun, die ich gepostet habe, also verwirre sie nicht. Ich teste es gerade auf einem Demo-Account und werde sehen, wie es läuft. Wenn es auf einem Demo-Konto nicht praktikabel ist, werden wir weiterhin nach einer anderen Lösung suchen. Ich mache mir keine Illusionen, dass es im echten Leben "superprofitabel" ist.
Tut mir leid, aber ich will keine Illusionen zerstören. Ich möchte andere Händler einfach vor dem Fehler warnen, ihr Geld zu verlieren, indem man auf gefälschte EAs vertraut. Wenn es Ihnen gelingt, eine profitable EA zu programmieren, lassen Sie es uns bitte wissen. Ich bin selbst ein begeisterter Programmierer und arbeite derzeit daran, etwas zu schaffen, von dem wir alle profitieren können.
 
I've updated the robot for gold: now it's inside SuperTrend+ADX and Keltner+RSI instead of PSAR + Momentum and Bollinger Bands — it makes less noise and allows you to catch trends better. To make it less difficult to set up, I wrote detailed instructions on settings and modes. The strategy has been tested only on a demo account, while real trading has not yet been tested. I am waiting for your feedback — write how it behaves on the charts, what you like, and what can be redone.
 

Attachments

I'm posting the GoldFader New EA version for MetaTrader 5. Logically, this is exactly the same Expert Advisor that was already here in the MT4 version — strategy, entry modes and trawl remained unchanged. The code has been completely rewritten for MQL5 while maintaining all the original mechanics. MT5 has some nice features that were missing in MT4. I'm posting it "as is" — a ready-made project, compiled without errors. All parameters are set up, and you can immediately attach them to the XAUUSD chart. It will be interesting to hear from you how it behaves on the chart, whether it is stupid on strong movements, what can be improved: add filters, change the logic of sessions or what else, test results — share in the topic, it will be great to compare with the work of the MT4 version
 

Attachments

I've updated the robot for gold: now it's inside SuperTrend+ADX and Keltner+RSI instead of PSAR + Momentum and Bollinger Bands — it makes less noise and allows you to catch trends better. To make it less difficult to set up, I wrote detailed instructions on settings and modes. The strategy has been tested only on a demo account, while real trading has not yet been tested. I am waiting for your feedback — write how it behaves on the charts, what you like, and what can be redone.
1778867461392.png
 
I'm posting the GoldFader New EA version for MetaTrader 5. Logically, this is exactly the same Expert Advisor that was already here in the MT4 version — strategy, entry modes and trawl remained unchanged. The code has been completely rewritten for MQL5 while maintaining all the original mechanics. MT5 has some nice features that were missing in MT4. I'm posting it "as is" — a ready-made project, compiled without errors. All parameters are set up, and you can immediately attach them to the XAUUSD chart. It will be interesting to hear from you how it behaves on the chart, whether it is stupid on strong movements, what can be improved: add filters, change the logic of sessions or what else, test results — share in the topic, it will be great to compare with the work of the MT4 version
1778868868821.png
 
Yes, that's right, default settings can really leak. The EA is designed for gold, and it is very capricious to the parameters of indicators (SuperTrend, ADX, Keltner, RSI) and stop management. I ran the optimization on tick data from Tickstory, with TakeProfit and StopLoss disabled, left only the trailing, which turned out to be, I'm applying the results. It can be seen that with proper selection of the SuperTrend multiplier, the ADX threshold and Keltner periods, equity comes out as a plus. Just launch an Expert Advisor with default figures — it is almost guaranteed to get a minus. It is necessary to select the parameters for your period and broker, especially if you trade without hard TP/SL. And be sure to use tick data (at least 99% of the quality), otherwise the tester is lying godlessly on gold.
 

Attachments

  • Screen04.jpg
    Screen04.jpg
    154.5 KB · Views: 5
Back
Top