Download MetaTrader 5

MQL4 and MetaTrader 4 - page 299

To post a new topic, please log in or register
Following code works fine in old builds but not in 600+ builds. In new builds it only passes and get back first letter of the strings. Any one here to tell how to fix this for new builds?? #import "GlobalVariable.dll"   int GV_SetNamedString(string StrName, string StrValue);   string...
Please, i need someone to help me to modify the attached indicator to show Support and Resistance like the below chart instead of arrow. Thanks
Good night everyone, I am trying something interesting with Zig Zag indicator but I have a little doubt. We all know ZigZag repaints to adapt to new price values and cannot be used for signaling, right? I am trying to build an indicator that can show me all those points signaled by Zig Zag in the...
I was wondering if there was a method to save inputs for indicator ex4s.  Expert Advisors there is no problem to save the settings [.set] file, but the indicator input screen does not have this.  using mt4 build 670.  This is annoying because some indicators have long inputs that could be loaded via...
Can i make an expert advisor based on the indicators which are on the tab 'insert' , Fibonacci, Gann, in the MT4 platform?  I can't find these indicators in any folder of the platform so i was wondering if i can make an EA out of the indicators.   Ed 
I don't know if this is standard procedure and the test can't use stop losses, but I found no way to use them in the strategy tester. I tried both the following code, but the stop loss get's completely ignored: int slippage = 10;double stoploss = 0.0001;int MagicNumber = 123;ticket =...
hello, i'm trying to convert old HMA code to new one. it is working in old version without problem. under build 610, it gives error: array out of range. i'm not familiar with indicators. what is basic difference between old and new indicators and buffers? is indexing changed? //---- indicator...
Hi all, I am trying to use a dual MA crossover indicator  ( IINWMARROWS.mq4  found in internet) which just displays arrows when a crossing of the two selectedMA's takes place in RENKO charts. It works ok most of the times but all of a suidden sometimes I get some extra arrows in the last candles...
  Corrupt data (4)
Good day all. Today my LQDMarkets-Demo was showing corrupt data on 4 cfd's - ym, #z, #fdax, #fce, #cl Screenshot here http://screencast.com/t/DUwz6ZhINGn - all 5 being similar. I tried deleting the corresponding files in  \history\LQDMarkets-Demo but it didn't help.  Any suggestions? 
how to prevent order opening if pullback candles occur? TF = H1
Hi,  Is it possible to remove a manual trailing stop [originally created by right-clicking on a pending order and adding a trailing stop] in EA code? Any assistance would be appreciated.  Thanks, Neil 
hi please help me i want get crossover moving average with price apply and rsi , please note I do not want use previous indicator data i want use price data for moving average. can do it? or not? Tanks you :) 
Hello friends... Recently  after long absence in coding I read that the new MQL4 extends fully from MQL5 and now it inherits full functionality of MQL5 and resembles C++, of course now it has OOP concept and leave the old procedural way. As a programmer I was happy when heard this news,...
Hello,that's a lot of time I don't write here! I need help from you. I'm trying to interface Matlab and MT4 and I tried many solutions without results. No problems about MT4-Matlab direction because Matlab reads very well CSV format made by MT4, but I can't import files of any kind in MT4. If I use...
Some of the indicators repaint and always need to refresh to get the result. How to make the MT4 auto refresh itself?
Can enumeration be used in MQL4? I'd like to have input parameters where an input is Moving Average Method and the user has a choice of Simple, Exponential, etc instead of having to input 0, 1, etc. Is that possible? Thanks, Paul
Hello, sorry for my bad english To continue learning MQL4, I wrote this simple code. There is a detecting 2 Moving Average crossings. This code works correctly , but I'm open to constructive criticism to learn and improve Thank you for your comments...
Hi! 1.At a certain point of calculation when I have a number like this(i.e) -> 3.647 remaining, I need to remove(subtract) 3 so I would have 0.647 for further calculations. Also I do not know which whole number it would be. 2.How do I get these 3 digits from a price reading ,i.e:    0.87130   How do...
i want to get current computer's ip address.. plz tel me any ideas regarding that..
This question just suddenly strike my mind cause' I don't have a VPS yet .  Will EA still be running during sleep/hibernate mode on for laptop/desktop ? ( Assumed MT4 platform is not closed )
Hi all my friends, I want to know whether it is possible to control an indicator, which you've sold, remotely or not? Suppose that you've developed an indicator and you sold it, now you want to deactivate it through internet and remotely in order to make it impossible to work afterwards. or you want...
Hi I've not been able to find out how to force discarding a tester optimization pass when I consider that it is not significant and should not be outputed on the optimization graph. Something like a function to directly continue with the next optimization pass, or to discard the pass from OnTester...
Hi guys, I'm new to the forum,Actually i'm new to trading, and :) i'm not a programmer. Nice to meet you!  I was hoping that someone can help me with a problem i have in my code. I added comments as much as possible. This function is suppose to close orders  as i don't want to do it with stop loss...
I did not manage to open a year old (resting) MT4 terminal installation. It opens but terminates a second later, however the log shows activity for 19 seconds.  It makes me not much harm, but obviously something failed with the (MQ weird) update. Is there any reason launching the build 500 ends in...
Check Out Here: http://tr.im/5pjjk Binary Matrix Pro - How We Can Make Over $40,000 In Less Then 8 Weeks WithBinary Matrix Pro (FREE) Watch The Video Above, And SEE HOW Binary Matrix Pro Makes An Average Of $106Profit Per Hour (Trading 40 Minutes) On Our Account And That Of Over 6,300Users. On...
I have attached two different EA on same Symbol.Now when I allow autotrading to them orders are executed immediately like buy-buy-buy-buy non-stop one behind another.But when One of chart is closed the EA runs pefectly.They are two different stratergies that I want to run on EUR/USD.But I am unable...
Function :  bool  OrderCloseBy(   int        ticket,      // ticket to close   int        opposite,    // opposite ticket   color      arrow_color  // color   );   What is the opposite id i need and how can i get these to close the order ? Or mean that the OrderMagicNumber() ?    Ty for coming help...
Hi, I like to work and use multi-paires & multi ut "Screening" Indicator. i would like this indicator to change itself Symbol() and Period() in Main Windows to focus a spécial event according to computations... so i'll need 2 News Commands : ( for futur release if many people think this, or also...
I have an EA open or a number of charts. It has always been the case that when I make a change to the code (for example a new default value of an input parameter) and compile, all open charts/EA:s will re-initialize. However, since the upgrade this seems to be a bit random. Right now I am running...
MT4 has full of bugs  and  here is some of it :  https://www.forex-tsd.com/metatrader-4/32924-metatrader-known-bugs-46.html#post692376