Download MetaTrader 5

MQL4 and MetaTrader 4 - page 40

To post a new topic, please log in or register
Hi Guys,  First time posting here, with just a quick question about how to approach coding the following into an EA I'm working on. The psuedocode is something like this: EntrySignal is true -> Open 3 positions each with their own TP & SL If position 1 hits TP1, then positions 2 and 3 modify their...
hey guys i need this ea pls make for me when time opening order , hedge all open orders (hedge on +20pips for profit ) and (hedge on -20pips for stop losing) all symbols opened and similar lotage Example : we have now one EUR/USD order , now ea waiting for -20 pip or +20pip for making hedge , and...
  EventSetTimer (4)
Hello everyone, EventSetTimer() appears to work the same sleep(). Is this correct or, can the program still in EventSetTime() run code while the time is set for a period set OnInit()?
Hello, Is it possible to modify the take profit/stop loss on mobile platforms using dragging directly on the chart? Greetings,
Anyone had this problem? Terminal.exe starts as a process but no window opens, and it can only be shut down with Task Manager. Last time this happened - complete reinstall followed by hours of setting up indicators and profiles. This time, tried deleting terminal.ini which produced a window with...
Hi, when we limit the number of bars in the chart, the Buffer stays static, with a new bar the value of array [0] not turn array[1] and is overwritten. Is there a simple way to inhibit this, or is necessary to transpose the array using ArrayCopy or copy one value by one value? Thanks
Hi guys, I wanna know how to import more history in mt4 for backtesting the oldest history as possible. Thank you.
Hi.. Below is my ReadUrl() function to read remote http sites... and works fine! But it only works with valid valid content.  If an error occurs(404, 500, etc) there is no solution so far. So i need to detect HTTP errors. Anyone have any idea on how to do this? #define READURL_BUFFER_SIZEX...
Hello,I wrote a very simple EA based on a custom indicator. Everything was perfect until i tried to change it from selecting by position to selecting by ticket, so that it can be used on multiple pairs. Now, in it's current state, it opens a new order each tick, and does not keep track of the ticket...
Hi, I have noticed that when my EA starts, by default it sets bars not candle. I would prefer have candles since the beginning automatically.  Is there a function that can help me? Regards
Hi, I know this has come up many times before but I still cannot work out a generic way to calculate the account currency swap (typically USD) for ANY symbol (whether currency, commodity, equity, etc.) See below for example code which leaves a lot of questions. Here are some: (1) why is Tick Value...
Hi everybody! Is that possible to use the data of another currency in an expert advisor? For exaple I would like to create an expert advisor which I would use for the EURUSD, but I need data for the prediction from anothor currencys? Ergo I wouldn't use the Close[i] prices of EURUSD but for examle...
Hey guys, I use a button in an indicator and I wonder if it is possible to simulate a mouseclick on a button object? I only know that the visual attributes of a button can be changed with a script but not its function. Do I miss something or is it simply not possible?
Hi I am trying to make Second-to-Second Chart. That´s all fine less that the candle formed intro each second is drawn but on the final of the second it isn´t recorded, only the close price remains. What is wrong? Could someone give a light, please?...
Hey guys, I wrote these indicators using Jim Sloman's formulas, which you can read about in his "Ocean Book". The first is call the natural moving average, based on 20 bar calculation. The second is using the natural market river formula and moving average based on the river data. Entry rules -...
  Ocean theory based indicators (581   1 2 3 4 5 ... 58 59)
In this thread Jim Sloman's "Ocean theory" based indicators will be posted. _________________________________________ PS: this thread (as it stands right now) will have about 60 indicators posted here (metatrader 4 + metatrader 5 versions) Metatrader 4 versions are completed, but because I would...
Both me and a friend are having the same problem in MT4 when using the Strategy Tester. Sometimes I test a currency pair with an EA and it works from Jan 1st, or whatever I set. But sometimes it starts from August or something else and won't load the previous history. Even if I import tick data from...
hey guys, i am not really talanted in coding but want to fill an array with information of of up/down candles. If its an up/down candle the array should be filled with 1/-1 but the else statement seems not to be filling the array correctly. Any Idea why? I don't know what i am doing wrong with the...
I just want for the EA to not execute anything when a certain condition is met (expression1) for (int i = 0; i < OrdersTotal(); i++)         {         if (!OrderSelect(i1, SELECT_BY_POS, MODE_TRADES))            {            Print("Error Selecting Order: ",...
Hello everyone, I am trying to figure out how exactly this indicator works. It appears to deal with UPPER and LOWER values. 
seeking set file for blahtech sd  indicator tested and optimized. tf h4,d1,d1 .results and reviews
  Terminator Version 4 (386   1 2 3 4 5 ... 38 39)
Hello Everyone. I am an active member of this Forum and I have take many ideas from here to be implemented in my EAs and live trading but I was thinking that I never posted anything useful in retribution of this great community, I don't like the public section too much because of the spamming going...
Does anyone know how to sort the Market Watch table by Symbol name column? I understand that it cannot be sorted by DEFAULT, but is there any indicators I can used as an alternative? (so that I can sort according to Symbol name) I'm looking for something like 'greg's Super Market Watch v5'.
  lost symbols (3)
Hi, I have lost the frame with the symbols/currencies on the left, just those, i still see the Indicators list, Advisors etc.,  I'm looking and looking but i cant find the way to make them reapper, i dont need any script just basic interface instructions, Thanks
i would like to know who is the best signal provider for mt4 that has been for a while please tell me thank you
Hi MQL community, When my EA closes a trade I want it to send me an email confirming if it was a winning or losing trade. My problem is that it keeps sending multiple emails. I'm not sure if it's a problem with my code or a broader technical issue as when I send the generic email "test", I sometimes...
I am new to ea coding but I search and learn on internet. this is my first ea and it doesn't work as I expect. It do open position as I want it to work but... I want this ea to close profit positions when the opposite signal show up example 1.signal from iCustom show arrow up and down 2. ea open...
Hello,  I have some trouble with MQL4's structures. I tried to write a code with structure and I took as example the following: https://docs.mql4.com/basis/operations/other#operation_dot   struct SessionTime     {      string...