Download MetaTrader 5

MQL4 and MetaTrader 4 - page 47

To post a new topic, please log in or register
I am trying to use a boolean statement within my signal paramenters -  in global variables I have 'USE MA' = True, I need to insert nested if statement, but it keeps running with errors..  In other words I want to add another condition if (and only if) boolean statement on global level is true,...
Hello Ea request Simple Based Expert There are no additional features. I do not want the mix. I want a robot with a strategy in the picture. Thank you. Strategy Picture :
Hello guys i am trying to make a trade bot both with auto and manual trading but for some reason every time i use OOP or even with the new controls i seem to fail so i am asking any body who can help me please for the love of god lol... I want to place 25 buttons on a panel that when clicked change...
Good morning MQL4 friends, I need your advice and some "How to do " lines from you. I would like to develop enhanced data display linked to MT4 but I do not know how to proceed. I am ready to learn. I imagine that I have to develop .dll ? But how ? Please, to better understand what I would like,...
Hi i'm trying to create an EA from Sakura Trading indicator. https://www.mql5.com/en/market/product/13455 i "call" the indi using iCustom but the arrows of the indi are shown only when i stop the BT. As soon as i stop it, all the past icons appear. i need to access the icon data during the BT. is...
Hello. I use script to force the EA to run once on every bar start. ..... if( Now == Time[0]) { return;  } .... However, in my EA, let's say, Trade happens if CLOSE>OPEN of the bar (i dont matter ticks)... however, the EA is executed only on OPENs of bars... what is the solution? how can i get the...
Belanda
Hello. Is there any way to move default indent location either by code or change setting? (I am aware there is button to shift chart to right) I use shift chart to right leave some space but current space is too much even I drag triangle to most right side. I have searched reference but could not...
Hi, i'm having a problem, and i cant get this indicator value, on journal, the value isn't compatible with  buffer 0, could anyone help me, i don't have any idea why the value is different, thanks. int alert;void OnTick()  {double fxfish= iCustom (NULL,0,"FX Fish",10,0,false,false,0,0);if...
i'm having an issue, my mql4 navigator only show few indicators, and i cant create a new folder, it doesn't appear on navigator, how can i solve this? thanks
I have forum-searched & Googled this but there is not much out there :( Looking at this 'Ask' we can have n copies of the application on each computer... but how do we start them easily on reboot to connect and start operations? Command lines in shortcuts or batch files in the Startup folder (of XP)...
Hi guys and gals ;) I'm having big trouble with MT4 connection issues. I run multiple MT4's on a dedicated server with low latency to my brokers 1-2 milliseconds. However, quite often (1-2 times a day) MT4 keeps dropping the connection. Now, most of the time it will reconnect back within a second...
Is it possible to group setions pf code together and minimise as a heading for easier reading..?
Hi everyone, With my EA I have a strange problem with iTime. I have to check the last bar with iTime using this code: iTime("SYMBOL",Period(),1); I'm trying to get the information from multiple crosses, but I get weird data. If you try to run this debug code you can check out what is wrong . int...
  Login Problem (3)
For some reason MT4 will not accept my login details which I used successfully right up until Friday? It keeps saying "invalid account". Can someone please help??!!
hi. with FileWrite, it only writes into application storage direcory (in  C:\Users\username\AppData\Roaming\MetaQuotes\Terminal\50CA3DFB510CC5A8F28B48D1BF2A5702\tester\files\ ) However, when doing  int file_handle=FileOpen("C:/file.txt",FILE_READ|FILE_WRITE); it doesnt create a file there. why ?...
I frequently meet such situation. On chart, there is available 24 hours datafully, but from EA (i inserted "Print"), it seems it is only executed only on specific times, and WHY? what happens?
Hellow I'm trying to limit the number of times per day. For example, once or twice a day, three times. So I wrote the code below. Every candle goes into it. What's wrong with it? if you know how to limit the number of entries per day, let me know please.   (using OrdersTotal() function)...
How to retrieve the price of a horizontal line named according to the schema: prefix + number + "SL". But the number and price will change and I do not know what values. Example: The first line is called "#3 SL", the next "#9 SL", the third is "# 15 SL". How to take the price of each of these lines?...
Can some one tell me how to make a button change the symbols on a chart please using OPP or the new mt4 controls i beg of you.
I am making an EA and it automatically starts tester. I found the "Start" Button's handle from Microsoft Spy++ I use this route : 1. get the Chart's handle 2. Get the terminal's Handle ("GetAncestor") 3. hwnd=FindWindowExW(hwnd,0,"AfxControlBar140s","터미널") // Terminal 4. int hwnd1=FindWindowExW(hwnd...
Hello, The OO state design pattern takes a context class which has a reference to a state base class, which is subclassed by the state classes that implement the state behaviour of the context class. At the same time the state subclasses have a refference to the context class which they get as...
Hi all, I found 3 ea on internet but many ea on my computer doesn't work, don't trade. I'm new in Forex. I don't know a lot about ea, I know that. . What am I doing wrong or does the EA not trade what I'm doing on my computer? Thank you.
Hi, I would like to know if is there a way to Set (by Script) the Long & Short, Only Long or Only Short options, when the EA is loaded... I tried to do this Saving 3 Templates, each one with one of these options selected (Long & Short, Only Long, Only Short). When i looked in those files, i noticed...
I have a problem that I just do not understand , and it is driving me crasy. I created a EA that uses OnChartEvent to contol a Dialog of Class cDialog. When I run my EA in my computer everything works perfectly, but when I upload it to a Virtual Machine (Azure machine) it stops working. It seems...
Hello I wrote simple Moving Average Strategy ea but There are some missing ones. Bar closing process when it closes . Because Cross Ma and result in unnecessary processing. H1 Bar Closing and h1 new positions . (No repaint) In addition some may be missing. Stop filter tp st etc... Do not put it. H1...
Can someone explain why my EA is no longer attaching to my MT4 chart?
Hi, I asked in this forum before, and I had my EA problem solved. But later, EA ordered sell only when I operated EA. Indicator ↓ -------------------------------------------------+extern int                FractalPeriod   = 25;extern double             Lots            = 0.1;extern ENUM_APPLIED_PRICE...
I have this type of error in this function, why happening? // Trailing Stop per gli ordini #5 e #6 (Stop loss modify a Break Even)void TrailingStop1Sell(){        if (ticket5 > 0){  // seleziona l'ordine #5 se è presente      if (OrderSelect(ticket5,SELECT_BY_TICKET)){    // verifica se l'ordine è...
Can some one please help me with a problem i have with constructing buttons that will change the time frames or symbols. I have read all of the forums unless i have missed some thing and by all means if you can help me i would be so happy . the high lighted area is where my problem is please i would...
Hello I wrote simple Moving Average Strategy ea but There are some missing ones. Bar closing process when it closes . Because Cross Ma and result in unnecessary processing. H1 Bar Closing and h1 new positions . (No repaint) In addition some may be missing. Stop filter tp st etc... Do not put it. H1...