Download MetaTrader 5

MQL4 and MetaTrader 4 - page 465

To post a new topic, please log in or register
hello admin.please help my.why my EA not running in mt4 this my script EA. #define SIGNAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 #define SIGNAL_CLOSEBUY 3 #define SIGNAL_CLOSESELL 4 #property copyright "Expert Advisor Builder" #property link "http://sufx.core.t3-ism...
Hello everyone, im trying to add the decimal points for the lotsize that my expert advisor can handle. currently it is only using 2 decimal places that is 0.01 but i would like it to use 0.015, i have tried to do this with NormalizeDouble function but im not getting the desired result. is there...
The first sorry for my English. This is what i want: When the EA is running, in the one candle, I want the first order has Stop loss and Take profit = Stop loss, but the orther orders in this candle i want they have Take profit = Stop loss * 2. Thank all :)
Please someone should help me via my email address emmanuelmba13@rocketmail.com
Hi guys, If I have an open position with its TP and SL settled with OrderModify(), is it possible to close this position with a new limit order (like a new different TP) and so having at the same time two TP for the same order? I think that if I have a buy order at market and then send a sell limit...
  OrderSend() not executing (16   1 2)
Hi, I have two demo accounts with the same service provider running the exact same EA on both of them. Only difference is the time frame (5min & 1min). On the 5min the OrderSend() executes without any problem. On the other instance, the MT4 running the 1min charts, it does not execute at all. Not...
Using the following code i am trying to download as much history i can or 3000 bars from this moment is downloaded. int init(){      string paar[] = {"AUDCAD.arm", "AUDCHF.arm" ,"AUDJPY.arm" ,"AUDNZD.arm" ,"AUDUSD.arm" ,"CADCHF.arm" ,"CADJPY.arm" ,"CHFJPY.arm" ,"EURAUD.arm" ,"EURCAD.arm"...
I am having a problem that I have never faced before. I have some EAs that I downloaded free here, they are in mq4 format. But when I put them in my live account, they dont work. They are shown as grey when they are not ex4 files and also when i try to attach them to a chart, message appears saying...
Metaquotes, This software says : '' By the end of delay the plugin confirms the order using the worst price for the trader http://www.tools4brokers.com/products/Virtual_Dealer_Plugin Is this type of plug ins allowed(legal) by Metaquotes?
Hello is there an indicator to count 1 day total candle that already formed example 1 hour = 24 candle, 30 minutes = 48 candle etc . Because all indicator are based on price missing candle are crucial especially on lower time frame such as 1 minutes, 5 minutes . I noticed that missing candle happen...
Need an indicator/script that gives a sound alert every 14 minutes! please.....! thanks for the helpers !
Hi I use Meta Editor with different settings of the programming field visibility. When is the good visibility (good weather) I use white background and black fonts, but if the wheather is bad or is the evening I would like to use black background and white fonts etc. I do not want change every time...
Is it possible to get data from mysql and store in memory and have backtester use that data. I was hoping it is possible to speed up backtesting somehow? The articles on 'sql wrapper' look to read into arrays but I'm not sure if the backtester can be tapped to allow a speed up. Then again that is...
I have a system - not automated - a few indicators which i have saved as a template. Is it possible to test its entry points using MT4 tester - if so - please tell how. Thank you Hans
How do I get my ea to only trade during the New York Session? GMT 0800 to 1600 How do I display GMT on my chart?
Hello im trying to draw lines on a 15 Min chart at the level of the last, most recent, Up and Down fractal (using iFractals). I have enclosed a screen shot (Eur/USD) of what i mean and also the code that i have been using until now (fractallines.mq4). Suffice to say the code does not work; no lines...
hi im alex from uk and im new to this forum i have small question about mt4 i was reading about robots and automated trades but still not sure about my idea i use mt4 i have few trading account which im use at same time, i try different strategy on each i was wondering is any way how i can setup mt4...
Hi, I'm having a problem with using a function to return the lowest value of the current 5 min bar using an EA attached to a H1 chart. The problem seems to be with the timeframe enumeration. I tried finding an answer on the forum but couldn't. Here's my code: Print("val= ",Low[iLowest(NULL,5...
  3 MA Cross Formula (12   1 2)
Good Day I just would like to ask if the formula of 2 MA's crossed is also applicable to 3 MA's? Does this code work?    double a=iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,0);   double b=iMA(NULL,0,9,0,MODE_SMA,PRICE_CLOSE,0);   double c=iMA(NULL,0,18,0,MODE_SMA,PRICE_CLOSE,0);      double x=iMA(NULL,0,3...
I am trying to establish the ATR as a whole number, rather than e.g. 0.00100 (ATR being 10 in this case). So far I have tried the following code all which produce 0.0xxxxx ATR values. I can use the decimal values fine to place a stop loss (Ask - ATR value) but when I need to calculate the risk for...
Hi I am a new trader in forex market.I want to know that what happens when the "Free Margin" becomes 0(i.e.zero or nil)???Please advise ASAP as my money is on the verge...I am a small trader trading at USD100. Leverage is 1:20. Thanks in advance.
Dear guys Is there any possible to find shift on correct chart according by GMT time.
I run MT4 Build 482 and everytime I start the application I get a "Run As" window before the app opens.  Does anyone know how to stop this window opening forever?
Hello, I have been struggling with Strategy Tester for some time and got to wondering if the problems I have been seeing are common -- or if I am doing something stupid... My problem is that I get unrepeatable results.  I have done pretty well all of my testing on EUR-USD, typically over two or...
Hi, First of all, here is the graph https://www.mql5.com/en/charts/526346/gold-d1-ava-financial-ltd And here the code: bool hassold = false;//+------------------------------------------------------------------+//| Custom indicator initialization function...
  Candles font (1)
I developed a candles.ttf and share it here to get constructive criticism in the form of suggestions, additional specifications, character mapping, ligatures, etc. As the font is generated through a script, lots of things can be changed quite quickly. Bears and neutrals are in lowercase, bulls are...
Hi. I want a simple EA coded for MT4. The EA will have some very simple parameters and logic. Will not take long. I am looking for an experienced MQL4 coder. Message me for more details. Thank you.
How to find Last closed order id,type?
Could someone please help with the following task. I have a two-point data set D = {(x1, y1),(x2, y2)} with X = R^n and Y = {−1, +1}, with labels y1 = +1 and y2 = −1. How can I compute w and b of a separating hyperplane from the data ?
Read var from another EA.. ?! Sometimes, I use short scrips to activate special operations while trading. To do that I need to get some values of the variables (some are 'extern vars ') that are used in my main expert. What is the recommended way to do that? Thank you, James