MQL4 and MetaTrader 4 - page 207

To post a new topic, please log in or register
I don't know if the expression "reset" is appropriate. The key is that I want to execute the same process as when I open the setting panel and click the OK button. Some programs, especially MTF indicators, often appear distorted at startup. However, if I do this, I can make it normal, as also you...
When I compile an .mq4  EA or indicator in the metaeditor it does not generate an .ex4 file. I have new Windows 10. I also cant download ex4 indicators or EA  files from various forex forums for some reason. It asks me to choose a program or app to download it. Any ideas?   Thanks. 
hi all,  when i optimize for my ea using strategy tester it gives a list of passes with profit and other results like drawdown. but most importantly it gives the inputs used in the pass. so when i use those inputs in the ea why does it not produce the expected profit? If anyone can help i would be...
I have a small problem with the addition of 10 charts in my indicator. In OnInit () I added this code to add 10 assets but first delete those open except the first one. Created buttons work but if I click to change assets, the 10 assets are deleted then added but then back to the second graph and...
Hi guys/&gals, Having a massive problem with my EA, instead of just opening 2 trades with the same magic number and then closing those ones at a set profit target my EA goes nuts and just continually opens the same trade over and over again until I turn off auto trading, I have tried everything and...
I have set an EA for sending positions with currencies , and that allows to import functions from the librairies . It checks the Hour and the Price Bid before sending Buy Orders with the selected currencies with the settings . Here is the EA :  #import "Conversion_Datas_To_Mql4.mqh"char...
  Add max order (6)
Hi I'm new to programming and have been trying to code some ea but struggling with getting max order. would be glad if someone can help. Thanks // External variablesextern int MagicNumber = 23310;extern double StopLoss = 0;extern double TakeProfit = 0;extern double TrailingStopLimit = 0;extern...
Hi, I made an expert and now run into a problem. In my code I use: if ((iClose(Pair,PERIOD_M1,1) < ArrayLevel[1][i]) && iClose(Pair,PERIOD_M1,0) >= ArrayLevel[1][i]) this if-statement was true and actually it couldn't be true. I know this because of my logging: the arraylevel[1][i] => had the...
What code can I put in my EA that will completely Restart it.. Like reload EVERYTHING... Reload the externs, init()and start() functions .... Aswell as reload the chart... Thank you very much
Hello, I have spent a lot of time working on an EA for someone and I am worried that when I gave him the ex4 file for testing, he might decompile it and then won't pay for the work I have put on to it ! I'm not very sure that it's even possible. Wikipedia says that the new builds are impossible to...
  Help on TL!! (2)
Hi all, I set my Trendline Channel aka Equidistant Channel on MT4 but it is bothering me that it looks awkward as shown on the picture i have attached. How do i have the Channel Rays only extending on the Right side instead of the Left too? thank you!!
I want to check if total orders are not zero, then, if buy order exists, I want to set the variable "buy_order_exists" to "1" if sell order exists, I want to set the variable "sell_order_exists" to "1" But my code doesn't update the variables when the orders are exist.  if (OrdersTotal () != 0) {...
iCurrency
Hello, can you suggest decision how to manage large data and trade with Metatrader 4. I have an EA that records in csv file in Metaeditor/File folder quotes and some variables of symbols in Market Watch. However when recording data becomes very, very large - above 1 million of rows, and if EA just...
Hello, I need to add displacement between the price and arrow 
does any one know why i am getting this error and how to fix it, this is the line, extern int    ProfitTarget         = (AccountEquity()*1.01);
Comments that do not relate to the "Please help with one trade per day code", have been moved into this topic.
I created an OOP-base for Indicators and EA, so that I don't have to use iCustom! What you see is a very simple Mom: Buff2[b+1] = close[b+1] - close[b+1+PER]; Buff1 receives the values that are calculated by the OOP-base. As you can see, the OOP-calculated values are pretty much the same as the...
Hello Why every time I do a strategy tester always appears in the image below. Is there something wrong my Ea.?
  MT4 Vs MT5 (2)
Why do most of the Algo startup using MT4 and not MT5 ? what is the main advantege, still, in MT4 , and why do you still using it ?
Hi guys Why i don't see my EA  indicators  on the chart in backtest ?
Hi everyone, it's my first post and I hope I am not in the wrong forum. Problem is, I just downloaded mt4setup,exe from metaquotes.net but it does not start on my system (Win 10). Same problem with MT5. In the event log I see errors but they do not contain any specific message, maybe someone can...
Dek3sQwa19
fter I upgraded to the new build 600 my custom indicator stopped working! I am using Twiggs MOney Flow ORG, but when I try to compile it in the metaeditor it is giving me the following errors. Somebody told me that this is a bug in the new build 600 and I must put an init function but I don't know...
Dear friends, I am new in EA programming and i need your help please. I want my EA to wait after close last trade and don't open trade until next signal. For example if my EA open last Sell trade then after close as TP or ST wait for BUY signal and don't open again Sell before get Buy signal....
(int i=OrdersHistoryTotal()-1,i>=0,i--){ //do something} ...since major CPUs' "count" registers count the "for" loop backward.
In stdlib there is a function called IntegerToHexString that converts an integer to a hexadecimal string. However I need a function that converts a double in MQL to a binary or hexadecimal string based on the IEEE-754 format. The procedure is outlined here: IEEE 754 Standard for Floating Point...
Hello everyone, Where I have "//---" is this a case of the button doesn't exist or, a possible function call if the button is pressed or, released?     if(!Create(0,"FIND",0,20,80,90,HEIGHT,CORNER_LEFT_UPPER,"FIND",FontStyle,Fontsize,BLUE,ALMOND,None,false,false,false,true,0))   {//---      }
Hi guys - can you tell me if this high number in the connection panel is normal. I have MT4 with 10 charts at 15min and 2 offline charts open as well. I have set history bars at 5000. Any suggestions or is this acceptable? Cheers
Hello Is it possible to have one click trading script code ? if not can you let me know have script that not work after click on that! and only run after set values on chart and click for example buy button ? i have script that work immidiately after click on that and i use simple code like this...
Hi I have a number of trading ideas and want to test them by programming an EA. I would like to learn so I can change things as I go. What is the best way courses etc to learn how to program. Do I need a mentor....Thanks
How much could I earn if I rent my cpu i7 3770 for 24 hours?