MQL4 and MetaTrader 4 - page 748

To post a new topic, please log in or register
Need help with the code below, its a simple code meant to be optimized but i cant make it work. Please help!!!! Thanks Daen //+------------------------------------------------------------------+//|                                            Buy Low Sell high.mq4 |//|                        Copyright...
So I have this Median indicator Here is the code .... #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Black #property indicator_width1 2 extern int Length = 14; extern int ApplyTo = PRICE_CLOSE; double median[]; double array[]; int midlea; int...
  Ubzen's FREE EA Project#1 (48   1 2 3 4 5)
Hello Members, this is yours truly Ubzen. I've just crack the code on what I believe is a strong Money Management System. Being the nice guy that I am, I'm lending a helping hand to my fellow forum-neers. I'm hoping to start a thread for Educational purposes with a final reward of one lucky member...
Hi, I have added a library to my EA using with the line # Include ( library name ).mqh After that it needs to add some line like start() I couldnt find the line to add to make it work... Anyone can help me about that ?
Hello everyone, Edit: Look here: https://www.mql5.com/go?link=https://www.mql4.com/users/register It says . . . "4. Posting of advertising messages is forbidden. "
I have been trying to figure out how to put in a time or bar delay for a Market Order entry. I have seen a lot of examples.But as I have said before, because there are many ways of doing the code and many doing it, just makes it harder for me and some others still learning the code. What I am...
How Much have you withdrawn from your forex accountlately.... Edit: Look here: https://www.mql5.com/go?link=https://www.mql4.com/users/register It says . . . "4. Posting of advertising messages is forbidden. "
  costs (1)
Hello admin, Why can't you put a window in the trade window that tells you how much it will cost for the trade You are about to make? I'm sure this would help new Traders a lot to see what their cost will be? Jonmmm 151948
Hi, Just wrapping up a script which sends tick data to MySQL database. Successful, but when I went to add some more variables in the string I got the compile error: '(time_posix INT UNSIGNED NOT NULL, th INT UNSIGNED NOT NULL, dow INT UNSIGNED NOT NULL, date_time VARCHAR(40) NOT NULL, date...
if i wanted to write a bridge for metatrader, where can i find the specs? ie, if i wanted to write the code that would act as the broker/server part of the metatrader equation, is it possible to find the specs to show the communications protocols used by metatrader? or do i need to reverse engineer...
what exactly is wrong with my OrderModify's TP/SL I've been reading on forums and the docs but I really don't get this part (it might be my dyslexia :/). Ive tried other values close to these but only ever get 'OrderModify error 130' or 'OrderModify error 1'... May I have some help?...
  Pass word (4)
Hi every one, I'm new here but have been trading for 6 years! How can I change my pass word to one that suits me? Thanks jonmmm
Hi All, Anyone knows Left Tic and Right Tic tradestation plot style equvalant in MT4? Please help! Attaching tradestation snap shot for quick referance Thanks in advance! Antony.
Hi, I am trying to change the color of a candlestick bar based on an moving average indicator. Is it possible? Any suggestions? Antony
Hi all, I'd like to get the time of iLowest and iHighest values below. Although I have searched a lot I cloundn't find anything about it. Can anyone help me ragarding this? Regards, Cosan double lowbar = iLowest("EURUSD", PERIOD_D1, MODE_LOW,BarsBack,StartBar); double highbar =...
Hello, if i write: double x=iMA(NULL,0,8,0,MODE_SMA,PRICE_CLOSE,0) The program takes the point value rounded, the real value is 1.20593 but in the variable x the value is 1.2059. Why? Thanks!
When I OrderSend() every minute, I tend to get about one ERR_NO_CONNECTION per hour. This is on a VPS (I'm also assuming the broker is reliable). After the failure, the trade always goes through successfully when I retry immediately. I am beginning to suspect that there is something more at play...
Hello all. I wanted to know if is possible to develop and EA that sends once it detects a valid setup a pop up with an input field to type manually the price level of the stop loss. Is it possible ? I am curious to do the backtesting in visual mode and check if with little discretion I can monitor...
FxAutomatedcom
Hi we've created this EA coming soon at fxautomated.com that we think will be the best ever in the market. We are currently optimizing it on a powerful server that is on 24/7/365 on but the estimated time to complete is 900 hours thats about 35 days. Can you guys please create a cloud network for...
Hello, Im new in mq4 languages..Can someone help me to remove this error from my EA? 2012.07.25 09:30:41 2011.09.12 00:36 EA Kapan Menunggu EURUSD,M1: OrderModify error 130 This is the line for modifiy order if (gi_356) {      if (gi_292 == TRUE) {         for (g_pos_324 = OrdersTotal() - 1;...
Hi have written some code which attempts to make an OrderSend() to open an order. After the OrderSend() the code checks for the GetLatestError() and if an error is found (ie > 0) then it tries again. My concern with this is that a situation may arise where the trade has actually gone through...
The following is valid. double v1[10] = {47.73,49.384,49.845,50.167,50.465,50.628,50.857,51.12,51.315,51.565}; The following is not valid. double v1[10]; v1 = {47.73,49.384,49.845,50.167,50.465,50.628,50.857,51.12,51.315,51.565}; Any ideas how to make it valid? The reason why I ask is that I want...
void SetLevelValue(int level, double value) can draw 32 levels in an indicator, but they can only have the same style, sincein SetLevelStyle, which level is not referenced. void SetLevelStyle(int draw_style, int line_width, color clr=CLR_NONE) Also, the level value can hardly be seen on the...
A quick question. Do any of you know if it is possible to create a function with a variable number of parameters that can be of any type? In other languages this is sometimes referred to as 'paramarray'. An example in MQL4 is int FileWrite( int handle, ...) With the above, once you...
I notice that the MetaEditor has a F9 option to add a breakpoint. I take it though that we can't use this for debugging/stepping through EAs?
Hello, I am fairly new to trading. I can see my trade placed on my VPS platfrom from my desktop on my iPhone app. Does that mean when I enter a trade in my iPhone it gets entered on my VPS platform too. I usually trade the US and European markets in the Evening as I am based in Australia but I have...
Hello, I have indicator which uses "include" command to include external library. This library declares external functions which are in .dll file Is it possible to declare dll functions from indicator itself avoiding "include" file ? (there are many #define statements in "include" file) Thanks,...
The topic about says it: The current value of the cumulative total 'profits' in the grey line at the bottom of all of the active and open trades (in the first 'Trade' tab) at the bottom of the terminal. This is distinct from either the AccountProfit() or the TradeProfit() The value is there and...
Hi, I've tried running an EA on Oanda MT4 Client, but it does not trade. I had enabled live trading and all the other settings, and the smiling face is on the chart. I tried it on a demo account with MetaQuote Client, and it works. I searched the forum and someone mentions about 4 vs 5 digits (Oanda...
  Help EA Code (1)
Hi mates, can help me with my code attached? It is a scalp with martingale. i need that EA buy and sell at same time, in other words, if he enter long and have a signal to short, he execute together. i have problems with magic number and trade management in mql code yet.. i am beginner in codes....