Download MetaTrader 5

MQL4 and MetaTrader 4 - page 8

To post a new topic, please log in or register
Hi there Was compiling some code which had 'not seen light of day' for long time and [of course] got a few variable not defined errors. They were for stderr.mqh identifiers which I had modified ages ago to get length <=31. (many moons ago too, I shouted politely [hopefully;] at support rea: >31...
TheRumpledOne is now coding FREE indicators for MT4 I am having a blast!!
Hi https://www.mql5.com/en/docs/standardlibrary/datastructures/clist/clistdelete indicates the benefit of enabling the memory management flag. How can I set it so that the memory used for the deleted element is released. I could not see that in the example code. Thanks
I just started using MQL5 today on MetaTrader 4. I use the app exclusively so I have developed a EA which will push notification to my device when an order changes from a profit to a loss or vice versa. Please let me know what you think, any advice is appreciated!...
hello, We know we can get as extern variable  timeframes enumeration by t : extern ENUM_TIMEFRAMES tf; Is it also possible to get as extern variable all symbols contained in market watch ? thanks
ObjectCreate(NULL,"calc_winOutput",OBJ_EDIT,0,NULL,NULL); ObjectSetString(NULL,"calc_winOutput",OBJPROP_TEXT,"0.000"); ObjectSetInteger(NULL,"calc_winOutput",OBJPROP_BGCOLOR,clrLawnGreen); ObjectSetInteger(NULL,"calc_winOutput",OBJPROP_FONTSIZE,12); ObjectSetInteger(NULL,"calc_winOutput"...
Hi All, Im having trouble with an Auto News filter.Im sending the code - what is wrong is that after installed and no errors occur, when attached to chart generates error, but does not show error code, also the url is added to the menu....
I want to know how I can write code in my EA where I use the data delivered by one indicator (iWPR) to act as the data source for another indicator (iMA). Can anyone please assist? Will be very grateful!
Hi friends, I'm going to do a backtest on my EA using the strategy tester and simultaneously I've put my EA on a demo account to check its operation for the purpose of doing forward test. Now I'd like to analyze the operation of my EA by exporting the detail of the trades existing in the trade...
Hi Is there a way to fire an event when the user manually draws (or changes an existing) either a trend line or horizontal line on the chart? I find doing a for loop over ObjectTotal() inside the OnTick() is too much CPU effort for this task. Thanks
I want to read a csv file on internet.. currently I download it and read it from there, but is there a way to read the file from the internet without downloading it?
Hi The below code gives the error "structure have objects and cannot be copied" any suggestions on how to get it working?   class Line {   public:      string name;      double value;  };   int OnInit() {    Line lines[];   proccessAllLines(lines);      return(INIT_SUCCEEDED); }void...
I have MetaEditor version 5 build 1601. I like to have a keyboard shortcut for the Compile button instead of reaching for the mouse. Any suggestions? Thanks
hello all How to programmatically put and show an indicator on a chart.
The indicator sets a number of candles to come in favor ex: you want 3 candles of the same color and when you reach the candle 2 it opens an alert. I want to change to open an alert in place of candles of the same color alternating candles. Ex: original indicator: green - green - alert - Green *....
  Molanis Mistake Anyone? (35   1 2 3 4)
Init Rant: I made the terrible mistake of going to the Molanis forum and actually asking some questions about their product. It turns out that asking simple questions about their product, gets your post removed by the Administrator for making "commercial announcements." I thought that was...
Hi friends, I was working on an MT4 platform for a long time where I made lots of changes in its default setting such as adding new levels to the defaults levels of Fibonacci and changed the color of the fibo levels and even made changes in the MT4 toolbar such as adding some objects to the default...
I search on net Rubicon EA but didn't find.. so i develop my own... I did it with my little knowledge, if someone has good idea, please share. Steps To use: 1) Download Rubicon-Indicator.ex4 (I dont have mql4 file, i download ex4 from internet) 2) Download Rubicon-Expert.ex4 3) Place...
Hello, I faced a strange error. I'm using ontime function based EAs and recently some EAs stopped with message "cannot set timer (xxx)". As you know, ontimer function requires 'EventSetTimer(xxx) to run the function repeatively. Have you guys ever met this kinds of error? Thank you for your feedback...
This has got to be the most frustrating search ever! I am looking for a simple indicator: A moving average (where type can be selected: SMA, EMA, etc.) along with period (also an input) of the RSI, which would allow for you to specify the period of the RSI as well. For example,...
  Usefull links/threads/tools (47   1 2 3 4 5)
The thread about threads: what's going around the forum everywhere    ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread &nbsp, Suggestions for Trading System thread  After Requests & Ideas...
Hey, so this is what I have so far: void OnTick(void)  {  openedpositions=OrdersTotal();   if ((openedpositions > 0))       {    int totalorders = OrdersTotal();      for(int i=0;i<totalorders;i++) // scan all orders and positions. ..      {      OrderSelect(i, SELECT_BY_POS);   if (...
Hello. I'm beginner.  I want to give an event when Current bar is closed and create next bar. How do I know when the current bar is closed ? Thank you.
Hi This code failed to print out the price where the horizontal line is drawn, instead it is reporting 0. Any idea how to fix it?  Thanks void OnTick()  {//---int obj_total=ObjectsTotal();for(int i=0;i<obj_total;i++)   string name=ObjectName(i);        int objectType = ObjectType(name);   double p =...
Hi, I'd like to know if there's a possibility to import orders (in particular sell limit and buy limit orders) into mt4 using Excel or from an external PHP page. It will be good also through a plugin. Thanks
Hi everyone, I usually use Average True Range Histogram Color for trading. Now I want use this indicator with other symbol 's parameter in current chart. For example: My current chart is "gbpusd" symbol but Indicator window show ATR histogram of "eurusd" symbol. Or My chart is "USDJPY" but ATR...
Can anyone help with this code, it compiles and 'works', but only draws the lines when time frames are changed, #property copyright "Coded by Manic Miner"#property indicator_chart_window#property indicator_buffers 0#property indicator_plots   0input ENUM_TIMEFRAMES TimeFrame=PERIOD_M1;input...
I want to convert an EA from MT5 to MT4, the EA works best on some of the non-standard Time Frames, Is there a way to get these non standard TF data in MT4, I found in the documentation it says you can use them in offline charts only(int MQL4)... Is there a workaround for this? Thanks in advance..
Currently the MT4 tester speed slider doesn't work correctly, it is very slow until the value before last value?(31), at final value(32) it is very fast, Is there a way to get a speed in between these 2 values? Thanks in advance.. 
  How to (4)
Hello, I  am using Metatrader 4 I want to be able to do the following: If I draw some lines on a FOREX pair (let's assume we are talking about EURUSD) When I open another 3 charts of EURUSD I want the same lines to be drawn in the new charts too. How can this be accomplished ? Thanks