Download MetaTrader 5

MQL4 and MetaTrader 4 - page 30

To post a new topic, please log in or register
Can someone help me with a repaint indicator? Thanks
Hi I know how to use Indicators in EA ,  But I want to have the indicator on the chart Also . is there any function for loading indicators to the chart automatically ?
Hey, is there a way I can show my indicators -during- the backtest, because they don't show up until after the test is complete. I'd like to see the moving average, or MACD in real time as I'm watching the backtest unfold, so I can actually see if my EA is placing orders in the right spots...
I am still looking for a script to reverse a placed order. Anyone with it would most appreicated....
To get the point value per lot in deposit currency for any instrument i am using:       double pointValue = MarketInfo(Symbol(), MODE_TICKVALUE); However, for DAX30 on Alpari value is 10 times smaller then the one you get when you open a position. As Alpari support claims everything is OK, i tried...
Hello, I'm trying to recover the last open order on Metatrader and write into a file. I'm getting this error: Expression has no effect, expression of 'void' type is illegal. Could someone give a me help here? Thanks for your help! CODE: int OnInit()   {//---   Alert("WatchBOT initiated.");//---...
A timer within a EA that loads all watch symbols and supposed to weeds out the ones I dont want: Sorts the List and displays the data    list.Sort(sortVar);   posY++;   list.displayData(var,posY,sortVar); the timer void:...
Hi all, What is the best way to keep track of currency correlation. I found a couple of websites that give you correlation percentages but I don't want to see there all the pairs in the world. I would like to have the ability to choose which pairs to show(all at once) and have the information live....
I've made a very simple EA on ForexAdvisory.com I have very little to no knowledge of it and couldn't find any information on Google. Any help is appreciated. Thanks!
Hello, I dragged my TimeFrames toolbar out of its line in the toolbars bar, now it is a disattached box in my screen like in the picture. I tried deleting it, moving it, closing many times the MT4platform, I got like 6 hours trying. I need help. I don't know what else to do. Thank you
Dear All, Goodday. In the attached chart, I clicked on the Eurusd chart (on right side) and it becomes the active chart window. We can see some changes in the color of the chart window tab but it is not obvious. I wonder if it is possible to change the color of active chart window to make it more...
I am trying to build a 1d array that can take in 2d array as index and return another 2d array with the contend of 1d array: C1dArray<int> labels = {10,11};C2dArray<int> index = {{0,1,1,0},{1,0,0,1}};labels[index] will return {{10,11,11,10},{11,10,10,11}} 3 sample files are attached that will...
Is there a method to programatically exit an expert advisor?
Hello, I have an indicator which works fine but it draws fib lines and to get the fib values in my EA I am using ObjectGetDouble. This makes backtesting painfully slow since it has to draw the object every time. After many failed attempts at changing the EA and using another way in the EA to grab...
Hello How do I get a script running on Mt4 supports an android system. It is converted from the windows system to the Android system
Hi, Please anyone can give me the example mq4 code for making arrow alert when 2 indicators completed the rule or when 2 indicators have the same signal? Below is the screenshot of 2 indicators completed the rules or go with the same signal and the indicators files.
Hi  I'm trying to write a simple log file (txt) with the list of extern variables (name and value) that I'm using in an expert advisor. I want to write a code that can works with different EA, takes the list of variables, cycles them and writes in a csv file. A sort of: for (int  v = 0, v <...
Hi I want to use iCustom function in my EA so at first I need to know what it returns . as today is Sunday I am using strategy tester. I wrote an Alert() to see what is coming out from indicator. and I saw this unusual fonts , how can I solve fonts problem ?
Hello everyone, Code below.    CurrentSymbol     = SymbolName       (Next_Symbol,TRUE);   CurrentSymbolLow  = iLow             (CurrentSymbol,TIMEFRAME,0);   CurrentSymbolHigh = iHigh            (CurrentSymbol,TIMEFRAME,0);   Spread            = MarketInfo       (CurrentSymbol,MODE_SPREAD);...
i am using EA, and i added Moving Average Indicator, now the applied price shows only PRICE_CLOSE to PRICE_WEIGHTED, but "Previous Indicator's data" is not available in the "stdlib". but it is available in metatrader. How to bring this to EA??...can anyone help me sort this out??....thanks in...
Hi... i am looking at documentation of CryptEncode function and there are a good example code... there are a function ArrayToEx that converts a uchar array to a Hexadecimal string... using StringFormat and "%.2X" as the output parameter. Well, i need to know how to do the opposite: Fill an uchar...
A dignified old software MT4, even without HLC Bar, really silent. Programming can not be achieved? If it can not be achieved, your garbage MT4 is simply too shame! Other trading software can be programmed to achieve the HLC Bar!
Hi  would like to know if with switch function i can use a range instead of a precise value switch(i)     {      case 1:         res=i;break;      default:         res="default";break;      case 2:         res=i;break;      case 3:         res=i;break;     }   Print(res); like this switch(i)...
I have an EA I have been customizing using the Ichimoku and I feel like I need to get some community help for back testing and such. I was looking for an Ichimoku EA to use as a base and found the one on the earnforex website; the Ichimoku Chinkou Cross. It looked promising as it was very well...
My trend lines or other objects for that matter don't save each time I create them manually on the chat, close the window and open the window again. What could be the cause?
hi, i got a broker called flatex for my forex trading in combination with mt4. i also copied a trade from mql5.com. the copying doesnt really work well so i asked the service desk who told me that by rule the brokers of me and the signal should be the same. does anyone here habe flatex? i cant find...
  Traders joking, the beginning (7304   1 2 3 4 5 ... 730 731)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
Hello, I need some help please, I have an indicator,which it create an object on the chart,which in the parameters it has a time value like this: 2017.09.20 12:00 1.I want to save in a variable the current date and time,which it will have value like this too:2017.09.19 17:00 Then i want to compare...