MQL4 and MetaTrader 4 - page 219

We would like to find someone who can add Trailing Start Trailing Stop Trailing Step to our EA. Then we will share for free in the store. PM me if your interested
Hello friends, Please take a look at this: BuyOrder= OrderSend ( Symbol (),OP_BUY,LotSize,Ask,Slippage, 0 , 0 , NULL ,MagicA, 0 , clrBlue ); if (BuyOrder!=- 1 ) { Print ( " Buy Opened " ); } . . . if ( OrderSelect (BuyOrder,SELECT_BY_TICKET)== true ) if
Hello i have a number of accounts in the same broker, in each acount i follow diffirent strategy is there any way to nickname them in order to personal identify (in metatrade) to which account to login for each action ? thanx Christos
  How do I do it?  (3)
how can i make an Expert advisor whos able to take signals from my telegram and trade it automatically
Hi all: I have used an EA to manage some positions in my account. This was with MT4 on a somewhat older computer. I have now installed MT4 on a newer computer. My question is, after I download and install the same EA on this new computer, is it going to be able to recognize the positions that it has
The function will parse arrays in a certain way, but they are dynamic and can be of different size all the time. Please let me know if function declaration will work as follows: double myFunction ( double dataPoints[]); Thank you
Hi All I hope you are well and safe. Could you please help me to delete an item from a multidimensional array? For example how can I delete the first range of in_matrix below? ---------------------------------------------------------- vector<CArrayInt*> int_matrix; for(int i=0;i<10;i++){
Hi, my MT4 crashed while I was testing my EA. My script had to call another script which I already successfully tested. Now when I restarted it , I lost my settings and default folder also changed. Please suggest why it may have crashed and how to change default folder in MT4.. regards
Hi all I would like to sort 8 global variables that are constantly updated. I have read ArraySort() fuction... but I can't figure it out. //////////////// GLOBAL VAR //////////////////////// int GV_TOTAL_ASSET_AUD = GlobalVariableGet("GV_TOTAL_ASSET_AUD"); int GV_TOTAL_ASSET_CAD =...
Hi, I am developing EA, and since yesterday debuger watch doesn't work for me. It shows weird values or "<not implemented for type XY>" for each variable (screen attached). EA run correctly and everythink is working, just I cant see variable values. Only debugging on historical data doesn't work
Hi! I am trying to code a Awesome Oscillator that works on different timeframes. So for example the chart is a 30min timeframe, but the indicator works on a 5min timeframe. This is available on the trading view Awesome Oscillator, but I can't figure out how to code it. When you add or change the
Hello, I have to connect my EA to a remote database using library LibmySQL.dll and mql4-mysql.mqh, but, when i change timeframe on the chart with the EA, my MT4 platform stop working. Does anyone know how to solve it? or ever encountered this problem
[Deleted]
Hello to all professors With this code, I get the last selling position How do I change the code to get the first position? //+------------------------------------------------------------------+ double FindLastSellPrice() { double oldorderopenprice= 0 ; int oldticketnumber; double unused= 0
I need to monitor multiple account balances (and open positions) on one application. The accounts are from metatrader brokers, and the brokers are different. (It's not monitoring multiple accounts from same broker but different brokers) Also, I don't need to be able to execute trades from this...
<soapbox> I bet you thought I had one of those...well I wish I did. I'm posting this to encourage anyone who has the capability to write a standalone tester w/ genetic optimizer to do so and sell it to the community!! I would prefer it be open source, but I know thats not going to happen....
Hello, I'm trying to integrate an image (bmp) in my mt4 tool, I have copied / pasted the code from the link below, but it does not work ... How to do it please? thank you in advance Link : https://docs.mql4.com/constants/objectconstants/enum_object/obj_bitmap
Hello, I do need to determine the start of the Asian Session (Tokyo) within my EA without using the brokers server time or any kind of online-check by connecting to a server. Most of the time the Asian Session (Tokyo) is at 00:00 at the brokers server time (for example: Global Prime, IC Markets
[Deleted]
Hello, I have this error in Journal: Notifications: failed sent request [0] notify.mql5.net:443 failed My notification goes out some of the time, some of the time not. Is there something I can set to make sure every notification goes out? Or is it a MQL server issue
Not sure what the problem is hoping another set of eyes will help. Thanks //+------------------------------------------------------------------+ //| FRIDAY.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //|
hi there ‌‌I am noticing that ChartScreenShot() is saving the files as empty (i.e. zero byte files), anyone noticing a similar result ? ChartScreenShot () function returns true btw and I am using the latest build of 1052. I am using the following code : int OnStart(){      long chartid;...
Hello, Is there anyway i can see/convert my Mt4 Account History trades times in local time? Broker server: ICMarkets Live-19 Thank you
limit = rates_total-prev_calculated // so this should mean that limit equal to total number of bars - the already calculated bars by the indicator why limit will be incremented by 1
I have forum-searched & Googled this but there is not much out there :( Looking at this 'Ask' we can have n copies of the application on each computer... but how do we start them easily on reboot to connect and start operations? Command lines in shortcuts or batch files in the Startup folder (of XP)...
Hi, a very strange thing happened to me. I always have access to my mql5 account through the metatrader 4, I also bought some products from the market I was using, but since this morning I can no longer log in so much so that even if I have renewed the products I cannot use them (the trial version
  Counting Orders  (4)
I ma trying to count how many pending BUY/SELL stop orders are at any given point. The code I am trying is below, but at the moment it counts nothing. Any ideas about what is it going on, or a different way to do it? Thanks. intOpenBuyOrders=0,OpenSellOrders=0; //Count Pending Stop Orders   for(int...
I am trying to understand how an EA gets data from a custom indicator. So I wrote a very simple example, but and I feel I understand it, but my EA says it get 16.1,0.0 but I am expecting 16.1,16.2. Where am I going wrong? Indicator code: input int TestInput; double test0[] = { 0 }; double test1[] =
Can anyone help in which pivot needs to be installed on MT$ under MQL5. I'm trying to installed that are open source on internet. However, I'm unable to do it
The MetaTrader 4 platform update will be released on Thursday , November 26, 2020. This version provides error fixes and platform stability improvements. The new build will be available through the Live Update system
How to get the maximum number of open positions of broker's limit, not the number of Lots. I don't know using which function . Thanks in advance
Hello, I need help on combining two indicator which serves the same purpose (to change between symbols). The only difference is one will read the symbols listed in Market Watch as the source and another one needed to be set manually every pair that need to be view. I want to combine the source of