Expert Advisors and Automated Trading - page 31

Hi Guys, i added the volume lot in the standard expert mama, could you tell me also how i can add a stop loss in the Advisor? Here the code: //+------------------------------------------------------------------+ //| ExpertMAMA.mq5 | //|
Hi folks, I am having problem with my tester not showing entry signals even when I test the strategy live(the trades don't open). The same strategy works fine on the account with both strategy tester and live test, the entry signals show. So, I am assuming that they must some setting that I must
HI, As I stated in the tittle I'm getting an " invalid stops " error during backtesting. It doesnt happen on every entry attempt. Just once every couple trades. I've tried Normalizing Price, both using NormalizeDouble and Normalizing with tick size. I also made sure the stoploss is placed further
I am creating indicators that I have to make available for each architecture. I was compiling each project individually, and the indicator contains 4 other indicators through the resouces, so every time I edit or release new updates and work hours to change in the 4 types of architecture, what I
Hi all, Can someone please explain how an EA is time-locked when you rent it from the market? Is the expiry date somehow embedded into the code when the EA is first installed, or does the MT4 client regularly check the expiry date with MQL5? What happens when you rent an EA for say 1 month... after...
Good day. I'm programming in the Editor and it keeps giving me the same error, even though everything is fine = see printscreen here. What's wrong
  Python.mqh  (1)
Does anyone have a python.mqh file in their include directory
Hello, im having a question regarding the tester and MetaTrader spread. Is the spread which you can see on the current asset in pips and the spread in the strategy tester in points? Example: MetaTrader5 Spread: 15 tester Spread at the same moment: 1.5 So do you need to divide the MT5 spread / 10 to
  Tick data in MT5  (7)
Dear all, I have written a code which is recording live tick data. However, when comparing the recorded tick data with the tick data available in the broker's MT5 (View - Symbols - Ticks), there are a little less ticks which I have recorded. Question: I am thinking about the reason, is it because
Hi, I can't figure out how to bond a CGraphics chart to a CAppDialog window so that it follows the window when it is moved. The following is a minimal code: //+------------------------------------------------------------------+ //| Chart.mq5 |
Hello everyone , I’m wondering how is possible to run python wrapper for mt5 on Mac as guidance show .exe . First I thought about recommended option to simply utilise parallel but I would need to buy Pro to utilise 12 core and 30 gpu core on M2 Max . Other option I thought to get wine with
Can you help me? This is all my code: double ma5[]; int ma5_handle= 0 ; int OnInit () { EventSetTimer ( 10 ); return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { EventKillTimer (); } void OnTimer () { string symbol= _Symbol ; ENUM_TIMEFRAMES period= PERIOD_CURRENT ;
bool GetSymbolInfoDouble( const string symbol, ENUM_SYMBOL_INFO_DOUBLE property, double &result){ if ( SymbolInfoDouble (symbol, property, result)) { return true ; } else { Print ( "Failed to retrieve symbol information for: " , EnumToString
  TradeCopier  (3)
Hello! I made a EA which copies trades between two terminals. It is all working fine but I am facing an issue. There is a difference of price for the same pair, between the two brokers. For SL and TP I send the price across, but if there is a diference in prices, then the distance between open price
I wanted to post as a seller an EA that acts as a manager. It does not open any transactions and only assists the trader in opening transactions. I sent the file before publishing to the market for verification and after verification I received an error that my robot does not open trades. Of course
Hey guys Battling with a bit of over trading so looking for a code to keep my fingers off the buy and sell button Looking for a code for Meta trader 5 that allows me to do one trade a day and/or allows me 5% risk of my account (if possible) then freezes me out in until the next day at 8:am. Happy to
Hi, a couple of days ago my Backtester suddenly stopped running and the expected running time just keeps on adding up. At first I thought it was code issue, but tested with other running code and also does not run. I do not see any issues with my account, as was the case with a previous post from
Why can I not select the Cloud agent to use and when I try to run the strategy it always defaults to a local core? Any link to documentation about this would be helpful
ENGLISH: I have a problem when trying to optimize . Before everything worked fine, but for a few weeks now, when I try to optimize an EA (my own) my PC freezes , the optimization does not continue (or takes a long time to advance because the CPU stops being used) and it is unusable (I am not
Hi, Ive made an EA that uses custom indicators and CTrade class. The problem is that the EA doesnt take all entries decpite the entry conditions being met and the entire 'trade' code block being run. Heres the code: //+------------------------------------------------------------------+ //|
Hello, get a warning "implicit conversion from 'string' to 'string'" string to number Ok number to string OK but "string to string" is complete new, i have no idea where is should start... int GetHistoryCloseTime(){ uint TotalNumberofDeals= HistoryDealsTotal (); ulong ticket= 0 ; string
i think after the new metatrader 5 update ,a new problem emerged for me : 2024.09.04 22:56:20.729 Core 04 pass 8 tested with error "no memory for ticks generating" in 0:00:00.036-after this if I don't close the mt5 I will encounter black screen. and changing data ,broker , timeframe , and robot
I have range breakout EA work very well but i have error with symbol GER30 index, The EA some times work well with this symbol but some times send very huge volume size like 1800 lots and i got error invalid volume, I need help. //+------------------------------------------------------------------+
Hi All, New to MT5, I need help retrieving the timestamp during which settlement period(The 1 hour period during which trading is closed) starts and end for xauusd. And need to retrieve using MQL5. Any help appreciate. Thanks in advance
Hi, I have a problem calculating the lot size on different symbols . In this case I present the example between the symbol US500 and USDNOK. The target risk is 0.5% of the account balance. US500 meets that risk, but USDNOK it's risking 0.05% on my tests. US500 information: Tick Size: 0.01 Tick
Hello, See the results of a Strategy testing below: If we consider Order number 2 for instance (of type "sell", and direction "in", executed at 14:00:00), how do I know to which "Out" order it is attached ?I mean, this "In" order is at some point closed by a sell position with a direction "out"
Hi there, Probably a really simple way but is there anyway to extract the result data from backtesting in MT5 into excel? I have backtested an EA over 2 years and have over 100 trades. I want to extract the buy and sell price of those trades to analysis. Any help would be much appreciated. Cheers
Hello everyone, I am currently working intensively on developing Expert Advisors and keep encountering a major issue: The Strategy Tester does not seem to take past news events into account . This results in backtests that do not reflect real market conditions, especially for strategies that are
  Open Files during backtest  (15   1 2)
Hello, when i place a file into folder files i can open this file when running or debug my expert. But when i run the backtest, the file is not found. Ok, after some research, i found the property tester_file. When i add this to my code: #property  tester_file...
There are some symbols with lots of corrupted data for historical ticks, which are badly plotted and computed in the tester with " real tick " modeling (many entry points are plotted far outside the market values). For the simpler " every tick " one, the graphics look normal, but I have low