MQL4 and MetaTrader 4 - page 83

To post a new topic, please log in or register
mar5
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 -...
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...
resident card
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...
HI, there is a function called fileisexist, but if i need it to search on a subfolder of \\files, for example \\files\\foldera, how can i do that? bool  FileIsExist(   const string  file_name,       // File name   int           common_flag=0    // Search area  - It's possible to choose subfolder for...
  spread value (4)
Hi, one question, if I have the spread value in these terms int spread_value = MarketInfo("EURUSD",MODE_SPREAD); which is the most correct way to convert 5 into 0.00005 for example?
Hello, I tried to search this topic, but I can't find anything in the forum.  My question is very simple. I'm developing an EA and I would like to store some informations in a permanent way (i.e. to prevent Mt4 crashes or pc shutdown) . I heard about GV, but my EA should works on different symbols...
  Crossover 2 MA (12   1 2)
i write a code in meta trader 4 it open orders for buy and close , i have one problem that when any order hit Take Profit or stop loss it open another order auto what i need that when order finish stop till next  crossover. i hope to help me guys.
Is it possible to get price data of an OBJ_PITCHFORK at a given bar index? I used ObjectGetValueByShift(), but it doesn't give any useful result (0). ObjectGetValueByShift's documentation says: Applied to trendlines and similar objects. A pitchfork is actually 3 parallel trend lines. So, why...
I’ve downloaded Meta 4 app onto my iphone. I can’t seem to set up more than the one main chart profile. Is it possible to set up more than one chart profile using either meta app 4 or app 5? If so how?
Hello everyone, I am quite new to MQL programming, but I am basically reading through every tutorial I can find these days. However, now that I have a version of an EA, I noticed it does not work as anticipated. Right now I have no idea why this is the case, so maybe someone can explain where I went...
Hi guys, The function works well with just one symbol but once adding the EA to more than one, the function becomes unable to select the pending order to be deleted. I can't find the problem why it doesn't work with more than one symbol. Thank you. void PODelete()         {               int...
Hi All, Completely new to MT4 and looking for some help coding a simple price cross over a moving average. Pseudocode looks like this: __________________ When CurrentPrice crosses MA(100) Start Buy function __________________ Hope you can help!
Hi, I am approaching this programming language for the first time. I currently have an indicator that generates very reliable arrows. I would like to create a strategy that can intercept these arrows. The indicator uses buffer 0 to buy and 1 to sell. I've read that i should use the iCustom function...
Hi, Looking form support from experts to get me  MTF_Stochastic Alert   Mt4 indicator modified to "all time frame MTF_Stochastic Mt4 indicator".  MTF_Stochastic Alert  Mt4 indicator is attached. Regards Rajiv (rajivrodestocks at gmail dot com)
How do you code "Allow live trading"? Thanks in advance.