MQL4 and MetaTrader 4 - page 199

To post a new topic, please log in or register
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...
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...
New article Graphical Interfaces V: The Combobox Control (Chapter 3) has been published: In the first two chapters of the fifth part of the series, we developed classes for creating a scrollbar and a view list. In this chapter, we will speak about creating a class for the combobox control. This is...
Hi Everyone.  I have tried every bit of advise that I can find on this forum, but none seems to work.  Will someone please help.  I believe the issue lies with my OrderTotal function.  I am trading 10 currency pairs, i.e. I have the EA open on 10 charts.  This is a simple hedging strategy.  I want...
  Trailing candle stoploss (13   1 2)
Hi,   I'm trying to use a candle trailing stoploss. The one for the buy trades seems to work as it should. How ever the sell one keeps giving an order modify 1 error. I have looked this up but I dont understand what the issue is. The buy works so the sell should be the opposite. Well thats my logic...
when I add a template to a chart ,the teminal shut dowan suddently ,and the log record nothing innormal .
Hello everyone. I have a problem with the code, and I need your help. I wrote this code: {         Buffer1[i] = Low[i]- 1 * myPoint;         if(i == 0 && Time[0] != time_alert) { myAlert("indicator", "Buy"); time_alert = Time[0]; }         } The part that I have highlighted, brings up the Popup. I...