Expert Advisors and Automated Trading - page 34

HI.. good day to you all.. Am not sure if tis is possible is there a way to hide functions from source code.. .mq5 or mq4 eg. void TrailingStop() { //Trailing code } or instead calling it from a private website codes.. eg. void TrailingStop() { //get Trailing code function from my website
Hello using this code everything appears fine but the order comment from the string TradeComment is not shown at all any idea what could be wrong ?? // variables string DayStart = "00:00" ; // Day Start Time double LastClosed_Profit; // Last Closed trade profit string TradeSymbol, TradeType
Hello, can someone help me with my code please. It is not taking trades on live account. Please can you tell me what is wrong with it. Thanks in advance //+------------------------------------------------------------------+ //| Trading Bot Configuration | //|
Hi, community! I have developed two custom indicators in MQL5: a currency strength indicator and an RSI indicator. I would like to integrate them with a Python tool so that, whenever I start my Python application, it directly receives real-time data from the indicators without saving it locally
Hello. The situation: I have multiple copies of the same EA running on multiple pairs. I made this work by changing the name and magic number of each EA. The effect being, each is distinct from the other. The issue: I thought the above would be enough to differentiate the trades made by each EA, but
I wonder how you manage  the Tick value in your code. For some Symbols it is in the deposit currency but for some Symbols it is in another currency. In my opinion it depends on the value of MARGINCALCMODE. If it is 0 (Forex) the Tick value is in the deposit currency. If the MARGINCALCMODE is 1 (CFD)...
Hey guys, I have an interesting problem. I'm using Interserver VPS for multiple accounts. Same bot, same code, same setup. But on one of the servers I always get this line in the Experts tab: 2022.01.04 11:40:28.542 Experts automated trading is enabled 2022.01.04 21:00:00.076 Algo Solutions
Hello everyone! I'm using MT5 and facing an issue where, when a position with a set Stop Loss is closed, the magic number gets removed. I've used the following code to print the magic number in the history. for ( int i= 0 ;i< HistoryDealsTotal ()- 1 ;i++){ ulong dealticket=
I'm trying to make a expert advisor via mql5 but I'm taking these errors anyone can help ? trade.Buy(lotSize, Symbol(), ask, ask - StopLoss * Point, ask + TakeProfit * Point); ')' - open parenthesis expected SMC_Swing_Trader.mq5 trade.Sell(lotSize, Symbol(), bid, bid - StopLoss * Point, bid +
As you can see in my code i tried to use isPosOpen to make my ea stop opening more than 1 trade when the conditions are met, but i failed when i tried it to use it to stop my bot to open more than 1 trade when the prev trade is set to be. My plan is to keep opening trade when conditions are met if
I’m looking to build an online analytics platform similar to [redacted] , where traders can connect their accounts simply with login, investor password and server name. Looking into this further, I can see services such as [redacted] which offer an API which meets this need, however when looking
Hi all, I tried to find an answer to my problem but couldn't find any. Here is the issue: I launched a free indicator ("GT Indicator"). Now, I would like to launch a Utility which accesses the Indicator. I tried to add the Indicator as a resource: #resource "\\Indicators\\Market\\GT Indicator.ex5"
Hi, I'm facing a strange issue here. I have an Expert Advisor, "Main EA", which loads a custom indicator , "MW MSSS Rev Hammer.ex5" with iCustom. The whole code is stable for weeks and for weeks I have been doing backtestings without changing the indicator's source file, only the Main EA and even so
  Read TXT or CSV  (6)
Hi, I don't know why, but can't manage to read CSV or TXT I have tried all the possible combinations for reading path, and always get the same results (error 5004 or 5002) what do I have to change to read the txt? 2024.12 .22 20 : 25 : 37.034 Core 01 2000.01 .01 00 : 00 : 00 File does NOT exist
nstructions on using the MT5 Strategy Tester to analyze the bot's performance with historical data. How to Trade Using a Bot : A demonstration of executing live trades through an automated bot on MT5
I've been wondering what tips do you follow so that your Expert Advisors use are more stable, use less pc resources, not freeze, etc
Hi, nice to meet you Vincenzo, I'm new here and I hope I'm not making a mistake. I'm trying to write my own EA and I can't add a dynamic stop loss to the trades already executed. Example: I would like my EA to set a stop loss to the buys/sells already executed only when they have already matured a
I am trying to develop a strategy that works on a tick basis. I thought I would code this strategy very easily at the beginning, but it started to get more complicated as I progressed. I would like you to help me find a solution to my three different problems or share your ideas. This hedge
Hi everyone, I'm facing an issue where my EA isn't executing any trades on both demo accounts and during backtests. The EA loads correctly, "AutoTrading" is enabled, and there are no errors during compilation. I've verified the parameters and tried different symbols, timeframes, and simplified the
Hi Folks, ich have a stange problem: The Items of a dropdown area, no matter if a combobox, a datepicker or something else. If any other object is behind the dropdown, the red marked area is not clickable. If nothing is behind the dropdownarea, all works fine. My Try: I catched the click on the
  timezone  (11   1 2)
Hi The expert don't work There is a difference between the vps and time in my computer or broker's. isn't to fix it. Pls help me
Hi, I have an EA running on MT5 and I was looking at the journal and dont know what the line that says modify is from. Is this my EA doing this or is it something from MT5 or the broker? This is what it looks like when a trade is put on: RH 0 06:57:02.435 Trades '1496304': accepted exchange buy 1
Hi, I have searching and testing everything and dont get it... I want a function returning current profit / loss for all open positions. This function that I found here does not match what is showing in MT5 Trade tab?? What I want to achive is,, Take three trades, Monitor each ones profit/loss, Read
Hello, the function ResultOrder() just after opening a position does not work in my code . I need to add a sleep between, do you know why ? it s no documented ? regards , obj_Trade.Sell(order.volume,order.symbol, 0.0 , 0.0 , 0.0 ); Sleep( 10 ); ulong ticket = obj_Trade.ResultOrder();
Hello, i do my first steps in mql, so sorry for my simple question. I have a array with prices. I want to updates this array with a new price, so the oldest one must delete and the new price add to the array. The index value are represent the order of the prices 0=the oldest, 3=the newest. //1 start
Look, Why the first does not have "MQL5 Cloud Netword" and "Scheduler"
Hi everyone, I hope you're well! In my EA, I want to risk $xx every month, So each month I need to add an amount to risk, What is the best way to do this I was thinking of OnTimer( ) which does this action every month? Best Reguards, ZeroCafeine
Dear all, how do i constraint an EA making only one trade based on magic number (instead of symbol), (objective is to run similar EA with different magic number on the same symbol - so that i can test out which VPN is the best) Thank you
Hey all, I would like to ask, how to align text inside a button. I created a button and want to populate it with text, but the text keeps aligned in center and it looks so messy. I am trying to put space in the text, and it ended up making some of the text disappear. Here is the code that I write to
Hi guys, how are you doing? After update the library metatrader5 (the last version, released few hours ago) the command copy_rates_range is returning different collumns from the documentation. Now is not returning open, high, low and close, for example. Just bid and ask. Why's that? I downgrade the