MQL4 and MetaTrader 4 - page 1213

To post a new topic, please log in or register
Re: moving average expert advisor sample supplied with mql4 LotsOptimized () is used in OrderSend functions but not defined as to how to calculate LotsOptimized is not in the help dictionary What am I missing? I am not sure why the file compiles without error. Rudy double LotsOptimized() {...
I tested the COM dlls and the ACTIVEX DLLs,failed! and i am now testing dlls made by the VC++? can sombody tell what kind of DLLs can be imported into the MQL? which IDE shoud i use to make this dlls? thanks!
Hi to all, this is my first topic and post and I'm here because I'm learning. I have a question for the community hoping that you can help me. I've created an EA that when receive signals, should open some position. For example, if I receive a signal of BUY on EUR/USD, my EA should open 3 orders...
Hi, I am not receiving any emails either from the forum, i.e. the threads I subscribed to, or the newsletter. Did you disable the feature? Sincerely, Daniel.
Older than 2008. Where can I find it and are there easy to follow directions for a non programmer? douglasjmorgans@yahoo.com
Hello, I'v sent data to a file through the following code, int deinit() { //---- int handle; string name = AccountNumber()+Symbol(); handle=FileOpen(name, FILE_CSV|FILE_WRITE, ';'); if(handle>0) { FileWrite(handle, l, s, InitialShort); FileClose(handle); }...
New article Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization (Cont.) is published: In this article the author continues to analyze implementationalgorithms of simplest trading systems and introduces recording ofoptimization results in backtesting into one...
  Holy grail exists? (14   1 2)
Hello all, I am a beginner in MQL, but I just have one question to start. Is there such thing as profitable EA, aka Holy Grail ? I am trying to find some motivations before starting to work on it.
Hi, Please help me to find out why these codes get "too many opened files" error. ...     for (Counter=0;Counter<OrdersTotal();Counter++)     { OrderSelect(Counter, SELECT_BY_POS, MODE_TRADES);       if (OrderOpenTime()>New_Order_Time)        {...
Hi there, I'm having trouble with my EA while live testing. I've placed an EA on a demo account for live testing. The thing is that I had to change a couple of things in it while the EA was working and when I compiled it the EA ignored the existing data. For ie I had 5 pending orders and 5 was the...
  Common Expert (3)
i have a 4 metatrader Platfrom(sample fxdd,fxcm...). i want to common directory (expert,script,indikator ...). How do common directory. example 1. programfiles\fxdd\expert 2. programfiles\fxcm\expert 3. programfiles\interbankfx\expert i wan to a expert path programfiles\commonexpert...
Hello, I am looking for some help to fix an indicator. Basically the problem I have is that the "Fisher" indicator onthe bottom of the attached zip file does not update very well when it is left to run. If you switch to another chart timeframe then go back it updates the Indicator all right. All the...
Hello, Can someone tell me how can I export historical data from Meta Trader 4 to a file? I just need a simple script/function that get a symbol-name, timeframe, start-date, end-date and outputs the data to a new file in some readable format. Thanks
I know this is a stupid question, but I'm really new at this. I apologize in advance for being dumb. My automatic trading program issued a buy about two hours before the broker closed down for the weekend (at least I think that's what happened). Do I have to keep my computer on all weekend with...
Can someone tell me how to code for a certain start time for placing orders, but not have stop time for closing. I want to stop out only at profit target, or stop loss, Thanks
  ru translate (3)
mainLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_MAIN,a); prevMainLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_MAIN,a+1); signalLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,a); prevSignalLine=iStochastic(0,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,a+1); if(prevMainLine<prevSignalLine...
Hello, Friends, I accidentally (don't know how) deleted the Alligator indicator and can't figure out how to get it back. Can you help me? Thanks . . . dragonmom
Hi All I have an expert which reads data from a external file and executes trades based on the information inside this file, I don't want my expert to open and read this file on every tick. does anyone know how to use any windows DLL ( likes shell32.dll or kernel32.dll) to query the last...
Hi, I found one very nice indicator on the Internet. However I have no .mq4 sources of it, so I don't know exectly how it calculates the data... I want to write EA, which will trade according to this indicator. How can I access the data of the indicator from source code of my AE? To answer my...
Does someone know where I can get code to add an expiration date to my EA? Thanks.
Hi Every One Please I need set of codes to be used in a script that will place multiple orders
Would anyone know if there is any existing script/EA which can enter a batch of 'at market' orders all in one go? As the 16 crosses do not change there would only be 2 variables per symbol - * long/short * order size (which may be the same for all symbols) Doing this by hand takes forever! Any...
Dear MQL4 Admin, I have plan to write a book for MT4 and MQL4 tutorial in Indonesian and publish it in my country. The content will be : 1. How to use MetaTrader4, with pictures. 2. How to create an Indicator, Script and Expert Advisor. 3. Reference - MQL4 Functions. I can guarantee that the content...
New article A Non-Trading EA Testing Indicators is published: All indicators can be divided into two groups: static indicators, thedisplaying of which, once shown, always remains the same in history anddoes not change with new incoming quotes, and dynamic indicators thatdisplay their status for the...
I'd like to start making my own fucntions to cut down on the size of my programs.  I found some good information on how to make a function that will be called from the same file, but no info on how to call a function that is located in a seperate file.  Can I call a seperate .mq4 file for this,...
Hi, I had written a scripts to run at a fix interval (say execute every 5sec), and I sometimes I may need to change the external parameter for the script. It seems to me that it is not allowed to recall the window for the external parameters after the script is launched. For EA, we can press F7 to...
What is the code to calculate the lowest margin and the highest margin on which date and time tht it occur? It should display something like example below on the chart: Lowest margin: ??% on 01.02.2008 Highest margin: ??% on 01.05.2008
This newbie is new to this program however not new to Forex. I have tried and tried with no luck to get the program to recognize my FAPS as Activated. I called the Customer Service Number Yesterday during the open times and left a message however have not heard back. Does anyone know how to get...
Hi My EA works per MA direction, but I want my trade trade only 1 time when MA in one direction before next changing direction of MA. I do not know how to stop issue new order after 1 closed oder. I write a program as below, but it does not work! Is anyone can help? bool iftrade2=true; int count=0;...
Hi all, I wrote this last night, but somehow it failed to post I think, so excuse me if this turns up twice somewhere. I am not new to the Forex, but am relatively new to Automated Trading, what I need to do is automate a few trading strategies that I have developed over the last 6-7 months that to...