Jeovane Reges / Publications
Forum
Indicator Running Slow
Good morning, everyone! I hope you are all well. I am adapting an indicator ( CurrencySlopeStrength ) which, for those who are not familiar with it, behaves similarly to other oscillators, such as RSI, Stochastic , etc. However, I have noticed that the indicator becomes heavy when attached to
Help with Take Profit Function
Good afternoon, community members. I am developing an EA that exclusively trades the EURUSD pair. The strategy involves opening a new position to average the price whenever the price moves against the current position. This part is working perfectly. However, I am facing difficulties with the
Issues with Backtesting EURJPY and GBPJPY on MT5
Hello everyone, I have developed an Expert Advisor (EA) for MetaTrader 5 (MT5) and, to test it with high-quality data, I used QuantDataManager to download historical tick data . After downloading the necessary data, I went to MT5, created the symbols, and loaded the ticks (the image below shows the
Backtesting in specific periods
Hello everyone, good afternoon. I'm seeking guidance on the feasibility of conducting backtesting using the Strategy Tester + Strategy Optimizer, specifically for a specific month within a defined range of years. To be more specific, I would like to know if it's possible to select, for instance, the
Get ticket immediately after opening position
Hello everyone, I hope you're doing well! I am currently working on developing an Expert Advisor (EA) and facing a challenge. I need to obtain the ticket number of the last position immediately after opening it. I am using the following code for this purpose; however, I am encountering inconsistent
Is all trading history possible?
Hello everybody. I would like to know if there is a way to access the entire trading history through the OrdersHistoryTotal() function. If so, how can I do this via code? Thank you in advance for everyone's help and understanding
Calculate previous month's profit
Hello everybody. I developed the code below to return last month's profits. For some reason beyond my knowledge, the returned value is different from the MT5 one. Could someone tell me where I'm going wrong? //--- double GetProfit() { double profit = 0 ; //--- int timeDay = 24 * 60 * 60
Error: cannot set timer (1)
Good morning. You're giving the following error (cannot set timer (1)) when I add my indicator to the chart. After some internet searches I found the code below as a possible solution, but it didn't work. //--- Create timer int error = - 1 ; int counter = 1 ; do { ResetLastError ();
Arrows don't follow candles
Good morning I started studying MQL about a month ago and I have had a problem in which I have tried to solve in many ways and not succeed. The problem itself would be to make the arrows plotted on the chart (with the market open) track the candles when these are in the opposite direction (image