Hi, I have been over this over and over and cannot see what the problem is. It keeps compiling //--Adjust stops ----------------------------------------------------------------------// void AdjustStops() { for(int Orders =OrdersTotal() -1; Orders>=0; Orders--) { if
Hello, I need to make my take profit as on the fibonacci lines. I know its hard to use fibonacci on the EA. so I am trying to make it as percentage. For example. I want the EA to calculate the highest candle, then make the take profit as 0.8* the total pips of the highest 2 or 3 candles. I dont know
Dear coders, this is part of my EA and I put BBand Stop indicator into the EA by using function, I don't want using iCustom function to get Buffer value. The problems is final array print in journal shows wrong value, I appreciated if you check it what is the problem. for your information journal
Hi guys, I use Chartscreenshot() to take screen of my chart but I have problem with width and height of taken pictures. As you can see dimension of picture is small. Do you have any idea to fix the problem ? (All windows of MetaTrader such as Terminal, Mrket-watch and Navigator are closed during
Hello everybody I am trying to code my own currency strength meter. The meter would draw a histogram of every currency in separate window. So one windows for USD, one for EUR, one for JPY and so on ... The strength part i coded and histogram works for all pairs But i am having a problem on inserting
io mean by that not to bring the chart out of mt4 plattform but to be able to move the chart with the mouse in both azys thanks in advance
Hello, I saw an EA-system which is promoted by a guy who give the Investor Password and the account no. I had loged in and the results I saw were good enough. Finally as I start to observe the live playing of the EA, I realise the following weird: - it opened more than 30 trades, and the next day
Hello, Sometimes when backtesting an EA, the report shows large absolute and relative drawdown numbers, but looking at the graph and results in details I don't see any trace of this large drawdown. Why is that
Hi How to change TERMINAL_PATH so that can I start other MT4 Terminal instead od default MT4 terminal?!I p.s. I have few Metatrader4 terminals and want to switch my MetaEditor4 (compiler) to different MT4 terminal! How or where can I set this path to debuging MT4 terminal
Please help me this error. I use this custom indicator to call its function it has two breakout line up and down . I want to buy when price breakout at upper line and sell breakout at lower line. here is picture #property indicator_chart_window #property indicator_buffers 2 #property
[Deleted]
what i like to achieve is that instead of every tick the bid and ask price will be saved to a csv file, i like to have the bid and ask price saved in a csv file for every second. i tried the sleepcommand for and add 1000 milliseconds but that does not work. could anybody help me fix the code? ( code...
Hi Friends ... How to get prices for this axis Thanks for your help
Good evening, I'm trying to modify this functionof my EA. The EA open several trade. What i'd like to obtain is that the function find only one thade that have the condition (in this case that the profit is >0 && <-1) Actually it retursn all the trade with this condition. Here my code double
[Deleted]
Hi fellow coders, I have a EA that then references a class file called Orders. Orders then calls the OrderSend function. Strategy tester acknowledged OrderSend commands in the class file just fine but I think when running in auto trade mode the OrderSend must be in the EA because no orders are
By mistake I normalized the values I'm getting from iMA with Digits. double MA(int MA_Period, int shift) { return(NormalizeDouble(iMA(NULL, 0, MA_Period, 0, 1, 0, shift),Digits)); } Then , I was using this for finding the cross. (vice versa for cross down) if(MA(Fast_MA, 1) > MA(Slow_MA, 1) &&
Dear All, I am new to Forex trading, having little experience on Intraday share trading. Compared to Share, In Forex I loose lot of money (in demo account) because of Stop loss hit. Since I could not monitor full time and I am looking for Hold and trade, please advice is there any possibility to
Hi All Just wondering if a method of automatically changing the Account History in the terminal to today existed. In other words my EA uses data from OrderHistoryTotal() however when the new trading day opens the Account History Terminal still shows yesterdays data. I then have to physically be in
Keeps removing itself upon attaching to live chart in all terminals
Below is code for a news EA. Buy and sell stops are placed at a given time before news release manually. When one in entered the other is closed. I am trying to add functionality to allow the stop loss to follow the take profit by X pips. Say, if profit is 10 pips then stop loss would move to 0 and
Hello, Is it possible to change the color of the bar where a trade entry and exit has happened? Thank you
Hello Guys, Can some one add alerts in this indicator, when market touches the SnR levels. Thanks
[Deleted]
Hello, I was read last topic about DDE and I try on my excel.When I type "MT4|BID! USDCHF " on excel but not work.Anybody please teach me how to setup. Thank you, Rizal
Hi everyone, I'm using a fib-tool that draws trend lines with labels at the right side, something I find very convenient, so I want my trend line to have a label on the right side too. I've added a label in the code, and the compile is without errors, but the label does not show up. Can anyone...
Hello, am new to mql4, i need some help with this code to trade opposite the ea place pending order and modify the pending order until it takes a trade.. so i double paste the order code for it to trade opposite but still no opposite trade int z=0; for(i=0; i<OrdersTotal(); i++) {
Under the MetaEditor4 Debug menu there is an option "Start on History Data", however it is disabled. Reading through the help file indicates that I need to set Debug options to use specific settings which I have done (see attachment), however the menu item is still disabled (greyed out) with no
I've been trying to figure out a way to create an indicator that would be a separate_window at the bottom of chart that would simply display numbers on various bars. I don't see a way to to do it with buffers and the only object that I can find that might work is the OBJ_TEXT. The problem is that
Hi, I am learning to code, wrote a simple counter as practice. it is just supposed to Print 1,2,3,4,5,etc but the count is coming out as 6363,6364,6365 etc. Can someone tell me what I have done wrong. Thank you in advance. //+------------------------------------------------------------------+//|
Hello everyone, i start this topic as i'm an absolute newbie in Metatrader and his language; i'm converting several EA from mq4 to C# and debugging the expert advisors i've been able to convert almonst everything but i have some doubts about the array Low[] and High[]: i took the definition of Low
Hi, I am a new user. After installing mt5tester, I am getting "cloud disconnected". Not sure what is the problem. I would like to know any guidance or some trick to make it work. Thanks
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.