MQL4 and MetaTrader 4 - page 304

To post a new topic, please log in or register
good morning, my broker use mt4 last built but this have got metaeditor mql5... if I create a ea in this editor, can I use it on MT4?? sorry for my english 
  If and else ? (3)
Hello everyone, I wrote this code but I have a doubt, the MACD 10 6 5 when the Crossing State and the MACD 2 6 3 exceeds the level  0 signal. I would rather that the MACD 10 6 5 a cross-time need to wait for the MACD 2 6 3 then gives me the signal. How could I do? Unfortunately I am a neophyte....
Hi, I'm trying to test an expert in strategy tester in the same computer on two different brokers MT4 platform. They are both build 950. I have downloaded M1 historical data from FXDD and by using period converter, convert it up to Monthly data sucessfully in both terminals, checked all TFs, fine....
Is there smart way to perform parameter optimization from constantly latest chart? It might be a little different from my nuance <link removed by moderator>
Hello everybody, I've been trying to make my very first self-made EA, but I've been failing to get it to open BUY orders. It seems to open SELL orders just without a problem, and since the code for both OrderSend() are identical, I can't grasp what is going wrong. This is the relevant part of my...
The script don't run. Please help me //+------------------------------------------------------------------+ //|                                           RSI3_CCI20_DEMA10c.mq4 | //|                                                             Binh | //|...
Hi everyone, I'm new here and I'm new to FX and EA writing in general. I've been working on an EA that would change my Stoploss once the price has moved a certain amount. But, I can't get it to work and I can't find the solution. So any Help would be greatly appreciated! Here is the code : bool SMod...
I want to make a function that will store the past 100 candle values of the ATR(14 period) and then save the lowest value to a variable which can be used by other functions.  Can anyone help me or provide me a sample snippet of code? I went through the official literature but it just does not want...
Hello. I have a problem with signal subskryption. Maybe some of you understand it better than my.     I have an account based on PLN: 729,11 PLN inside(CADPLN = +/- 3.00), an leverage 1:500 (after leverage: 364555 PLN). My signal provider has one based on CAD: 528,40 CAD(arround 1590 PLN), leverage...
hi,   I am trying to run a custom indicator along with an EA (standard MACD EA from metaquotes) in thestrategy tester with build 880. I know it should be possible, but I can'tseem to do it.   I have tried  : 1. make the template including the indicator in a live chart andsave it as tester.tpl...
If I use time functions in my EA will they function properly in the strategy tester?  For example, if I use the Time[i] function to detect when a new bar appears will that work in the tester?
Hi, i need put notification information.   MACD with parameters: Fast - 5, slow - 35, SMA - 5 to Close can sand me notification info when values is over 0, Laguerre indicator send notification when cross number value 0.75 at down and up 0.15.    I'll pay.
Hi  I was testing out a strategy using the Strategy tester, which for one day seems to pull a strange price for the trade entry at 05:00. I have checked the history center and that price does not exist for that date, any ideas as to where it is coming from and how? As I can't figure out where MT4...
Is there a way to find the time and date of a past candle / period? Thanks!
hello,  How to make a label property saved the changes of parameters? i opened up the "Label" window & checked the box "Draw object as background" only to have the box unchecked when i returned.  see attachment thanks in advance. alex 
I used to have a progress indicator (right above the animated green progress bar) which said something like: 1) "3065 / 10277 (11237623)" on the left side 2)  4:35:33 / 8:43:22 on the right side  About a day or two ago, this has disappeared. Does anybody know what I may have done to cause this and...
Hello,   I am quite new here. I want to know how to use "super bollinger band" (https://www.mql5.com/en/market/product/8513#) on EA. this indicator shows up and down acceleration points. I tried to use iCustom but could not get any results. Also this indicator shows up and down points using by...
I have an issue with an EA which seems to hang after a few passes during backtesting with optimization. Trying to figure out what's going on, I am using the following code:  void subFileWriteFlush (string sFilename, string str){   int iHandle = FileOpen (sFilename, FILE_READ|FILE_WRITE|FILE_CSV,...
Hi All, I currently have an EA that moves the pending orders a lot which results in a few thousand modify messages per hour.  How do I disable all of those order modify messages that appear in the journals or logs? I still want the open order messages to appear on the journals and logs though. I've...
How would I go about creating an EA that would allow you to click on the screen and do a buy or sell limit as we can already but also have it set to the time where the mouse curser is. So it would not activate till it hit that time on the screen then if the price was moving up to the buy limit it...
Hi,  in order to achieve 450 lots with the less loss possible, i want to create an EA that opens trades with TP and SL of 5 pips with a 0.1 lot, on the EURUSD pair (0.7 pip Spread so the least loss). How is it possible to do it with an EA ? I looked on how to do it but never found how to make it....
Hello, I am able to set the color scheme in the strategy tester by naming a template to the same name as my EA. I am also able to set the background color of the open and close trade arrows using the color parameter in OrderSend() and OrderClose(). 1. How can I change the color of the trend line...
Hi!   Im rather new to coding in the MT4 platform and I have got a very noob question to ask...  I tried to scale some indicators to 0-1 using the normalizer available to download on this site https://www.mql5.com/en/code/8572  , which is apparently a popular tool to achieve what I tried to do.  But...
sam123
I would like to save or edit strategy tester report in html file without revealing the parameters. See picture for example. Is it possible?    
Hi everyone, I am an FX trading beginner, I am currently using Metatrader 4 to trade EUR/USD, I was just wondering, what is the opening and closing time for EUR/US What is the opening and closing time for EUR/USD ? Thanks in advance.
  indicator crossing (16   1 2)
Hey Readers! I am going through a problem. I want that when two indicators line crosses each other i should get an Alert. The method i try was that  i get values of both indicators at  candle 1 and check that if the both values i get are equal or not but this method did not work because the...
My tablet updated  MT4 to the 952 build however since this has happened I am no longer able to modify or close trades. The only function that remains operational is the ability to enter a trade but I am not able to set stop loss or take profit targets or even close trades. Is anyone else...
Hi guys!  I wrote some functions to a Library File and when i run the strategy tester error occurred, see the pic below : When i use Include Files it works perfect. But for some reason to work with library seem a better solution for large EA that i work for.  I run win10 64-bit version system...
Hello, im using a demo account of mql4 platform.   I never trades before, so i got no experience. Thats why i got this question, when i try to Comment the spread which is on the market always get the same number and never changes. The expression that i used is: Comment("SPREAD ", Ask-Bid); and...
Any ideas why Mt4 at startup would be removing indis on some charts not others ? For example, 2 lines from the log  2    06:27:44.615    Custom indicator Atr-Bb EURUSD,M5: loaded successfully 2    06:27:44.824    Custom indicator Atr-Bb EURUSD,M5: removed Oddly, in the indis list, a line is left...