Download MetaTrader 5

MQL4 and MetaTrader 4 - page 931

To post a new topic, please log in or register
Hello there. I am in the beginning stage of learning the MQL4 language but no where close to being able to program a couple of what should be simple formulas. I am in need of two indicators. The first is the difference between +DI and -DI for a 21 period timespan and calculated as a histogram. The...
i have made custom indicator. I want to check the value from my custom indicator in EA. Please tell me how to reference custom indicator in EA. my email is vical9000@gmail.com thanks.
This is making me crazy. I'm using Alpari's MT. I keep getting 130 errors. Not *always* just most of the time. See how an order worked ok at 2:25 in the example below. I had wanted to set TP and SL to 0 (ie, not set) but that didnt work. So I put an outrageously large range instead. Same...
forex ea only any ea you want to catch This is my ea blog . If somebody Interested in ea . you can visit my blog . Some intersting ea in it . that's url forexea.blog.com
I am doing a backtest run of my EA together with my indicator, the indicator alone runs properly, however, when i call the custom indicator function in the EA and backtest it an error occur for my indicator: "invalid integer number as parameter 1 for TimeToNumber function" the following is the only...
I write expert advisors. One day I met one dishonest customer. I was working on these experts about three days, and didn't get any money. So I feel free to place these experts here, in the public domain. I don't know whether they are profitable or not. I didn't test, because I'm not interested...
Hi All, Aftera few years of trading forex, and programming different indicators and EAs forMT4, I’ve noticed that 99% of the indicators and eas are working withopen/close data of the candles. IMHO, a candle is not more than the movement of the price insome period (timeframe). My problem with the...
Can anybody help, I have previously been backtesting a scalping strategy (well kind of). Before I had a stop loss of 6 points and it backtested fine. For some reason it has now stopped adding in the stop loss and take profit levels if I have anything less than an eight point stop loss. Anybody...
Here's the problem... I'm trying to build a custom indicator. I am using the Heiken Ashi indicator but it already uses up 8 buffers. I would like to put arrows on the chart where a potential trade signal will be how do I achieve this? I've tried creating a separate CI altogether and using iCustom...
Hello guys, I hope you can help me here, I am trying to convert a string (which I know represents a double) into a double. string filename = "comms/signalmt4.txt"; int file = FileOpen(filename, FILE_READ, ' '); if(file>0) { ordertype = FileReadString(file); lowrange =...
Can anyone tell what uses object imm32.dll int MT4 simulator. Or am I getting false positives from Avast before I waste a day figuring this out. I am getting a virus notification every third or forth simulator run object: imm32.dll infection Win32:Rootkit-gen [Rtk] Process: C...
Hi, Suppose I am calling a function which will need 3 variables already defined in the start-function. Is there any reason for using theese variables when calling the function to replace them with function-defined variables? For example, I have double Price, datetime Time and bool LongTrades == true...
New article Drawing Indicator's Emissions in MQL5 is published: In this article, we will consider the emission of indicators - a new approach to the market research. The calculation of emission is based on the intersection of different indicators: more and more points with different colors and...
can someone please help me? i recently downloaded the breakout panca eagle but the green area is just a thin line and not like the original. is it maybe a setting that i don't know of or is it the server (i am using the FXCM MT4 platform)
Hi! I hope that somebody can help to provide an example to use the zlib.dll for zip and unzip of files under mql4. I saw that there is a unzip32.dll in WINDOWS\SYSTEM32, but I don't understand how to use that too. Thanks!
Phy!!!!! what's up with this, The EA is a year old and undergoing some optimization. As a result I was running some of my old exit criteria and when I hit a SAR and try to close order I get the ERROR 145. No problem with this the while loop takes care of the requote BUT NO This is the strategy...
Is there any information available on how to use a set of functions in a DLL to do custom writing or paiting of the chart window? Here is what I am trying to do: I want to create graphic objects/display custom graphics using gdi32 calls such as DrawText, BitBlt etc. Is there sample code available...
hi there, there's a post which shows how to cycle trough open chart windows: https://forum.mql4.com/29660#269533 but i want to switch to a specific chart window. is this possible somehow? i've tried sending WM_MDIACTIVATE and WM_MDIMAXIMIZE but it doesn't have an effect. any ideas? thanks!
Hi, you can put these options of Forex AI_v4.0 EA in TheMasterMind3(time filter)v1.1d.mq4? Options in-Forex AI v4.0 work on ECN Broker but the original stoploss in TheMasterMind3 (time filter) v1.1d.mq4 not work on ECN Broker! I have attached the 2 Expert Advisors Thanks and Regards. extern string...
Hi, I am using this switch in my initialization function to set currency quotes for automatic lot-size calculation. Unfortunately it always returns 1.01 as in case #7. What is wrong here? --- int init() { string BaseCurrency = StringSubstr(Symbol(),0,3); string CrossCurrency =...
Make 50-500% with forex managed accounts. Email me or contact me on skype for more details. email: ikondubai@yahoo.com skype: shaijudeen1 Here is a live report of what I can do!! You can follow for as long as you like. http://4xtrader1.mt4stats.com/
In a previous post, I asked a question whether or not it was possible to test an EA that is attached to one pair but opens trades in another by using the strategy tester. Gordon referred me to a post that talked about hedge trading and it gave me an idea which I was not able to put into action. I...
I believe MT5 is just hyped. Editor in MQL5 is still alot like MQL4. I would expect GUI ide such as WYSIWYG. This feature exist in majority of programming editors.
I am pulling out what little hair I have because of this problem. Here is what is happening. I have created an "indicator" program that exports data from a chart on a tick by tick basis to a DLL that then passes it on to another program for plotting. Within the program each time I write out a bar I...
Hi, I'm relatively new to MT4, but I have some basic experience now. I'm looking into creating some DLL which I can use in my EA. However, it'd be natural for me to be able to call functions provided by either the platform (ie. AccountEquity() ), or MQL4 code from the DLL. I've googled around for...
What options does one have if their strategy is based on objects drawn on the chart? See this link: https://www.mql5.com/en/articles/1512. Quote: "Draw objects are not really set. The objects are disabled in order to accelerate the testing." So I can't backtest my strategy?
Hamming mov. av. was avaliable for TELECHART. Is it avaliable for METATRADER? See ..... http://www.mathworks.com/access/helpdesk/help/toolbox/signal/hamming.html Abilio
Dear Guys, A seemingly simple problem is bugging me. It's giving me a real headache now... I'm done for. Please help if you can... You see, when I send a trade, I usually set a colored arrow for it, which has special meaning to my trade. Now, it would be very important for me to be able to get back...
Hi, I want to draw a nice indicators of session opening times. I want to print them as rectangles at the bottom of the chart: It would look something like this: (candles above) London :...
hello. i don't understand why this EA dont work as it should. he open 1 order but never closes it, also he don't open a second order. in journal he says that the ticket in the OrderClose() function is not valid. but i close with Orderclose(orderticket().........) the idea is based on three slopes....