[Deleted]
I am new to making indicators and the code. More used to EA'S. Here is an example of a relatively simple line indicator for Trend Reversal I put together. I can't figure out how to get rid of the Gaps and maybe have the third color work also. I know there are different ways of doing this from what...
Hi, by using kernel32 .dll I as normal user who started the mt4 that creates a file which at the end is set read-only: SetFileAttributesA( TerminalPath () + "\\experts\\files\\" + fileName, FILE_ATTRIBUTE_READONLY); But if I click on the Attributes of the file I see that for the users: SYSTEM: FULL
What does this function return... It seems some, if not all, brokers have different leverage for the various symbols. Typically metals & commodities tend to have different leverage from fx products...
[Deleted]
2014.01.09 22:29:11 Expert 'CurrencyChart' is an indicator and cannot be executed Hi All I am tryin to execute my first mql. it compiles successfull but when i try to attch it to a chart i get error 2014.01.09 22:29:11 Expert 'CurrencyChart' is an indicator and cannot be executed Please help.
Hey guys, i am new to Ubuntu Server 12.04, i were using Ubuntu Desktop before, an i've installed with wine the metatrader4. In Ubuntu Server, it seems not to be possible, or that easy (only terminal). So my question: Is it possible to install mt4 on Ubuntu Server, and somehow to let an EA trade on...
[Deleted]
Hi When my EA is supposed to make an order but it does not, I found out that GetLastError() returns 0, which means there is no error? So why doesn't my EA make the order then? Is there anyway to rectify this? Thanks
Hi I was fascinated by the discussion provoked by phy on "What is a tick?" Basically, if a tick is an event, how can it have a size? What is the difference between MODE_TICKSIZE and MODE_POINT? I use this to calculate postiion/order size:...
Hi, Can signal run on Multi Terminal with a lot of account with same broker and same signal provider ?? Hope next build can see "Signal" tab on multiterminal... :) Thanks
[Deleted]
Can anyone show me how to adjust the time setting in mT4. My time is show 1 hour behid what it should show, for the uk. Thanks
now I have make an Indicator, besides the indicator line, also drawing another line -- x. the code as below: when I attached to the chart. the line x will not be drawn(Expert complain unknown window), but if I compile the code again, the line x will shown. Then I want to know get some explanation...
hello I need the suggestions of you, I have this portion of code where I close orders if I gain, besides that let profits run with a difference of 10 percent. I do this because my broker has long takeprofit and I want to close faster. this extern double MinProfit=1.30;extern double...
Hi just a quick question If I have created tickdata-files for backtesting I created fxt-files in ..\tester\history. Does it work if I send s.o. just these fxt-files for him to do the same backtest. (The results may differ due to another broker e.g.) gooly
Hi I have question about predicting future highs and lows. Say for example I have highs and lows of the past and its high 100 and low 10 and the angle of the trend is moving 45degrees up and after 20 bars of 5minute data the highs are 120 and low 30... My question is do you know a mathematical
//---- input parametersextern int TP = 300;// take profitextern int TP_Increment = 200;// take profit incressementextern int SL = 500; // stop lossextern int RangePoint = 0; // rangeextern int AddPoint = 0;// add point to place stop...
Hello! Im new in MQL4, I'm creating a CI but I note that every time I switch from one chart to another the trends Im crating began from zero, there is a way to keep the local history in a chart? Best Regards
Hi all, Does anyone of you know if there is a way to tell the MetaTrader tester that we just want to terminate a test. For example, let's say that I want to run a test on a 5 years time frame and that after 3 months a condition is triggered on which I would like to stop the test. The only way I have...
Hi everyone, Do you have any example, rough codes on how to update existing data on MySQL Database? I have used this code https://www.mql5.com/en/forum/112333 but it only fetching the data on the database. Thank you very much
Hi i`m wondering if i leave the takeprofit to 0 in the OrderSend() will be equivalent to a very high number where the price can never get? So are they equivalent: OrderSend(Symbol(),OP_BUY,0.01,NormalizeDouble(Ask,Digits),MAX_SLIPPAGE,0,0,"",magic,0,Blue); OrderSend(Symbol(),OP_BUY,0.01...
I`ve just wanted to put a time filter in my EA to only trade between 7 Am and 16 PM (london- ny session) and for some reason, it took trades even after 20 PM yesterday, so it might be a glitch: if ( Hour ()>= 7 && Hour() <= 16 && STATUS= "BUY" ) //BUY.... if ( Hour ()>= 7 && Hour ()<= 16 && STATUS=
I have detected a broker which has the TickValue for EURUSD with basecurrency USD 0.0001 and they stick stating that this value is correct. I am quite sure it should be 1.000. I would appreciate some comments about this. Regarding my experience TickValue is beeing used on PL calculations from EAs
Hi I want to hire a programmer to write a code to execute trades based on my parameters. 647 520 5787 SP
Hello, I created an EA on the basis of 3 ema's crossing. The most important function is int Crossed, which gets the current emas and returns 1 if the direction is up and 2 if it's down. Later in the start() function, the EA chooses which Alert to show by if(isCrossed > 0 && first_time != true){.....
[Deleted]
Is it possible to save profiles like on desktop version? I am asking becouse during switching between brokers I am loosing charts - they use different symbols...
How? How can I create my own virtual market like EURUSD but ALIENDOLLAR vs ALIENPOUNDS .. Like for a game. Has anybody ever written code for this? *Also I subscribe to these forum topics but never get emailed when someone replies
[Deleted]
Hi, I am planning to invest some savings of about 120k. I chose forex market to invest a part of this . The aim is to target about 5% return monthly. I know I wont make money in all months. But I want to use a tighter risk management to protect my capital Help (Paid) I need : 1. Can you help me in
Hello. I am newbie in MQL4 and need some help... until now, I have only worked with one set of quotes of only one pair at the same time by dragging and dropping the robot in one chart. But, if I want to work in one chart with a robot that works with other quotes of other pairs is this possible? For
Hi all, I need to decrease a variable every time I close an order manually.. the variable to decrease is the number_of_open_buy_order or number_of_open_sell_order I'm under mql4, any help?
Hi, im interested in protecting my indicators from illegal copies or the use of other users im selling my programs.... i have found some articles to do that but im searching a professional solution, do you know one?
Hi, I'm new in mql programming and trying to create an EA, which the idea is check a buy stop order if executed then delete the sell order and vice versa.. The buy stop and sell stop order are open manually, the order ticket are use for ea input. But when I try it in demo, when 1 order is executed,...
Dear all, In order to see the trade history during backtest, I followed the instructions in https://www.mql5.com/en/articles/1452 (the EA is downloaded from the attached file in this article, too). But I cannot see any history trades output during the backtest, and it seems that the vHistory...

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.