Activity
Mon
Wed
Fri
Sun
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
What is this?
Less
More

Memberships

Automated Traders Community

331 members • Free

14 contributions to Automated Traders Community
Project: MACD EA based on top-down analysis
Hi everyone. Very new to MQL5 but very optimisitic and ready to learn. I'm trying to create an EA based on the top down analysis, using the MACD indicator. Will i be better off using the nested if for the top-down analysis or there's a better way. I will also appreciate it if there's any resource you can recommended to me. Thank you all so much.
0 likes • Aug '23
https://www.mql5.com/en/search#!keyword=macd&module=mql5_module_codebase
Dynamic Lot per X dollars
Hi All, I'd like to know how I can code a dynamic lot size system in which: Trades 1 lot per 5000$; 2 lots would be for a balance greater than 10000$... 3 lots would be for a balance greater than 15000$ and so on... Thanks in advance! ;)
1 like • Aug '23
double AccountStep = 5000; double LotSize = 1.0; // you can also set LotSize to the minimum value of the current Symbol // double LotSize = SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN); double PositionSize = MathCeil(AccountInfoDouble(ACCOUNT_EQUITY)/ AccountStep ) * LotSize; Then use PositionSize as your Lotsize parameter when you open a new position
Reduce backtest time
Hi just build my first ea and i would like to run a huge backtest. Does anyone have some tips so i can reduce the backtest time? I already have the backtest data so this download time isn't included.
0 likes • Aug '23
Also, MT5 is much faster then MT4 in Backtests. Of course you could have made bad coding decisions too which will lead to Slow Backtests
Hello Pairs Traders!
A big thanks to Renè that I got invited into this group. I am working on EAs and Indicators now since 2018 and hope to find people who share the same passion for trading like I do. Currently I am working on a pairs trading system which is using cointegration and other additional methods to find good trading opportunities. It would be great if somebody here in the community has got experience with systems like that. The system is much more complicated than a standard EA which is working on just one Symbol. At the end, it shall scan for setups automatically though all available symbols. I am willing to share the current project with a skilled at that area trader or skilled MT5 coder. To be clear: I am not selling anything to anybody. A cooperative partner is what I am looking for, just because working on something together makes the development phase much more faster and gives more fun to it too. I do speak English and German.
0 likes • Jul '23
Hey @Aurelio Pavarini , that's nice that you are working on the same topic. I will implement everything into one EA, so that there is no need of an additional Tool at the end. By the use of MT5, which is Multi Symbol capable, it's also possible to Backtest the strategy. I also do have got other ideas in my head which hopefully results into better outcome compared just to the cointegration and z-score levels. As I wrote, I am also willing to share my code, so in best case, we both have got something really solid at the end which is highly automatic
0 likes • Aug '23
Definitely, I work with GitHub too. You have got a coding development background I guess when you work with it right now, or?
Lot calculation and rejected orders
Hi All, when calculating lots based on risk % sometimes I run into a situation where the order is rejected because not enough money in account. This is pretty straight forward to iron out however the problem is with the SYMBOL_MARGIN_INITIAL function as it is showing an inital margin that is equal to the contract value... $100,000 (which is wrong) anyone know a workaround for this? even in the contract specs it shows inital margin of $100,000... // Check if there is enough money to place the order double requiredMargin = SymbolInfoDouble(_Symbol,SYMBOL_MARGIN_INITIAL); double freeMargin = AccountInfoDouble(ACCOUNT_MARGIN_FREE); double marginNeeded = requiredMargin * lots; if (marginNeeded <= freeMargin) { if (trade.BuyStop(lots, high, _Symbol, sl, tp, ORDER_TIME_GTC, 0, OrderComment)) { Order = trade.ResultOrder(); } } else { Print("Not enough money to place the buy order."); // Handle the situation when there's not enough money to place the order. // log this or take specific actions based on trading strategy. }
0 likes • Jul '23
Interesting Meta trader bug, the documentation claims that the normal enum for Orders are valid. Of course for the margin cacliation, it doesn't matter if it was a Stop or Limit order. Only the direction (Buy/Sell) is relevant
1-10 of 14
Timo Amtsberg
2
5points to level up
@timo-amtsberg-1124
Developer in MT4/5 and C#. I am Interested into development cooperations.

Active 948d ago
Joined Jul 19, 2023
Powered by