MQL4 and MetaTrader 4 - page 924

To post a new topic, please log in or register
  Session Highs (1)
Hi. My first post and new to mql4. Basically I'm trying to find the session high since the open of the current session (whether Asian, London, New York). Seems easy enough. The only problem is I'm trying to find the values over a range of currencies (GBPUSD, GBPEUR, GBPCHF etc ...) each to be...
Hello friends this is checkmail and was going through google searching some good strategy and indicators for mt4 platform. And found a few Indicators, that description is good to believe in it, but they are not avail to download even to its normal members.In...
Hi, I'm trying to get the EA to trade only when the MACD main line minus signal line value exceed certain value. Would the following code be correct? Thanks! macd_main-macd_signal>0.0010
Dear MT4 Guru I have a for loop and I would like to create a Legend for the currency pair, that will having the same color of the line that set in the properties So, my proposal is to retrieved from ObjectGet (...OBJPROP_COLOR) dynamically, and later use ObjectSet to set it to the legend text....
Hi all, how are you doing? I have this indicator I made to show all 12 lines of the high, median, and low of all timeframes. See image. The problem is that when more than 1 timeframe has a price that is the same, we lose the ability to determine which timeframe is on that same price. I have tried...
Hi, I've been system trading futures using a daily system (TradingBlox) for a few years - and it is very reliable and consistent. By contrast, I've just finalised a system for forex in MQL4 - & I find that each time I run a back test on 2 years of offline historic H1 data, I can get wildly different...
How should the line be if i want to say: If Bar1 >= 0 and Bar1 <= 0.0004 - just an example I have tried with this but it doesn't work. Compile error if (Bar1 > 0 || Bar1 == 0) && (Bar1 < 0.0004 || Bar1 == 0.0004) Have tried this as well but same problem. Compile error if Bar1 >= 0 && Bar1 <=0.0004...
Hi, I'm not a programmer, so be gentle. I'm trying to close out trades when conditions are met, so: if (A < B) - in this case close out BuyTrades till A is no longer less than B. But the thing runs away and closes as many trades as it wants to or can - so it overshoot my targets and I get nuked....
I would like to request the following items be incorporated into MT products. 1. Price Per Point value - in the event the coder wants to know on the fly how much it would cost on a particular chart from a particular vendor given the client currency and the charts currency. So a function...
using normalizedouble on eg: 0.667 to 2 places gives 0.67 is there a simple way to always ensure that round down occurs? other than writing a function with value and decimal places actuals eg; fred(double d,int digits) if used 'fred' maybe is like this: a = fred(0.667,3); and fred does:...
I want to learn more 'bout MQL I have searched for some book to give me more clear instruction . I am not sure Is there any of them or not? what I have found here the maunual in this website is quite clear but, I had no basic of Programing. a day I found this book : Expert Advisor Programing...
Hi, I have 2 pending orders, a buy_stop in price a, and a sell_stop in price b. I want each one of pending orders automatically closes when another one executes. I mean buy_stop pending order closes automatically when sell_stop pending order executes, and vice versa. how can I do it in mq4? Thanks...
Im looking for a copy of this seemingly difficult old classic. Would there be any available PDF's floating here, I would appreciate this help. Randy
it is my first ea, it works on the back testing but does not work on live. why any suggestions? it's make money on the back teting i hope it will do the same at the reall market thank yall...
Is there any way to create a custom HTML document from within an indicator or EA?
Hi, Is it possible to code multi currency indicator? I tried iClose but it returns 0 for all currencies except the one the indicator attached to. Whats the proper way to do it? Thanks!
My EA didn't send Buy order and can't run on Demo, but backtesting is okay... Why? Please help Here is code //+------------------------------------------------------------------+ //| MACDSingle order.mq4 | //| Copyright ฉ 2010,...
Hi all Error code 149 ("Hedge is prohibited") that is returned to a client at the attempt to open an opposite position to an existing one if hedging is prohibited But you need to try ordersend to know if it's ok or not ! How to know that in tne init() of an EA for example ? thanks
I have an idea in my mind that i wish to test out,am wondering if anyone would be willing to help me out with it. I wish to call upon ATR period 14 function,if the open - closing of the candlestick is greater than the ATR value(doesn't matter it's going up or going down,as long as the absolute value...
MT4 shows its own tab on task bar. how to not show this tab on task bar. thank you Mr. Koboi
I am trying to follow instructions to make MetaTrader4 compatible with my Mac Book Pro laptop, but I can't seem to find the programme(quartz-wm) on TWO MAC INSTALLaTION DISKS to start the process. The term quartz-wm doesn't seem to appear anywhere in their list of items on either disks. How do I...
hello, I try to login metatrader 4 with my trader password but it says public key is not found. I can login with my investor password but could not trade. How can I fix this problem? Although it is a demo account I really need to use it. Thank you very much...
I have a job for a programmer to write an EA based solely on the Awesome Oscillator. Any takers? I would need to know your experience and an estimate for the job after I've given you the details.
Hi, In a theoretical situation: In a 1min bar, no activity occurs. The next bar opens. Even though no tick has occured, does the start()? function run when the new bar opens? This is important in programming forme.
I'm having trouble converting the RSI indicator to Python. The main difference between my function and the RSI indicator is that my function is called everytime a new line of a history data file is appended to totalArray (nested list with values [datetime,o,h,l,c,v]). I can't seem to pinpoint the...
just started to learn and experiment with mql. here is the problem, for example i put onto charts lets say Moving Average and other indicators and my EA how can i find out through my expert advisor what is current MA price, or any other param of any other indicator? i could copy paste source code...
Many times I lose connection with my broker. I dont know when extern variables are loaded into PC MEMORY. What are differences between EXTERN VARIABLE and VARIABLE initalized under init() function ? I would like to know when the SETTINGs of EXTERN VARIABLEs are SETS and RESETS ? When I restart the...
The simple answer is to ask... I have and my enquiries get 'lost' So I come here where the pro's are ;) In a nutshell, I do not wish to mix history data from more than one source... Would like to use terminals history center's download button. A 'Download Warning' msg states: As I understand it,...
Hello friends this is checkmail and am a bit less experienced in the mql4 language, so want help in form of an EA. Am having some awesome indicators that works well for me till now, so now want to create an EA based on it. Though there are many complex indicators, I want to try an simple indicator...
hi this may be a silly question, but i have loaded 10 yrs worth of data into metatrader and each time i want to view older dates e.g. 2003, i am having to scroll all the to 2003. But im almost certain that some bright spark metatrader developer would have already thoguht about this and provided a...