Expert Advisors and Automated Trading - page 20

I create an inherited class from class CSymbolInfo. I overwrite the Name( const string name ) method, not the Name( void ) method. Than I call the Name( void ) method in the script and it says (warning) "deprecated behavior, hidden method calling will be disabled in a future MQL compiler version" at
Hello! I write into a file with mql5 script #property strict #define FILE_NAME "test.bin" //+------------------------------------------------------------------+ //| Script program start function |
  Chromebook EA  (2)
I am trying to run an ea on my chromebook, its OS is chrome so it can't handle it, any advice? i want to set up a vps too
Hi all How can I send email to an email address in MQL5
I work with Python and an MT5 terminal and it works correctly. I want to expand to 3 terminals with different accounts (3 accounts too) and I don't see the way. I have tried to solve it with a connection to a portable terminal and it gives me an error. path = "F:\MT5 Portable\terminal64.exe" modo
Hi, I´m writing my first Expert Advisor and I have a Problem I can´t solve. My Code looks like this: #include <Arrays\ArrayDouble.mqh> CArrayDouble *test; //This for example does work #include "Class1.mq5" //Contains class MyTrade MyTrade *example; //This
Hi! I am trading binary options and need to optimize for just one goal: Win Rate (%). Nothing else matters. Has anyone created a custom optimization criteria for this, or would be willing to show me how to add this to my EA? Thanks 😊
Hi, Please enlighten my path! I am writing a class to find values of manually drawn trendlines on the chart. However at compiling this class (and the EA ) the toolbox throws an error: deprecated behavior, hidden method calling will be disabled in a future MQL compiler version RateImp.mqh 17 21 Line
Mine journal 2021.09.01 14:56:56.252 MQL4 Market: failed download product 'TripleH' [403] 2021.09.01 14:56:47.829 MQL5.chats: activated for 'YouuncleBob' 2021.09.01 14:56:47.742 MQL5.community: activated for 'YouuncleBob', balance: 0.00 1. I've already making sure that my Microsoft Edge is the
Hi all, I've scoured the forums for days but am unable to find a solution to this. Im trying to make an EA which will place a buystop on gold ( with no TP or SL ). MqlTick latestAsk; SymbolInfoTick (symbol, latestAsk); logger. log ( "Latest Ask price
I want to backtest my EA but the platform does not give me the historical data that I need, it only provides me 4 months. Is there any way to fix this problem
Hi! A script I coded successfully compiles without any errors but won't submit a trade in the strategy tester , and my print function doesn't return a value, I am stuck is there any advice that could be given on what the next steps would be in order to start the debugging process? Thank you
Hello, beginner here. I have an EA that triggers OnTick using last bar values (shift[1]) and I have a question. Why my live demo generates more trades or why my OHLC backtest generates less trades? Now, I understand, that if PT or SL gets filled, your entry conditions can reset and you can
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 | //|
Hello, I just download the official Metatrader 5. When I coded, I received the error: 'PositionSelectByIndex' - undeclared identifier In the file Trade.mqh, I don't see any reference to the PositionSelectByIndex. I'm using a pure MQL5 environment, in windows software. And I don't install MT4 in my
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
Hi fellow dev! I stumble apon something quiet disturbing concerning the strategy tester. I test the same EA with the same parameters twice. First test was with visual mode and the second was without visual mode. Both result where completely different. I made an hypothesis, since my strategy use
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