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
[Deleted]
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...
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) {...
[Deleted]
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...
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.?
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...
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?
hi guys. I'm trying to modify an Order, but I always get Error #130. I looked for other texts, but ... Different from this code, it is difficult to understand and apply. So I raise my code. Please let me know based on this code. extern double initial_Lots = 1.0; extern int MagicNo =...
Hi, after I run the backtesting EA get error 134: 2017.08.06 22:23:59.658 2017.08.02 01:47:28 Tester: PrevBalance: 50000.00, PrevPL: 0.00, PrevEquity 50000.00, PrevMargin: 0.00, NewMargin: 118059, FreeMargin: -68059.00 2017.08.06 22:23:59.658 2017.08.02 01:47:28 Tester: not enough money for sell 1...
Hello to eveyone, I am facing a problem, i don't know if there is a solution. I am creating a custom indicator and i want the readings of this indicator from the timeframe H1 to dispalyed in the timeframe M15. For examlpe: if ( iMA(NULL, PERIOD_H1,.....,i) > iMA(NULL, PERIOD_H1,.....,i) {...
I need to read a .csv file with a single number (say 0.45365345). Depending of this number the expert will make decisions on trading... I have wrote the following piece of code in the start() function: // Read the file with the probability int handle=FileOpen("test.csv", FILE_CSV,...
Hi: In an indicator I've been developing, I need to save 2 variables on changing chart period for use in the new chart. The code below is truncated from the indicator and uses only the OnInit and OnDeInit events. I stripped and simplified it from the main file so I could troubleshoot it. Basically,...
Hi, I'm new to MQ4 coding. I hit some problem when using customer indicator in my EA. I coded an EA that use an existing indicator. When I run my EA, the indicator is loaded in the chart and I'm able to use the buffer of the indicator. See attached 1. I can see from the log that after EA is loaded...
Hello everyone, I need some help to understand what this runtime error means. I have been trying to work it out, but I am making myself very confused about where the problem starts. CurrAsk= MarketInfo(Curr,MODE_ASK); CurrBid= MarketInfo(Curr,MODE_BID); Ticket=60055216; Price=0.800133;...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.