Download MetaTrader 5

MQL4 and MetaTrader 4 - page 616

To post a new topic, please log in or register
Hello ! I gooogled this question without much luck. I have an indicator that places text below SL & TP lines that when dragged modify the relevant values. Sometimes the text is accidentally clicked and dragged instead of the line. I am look for a means to disable the text from responding to...
Hi, I want to use "kernel32.dll" to read and write files. (from http://www.m-t-a-w.com/indicatorsandea/File%20Read%20Write.mq4) from other than the MT4-default-folders. So far so good. But now I want to define the path to the files to be read or written: #define PATH         "C...
So I was able to make a DLL just fine to work in MT. Then I expanded it to use some MySQL code so I can write some info to a database. Now the DLL doesn't seem to load. I have the MySQL dll's that it requires in the experts/library folder. Is there an issue to use a DLL that users other DLL's inside...
When backtesting, open chart, and hovering the cursor over the SL or TP symbols the little datawindow shows different data almost every time the cursor touches the symbol. See these screencaptures.
hi any budy can do heiken exspert is one candle red anader candle sell auto if one candle white anader candle auto buy if the stop profit the change colour or 10pip
Hi, I'm currently experimenting using the Chikou Span from the Ichimoku indicator and adding it to my Synergy template. I was hoping someone could advise me on how i could be notified with an arrow or something like on my chart every time Chikou Span falls below the close of the bar 26 periods...
greeting! I am trade several symbols and want to creat an funtion to count how many symbols through my trading orders . And now, I just know OrderSelect() and have no idea how to code funther .. waiting .... thanks . is it double CountSymbol(){double iSymbol=1;for(int i=OrdersTotal()-1; i>=0;...
Check This Out . A Super Fantastic Friday . Caught The Entry @ Perfect Entry http://www.mt4i.com/users/savvycool Now My A/c's Tripled "Biggest Friday" .. What Awesome Day
Hi, Im interested in parsing the text in the newsfeeds that comes into MT4's news-tab. Does anyone know if there is any built-in method or any other way to recive and handle the news in the news-tab within an EA? /Micke
Hi everyone and thank you for this great forum. I have been into forex since November 2011 and still struggling to make a profit. Recently I have started to use a simple no-indicators-strategy and it seems to work pretty well with my m5 chart for spread betting - which is tax free in my country. I...
if( OrderSelect(sticket, SELECT_BY_TICKET)==true ){         order_type=OrderType();         Alert("ticket : ",sticket," order : ",order_type," bticket : ", bticket);                       if(order_type == 1){                     OrderDelete(bticket);                     Alert("error:"...
Hi everyone I having a problem with closing my orders, it only close 1 order at the time. But i want it to close all open sell orders at the same time. Does anyone know what im doing wrong?             //+------------------------------------------------------------------+            //| Signal...
Would the popular Advanced IDE's allow highlighting of User Defined Functions and Importing mql documentations? Could a seasoned programmer recommend a good one.
Hi, I have a EA that I only want to trade once per day..... It puts a BuyStop in at a particluar level and if it doesnt get trigged by the end of a 24 hour period it expiires. If it does get triggered though, i want to ensure that my code wont put the trade on again. Normally i would just use a...
greetings need EA /indicator coding help from someone familiar with ichimoku indicator very very simple system but very reliable - only 2 indicators involved my trading system is used in live account by full time trader leave your email to my message box if keen to help serious coder only
Hi, can anybody recommend me a program for post-analysis of MT4's Statement? Interesting in diagrams, charts, tables and sortings of orders. Don't like to do it in Excel. The programs I found - only couple is cool.
good day if i opened two symbol orders,how to sum up a certain symbol orders' profit,now mmatter it is 0- or 0+ . waiting .... kindly regard .
I wanted to write an expert which sends an email signal when the body of the last candle is more than 50 pips. How can I do it? Is this a correct code? static int prevtime = 0; int start() { if (Time[0] == prevtime) { return(0); } if ((High[1] - Low[1]) > (50.0 *...
Hi, I have traded the market for 17 years and have taught TA for5 years. I have developed previous systems and sold the on the net. This is my first EA – It is a system, and when the system is correctly set up viathe variables of the set up menu, There must be a field in the set up menu which...
  post an EA (8)
Hello, I would know how to make to post an EA on the experts code base of the community site, how do? And I wonder why people are posting its, for sharing theirs losses or just for pleasure...?
Hello, i have a short question. Whats the differents between the OrderClosePrice()-function and Ask/Bid operator ? For example when i use it in the OrderClose-function: OrderClose(order_id,1,Ask,3,Red); or OrderClose(order_id,1,OrderClosePrice(),3,Red);
Is it possible If I do Quantitative calculations as an indicator and make the indicator create a spread sheet should the data be reflected the same if the idea was put into an EA. I ask because my EA results are 40% off the spreadsheet results for the same time period 2006- 2012.
Can a broker disable expert advisors? Does IsExpertEnabled() check whether the broker has enabled or disabled expert advisors? Or does it only check whether the user has enabled it in the terminal? Similarly, does IsTradeAllowed() check whether the broker has enabled or disabled trading in the...
Help coders, my EA has no trouble opening trades but doesn't close any. I suspect the trouble is in my OrderSelect loop but i can't figure out what's wrong. HELP!!!! //+------------------------------------------------------------------+            //| Signal Begin(Exit...
If you have a strategy for 1HR timeframe does it matter which broker you are using. Even though server times are different, 1 hour strategies should be able to execute on any server time correct?
What code do you use to 1) find out what the chart's current time frame is (M1,M5,M15,M30,H1,H4,D1 or MN1) 2) go 1 time frame higher: so if the chart right now is M30, use H1 in the code? This could work for every indicator, but for example with RSI, if you put it on a M30 chart, it becomes...
Hi, I have programmed the following code: double MA_Buffer[300];double RSI_on_MA[300];void CalcRSI(){int    i,limit=ArraySize(MA_Buffer);ArraySetAsSeries(MA_Buffer,true);for(i=0; i<limit; i++)   MA_Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,i);   for(i=0; i<limit; i++) {...
I'm trying to learn how to include files to my experts code of library: #property copyright "mit" #property link "" #property library int abra () { return(2); } code of ea: #property copyright "mit" #property link "" #import "mgk.mq4" int abra (); #import int init() { //---- //----...
I cannot get this array to display the values in order the first time the loop is run. It is supposed to display "0 cnt str 00" "1 cnt str 11" for the initial go round but instead it prints "0 cnt str " with no value for the arr[0] Then on the second round it seems to act as expected. I read...
How a expert can to read only last 20 history orders? Any idea?   for(int i=0; i<OrdersHistoryTotal(); i++)  {  OrderSelect(i,SELECT_BY_POS,MODE_HISTORY);  {  Do some ....  }  } Now read all history orders....
1...609610611612613614615616617618619620621622623...1225