Hi with the below function ,i can find if a symbl synchronized and updated or not.. is there there any way to synchronized a Symbol if its not synchronized? SymbolIsSynchronized for example on my market watch i have 400 symbols, and till now i only used 5 of them ... so because regularly i use...
I have an EA, that I do not have the code for. It pops up a box with a yes or no question. Is there a way I can automate the clicking of the yes or no button
Hi When I want to get PositionOpenPrice for stoploss modification using CTrade , I have to write while(PositionSelect(symbol) == false); before PositionGetDouble(POSITION_PRICE_OPEN); otherwise EA can't get PositionOpenPriceand and so the Buy key on panel is only able to buy once not more Please
I have written an expert advisor (admittedly first attempt) which uses a canvas as well as a cAppDialog to simulate the TradeView trade visualiser and it works great. However, when removing the EA using the "Expert List" option on MT5, it also closes the chart to which the EA is bound. I am clearly
Can I make an EA in MetaEditor using python and after that to make some strategy tester in MetaTrader 5
Hello there sirs, I've run into a strange situation where my EA placed multiple orders even though I'm only alloting to perform CTrade PositionOpen if there is no open position. This is a very simplistic approach from what I'm using: void OnTick () { if ( PositionSelect ( _Symbol ) == false ) {
[Deleted]
Hello, I have this code to get the GMT in second, it give warning that I convert from datatime to int, yes, I know that. How to get rid of the warning? Can someone please help? int GetGMTinSec () { return ( TimeTradeServer ()- TimeGMT ()); }
Hi Guys, im learning the basics at the moment just scratching the surface really, i learnt python a while ago so i get the concept i have printed to the experts tab figured out the basics of variables ect i want to add some text to the chart window from what i can see this is possible am i on the
Hello! I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? Thank you
Hello, when i'm building EA sometime i get ATR/OHLC wrong values. After few attempt they start getting correct and they never becomes incorrect. I have no idea why exactly this happening. I'm guessing it happens when i change timeframe, or when EA is just attached to chart, somehow it needs to load
Hi all, I'm currently PositionInfo's pricecurrent to check my position for take profit and experiencing sever slippage will changing to symbolinfotick improves the situation? Is there any difference between these two method? if (position.PriceCurrent() - position.PriceOpen() >= tmpTP *
What i want to do: When there is a transaction request(whether it comes from a stop loss order, target price order, or EA), i need to run a function to check something.If the function returns true,i need to stop the transaction before the request has been executed. What i tried: Put my function at
How do I remove the auto trade and these blue and red arrows that appear
I have an MQL VPS server running, but it's producing no terminal or expert logs in the journals' viewer for the server
Is there an existing article or code or even an open code pinescript in which we can understand the mathematics and logics behind the concept and practical use of the so-called "currency strength" in a way possible to reproduce it in EA's or indicators
Now I need to write an EA that can trade in multiple symbols and multiple timeframes of each symbol. Preliminary ideas as follow: 1 Write only one EA, and the EA can normally place orders in multiple symbols and multi timeframes of them without interference. 2 Write one EA, which can only trade in a
Hi, I'm working to create a function to store current open position assets name and volume in multi currency pair situation. The actual value would be like this, string CurrPortAssets[] = { "AUDCAD" , "EURUSD" , "GBPJPY" , "USDCAD" }; double CurrPortLotSizes[] = { 0.1 , - 0.1 , 0.15
Ask How can Fast optimization by use small time and cheap cost? (waiting time long 95 hour calculate) and MQL5 Cloud Network cheap or not?
(11 1 2)
HI, everyone Please help to advise. My optimization too long waiting time, now MT5 agent can calculate at 27905 of 129024 steps use time feel day 20:42:52/95:44:21 time remain for 4 days (I think time 95 hour for my cpu 8 core right?) My laptop is core i7 2.8 MHz processor local 8 core agent, it
Hi to all, Let's say I started Metatrader at 6 am in the morning, but I want my EA to delay until 7 am. In MQL 4 my code was ... while (TimeHour( iTime ( "EURUSD" , PERIOD_M30 , 0 )) < 7 ); But as there is no TimeHour function in MQL 5 it gets compiler error. How can I translate it in MQL 5? Thanks
Is it possible to start a strategy tester session without a balance row on the history tab
Hello, im new on EA´s i currently have one problem, my EA seems to not be running (not displaying any comments, and suddenly on certain symbols it starts working an not on others, attached my on tick code and a picture of 12 symbols running my EA and only some have the comments and are operating
I'm asking because for what I'm doing I'm worried about overloading the memory
Can I ask for advice from you guys? Sometimes my EA has the issue of placing two consecutive duplicate orders. Initially, I thought it was an error in my code, but when I checked my trading logs, I found that the duplicated orders did not have any corresponding trade numbers, and were not recorded
Hi Pros, i confused at function - AdjustBuyProfit its a grid trading system , i was thinking to find 3 profit trade that bigger than the biggest lost trade , close it together . its was fine when number of trade it less , but when its many trade . it get confused
Hi, I want to ask about how run a code once a day and here's the code that I used. Is this a correct way to do it? void OnTimer () { int hour = 00 ; int minute = 05 ; MqlDateTime ActivationTime; TimeToStruct ( TimeCurrent (), ActivationTime); if (ActivationTime.hour == hour &&
Hello. Can someone please help with this error? input group "---- RSI ----" input int RSIPeriod = 14 ; //Period input ENUM_APPLIED_PRICE RSIPrice = PRICE_CLOSE ; //Applied price //--- input group "---- CCI ----" input int
//+------------------------------------------------------------------+ //| Expert Advisor Template.mq5 | //| | //+------------------------------------------------------------------+ // Include
void EditOperationLine() { string search = "-> #" ; // trend text to find string str_iPonti; int iPonti = ObjectsTotal ( 0 , 0 , OBJ_TREND ); for ( int i = 0 ; i < iPonti; i++) { if ( StringFind ( ObjectName ( 0 , i, 0 , OBJ_TREND ), search, 0 ) > 0 ) {
Hello I was wondering about if timezone change is reflected in backtest please. Let say I want to trade us open which is at 1pm UK time but sometime it s change to 12 noon cause of time zone change. To have an accurate backtest based on is open backdated does it take time zone change into account
I'm asking this question because when I trigger a function, it prints a variable's value twice in my logs, and there is nothing in that function that can change the variable's value, it can only read it. But sometime today, the function printed two different values for that variable even though that
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.