Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1175

To post a new topic, please log in or register
I've noticed in my live trading that on several occasions the initial move is substantially more than 20 pips. As the program takes profits at 20 pips there is an oppurtunity lost. Does anyone know if you can set a trailing stop above 20 pips (locking in those 20 pip profits) taking advantage of...
I need help with cancelling buy or sell limit for specific currencies pairs if the opposite order limit touched. example: I have 10 pending trades buy limit and sell limit for eurusd buy limit and sell limit for gbpjpy and so on..... if the sell limit for eurusd touched then cancel buy limit for...
Hello, Say I have an order open for EURUSD: BUYSTOP Limit 1.4020 Takeprofit 1.4060 Stoploss 1.3960 But if the market doesn't go to the BUYSTOP Limit to get the order filled, insteadit keeps going lower below the Stoploss level, then I would like to cancel thisEntry order completely. How can...
New article Easy Way to Publish Video at MQL4.Community is published: It is usually easier to show, than to explain. We offer a simple andfree way to create a video clip using CamStudio for publishing it inMQL.community forums. Author: MetaQuotes
Does any one have the FIB PHI CHANNEL indicator? Please can you help me if you know where I can get a phi channel mql indicator Thanks Much appreciated
Dear experts, I find a problem on my simple EA, which is when i want to close all positions in my account, the positions were not able to be closed at first price change. For example, if I have 10 positions, once I turn on my EA, the price changed from 1.9864 to 1.9865(1st run cycle),, only...
Hello I'm trying to help a friend with MetaTrader, getting him started and so on. But, when we're trying to run the example EAs (and some of my EAs) through the strategytester we're getting error 131, wrong lotsize? How could this be fixed? Since it works on my computer it should work on his given...
Hello, I dont understand two Thinks here is a picture By the yellow Line: How can I make a show like the original ADX Indicator, I tried the function IndicatorShortName(), but at the end of the sentence were still the three values of the three ADX Indicator lines, I do not quite gone? By the blue...
Hi! I got Core 2 Duo especially for the strategy tester but when I tried it i had abad surprise. It uses only half of the processor's capacity. One of the cores is fully engagedand the other one is doing nothing (looking at the task manager). Is there hope for dual core optimized strategy tester...
Simone Ambrogio
Hi. That is to say my EA doesn't want to send a pending order. Pending Order aims - e.g. - at buying at (Ask - N ticks). If N==3 then it works, whereas N>3 it possibly returns err 138. The error is ERR_REQUOTE (I presume) and I don't know how/where and what function to add. What is the most...
I am looking for an mql4 programmer to do some thinks for me (indicators and EA's). Every one interesting leave a message here with an e-mail so we can discus the details and the cost
Hi Rosh, I have a question, whether the ex4 can create a log file (.txt) automatically, and the ea can import or use back the info or any number and wording (maybe some instruction script) from the log file? If so, can you help and provide me the sample. Thank you
Hi there I've been searching through the forum for quite some time now, looking for a way that I can change the colour of a OHLC-bar or Candlestick when certain conditions are met. I have found none. Ideally I want a OHLC-bar or Candlestick Cart with 3 colours. One colour when the opening price and...
Hi there, I have programmed a simple ema as a start to get into MQL4 programming but have run into a snag. I get an error message saying corssed - function not defined on the following section of code: sEma = iMA(NULL,0,21,0,MODE_EMA,PRICE_CLOSE,0); lEma = iMA(NULL,0,55,0...
I have been fooling around with this ea system for a while and found its only flaw i can see is it will enter into too many trades at once. so i was wondering if i could get some code for it to only open one position at a time. do not open trade until other trade is closed. any help would be...
I am trying to create an EA for a system that uses Bollinger Bands as one of the indicators. A problem that I am running into is that I want my code to "save" or "store" a number when certain criteria is met and than change that number when the next set of criteria is met. This is my current code:...
hi guys is there a way to thread with mql4 or using mql4 functions in my own DLL. Thanks.
Hi I have imported a M1 test data through the history center and then convert it to all the other timeframes by using period_converter. After that I checked the off-line chart for the currency pair that I just updated and I can open all the time frames of this pair. When I started to test my EA,...
Hi All, Docs state: Any trading operation (functions of OrderSend(), OrderClose, OrderCloseBy, OrderDelete or OrderModify) can fail, for a number of reasons, and return either negative ticket number or FALSE. One can find out about the reason for fail by calling of the GetLastError() function....
Hello! I would draw indicator line in expert advisor.I calculate the value in expert but i need to draw this line.Can help me anybody,how can i solved this problem? Thanks for help!
I'm developing a fundamentals indicator. I have weekly news downloaded from dailyfx.com/calendar in CSV format. How do i interface metatrader with excel, i know metatrader has DDE support. I attached the weekly calendar in CSV format, and i would like to process that calendar with MetaTrader, how do...
hi.. I've modified the default script (trade.mq4) in metatrader platform to execute martingle based trade.. the condition is like below: Starting lot: 0.1 Multiple: 2 Pips: 8 TP: 10 Max trade: 5 and here's the code.. //+------------------------------------------------------------------+ //|...
I ran into a problem that I dont know how to solve. My program has a few open orders and closes them all together but sometimes I think that some of the orders are not filled therefore it keeps waiting till they are filled and that locks up my program. What have you guys found to be the best...
I ran the same EA on multiple charts and it starting doing some wacky things, what am I missing? And what is the 'magic number' for? I thought if I saved the ticket number in an external variable I could use that to identify the trades of individual EA's. Each EA has only one trade open at all and...
Hello, Im new user used FXDD-MetaTrader new software version. In demo account,when start to buy, 0.01 until 0.05 is meaning for what? usd1 or usd10cent. Im confuse when i registered demo account USD1000, buy 1.0 computer notice money not enough. In all version software 0.1 is usd1.
I have an indicator that puts an arrow on the chart and fires an alert on crossover. But sometime the alert doesn't fire when expected. For example using a 1H chart: Right after the chart has moved to a new bar I check to see if I have any alerts for Bar[1] and I'll have one. If I close...
I am fairly new to MQL4 programming. I have a strategy I am considering to converting to MQL4. I have 2 questions: 1) How far back does the back testing capabilities go? I would like to test the strategy for several years to ensure the program is robust through many different market conditions....
ALERTS FROM INDICATOR BY ALEXCUD 1) ÐÅÇÓËÜÒÀÒÛ 2) Íåïëîõîé ìîìåíò äëÿ îòêðûòèÿ ïîçèöèè BUY 3) Íå ðåêîìåíäóåòñÿ îòêðûâàòü ïîçèçèè. ÆÄÈÒÅ 4) Íåïëîõîé ìîìåíò äëÿ îòêðûòèÿ ïîçèöèè SELL 5) ÓÄÀ×ÍÛÉ ìîìåíò äëÿ îòêðûòèÿ ïîçèöèè BUY 6)...
iam trying to compile my ea and it gives me this error message "variable not defined". can anyone assist me on how to go about resolving this
Hello, I'm a newbie and need to know how to set up forex killer i have downloaded and attach it to the MetaTrader 4. Can anyone help with that.