[Deleted]
Hi, I modified Custom Moving Average to draw in two color, but in displays a gaps when changing direction. How to fix it?
Hi Guys, I cant start this thread saying I'm a noob programmer even though I really want to because this is a silly question :) and it makes me feel like a noob lol. Coming from the C# world this is simple. I have the need to have a string array (string MyString[]) and at a certain point I want to
Hi Is there a way to color a horizontal part of the candle, i.e. different colors at different price levels with in the same candle? either in mql4 or mql5. Any idea how to by example? Thanks
[Deleted]
Hi Everyone, I'm looking please for a simple indicator/ EA able to add a sound alert (plus eventually a popup alert) when a Horizontal Line placed on a chart is being triggered at a certain price. Any suggestion, please? Thank you! Paully
Hello! Could someone help me by saying how can I move objects without selecting them? I saw a video recently and found it very interesting, but it's been days and I still have not made any progress. https://www.youtube.com/watch?v=4VyC1TahLRo ---> how can you move the equal object it does at 1...
I hope you find this as amusing .. If you are looping order pool for open orders, if you count down you are reading orders most recent to oldest? Okay If you want to close all orders opened most oldest to most recent you would be counting orders up? Visually void CloseAllOrders() { bool...
GoldWarrior02b EA. M15 timeframe. 4 main pairs. -------------- GoldWarrior is very famous EA which was originally developed by 3 persons from different countries. It is really legendary development: it was started before Metatrader 4 was created, and no one believed in that time that it is possible
I'd like to store values with up to a precison of 4 decimal places. I've investigated some of the functions available that handle precision but all of them perform rounding. Is there are way of preventing this, or a way of only rounding down? double numberTest = 1.16906;void OnStart() {...
Dear Sirs! I would like to offer you the VPS Virtual Server rental service. Hosting VPS or Virtual Private Server allows Forex traders to use virtual space on the server of the hosting company in order to keep Expert Advisors for MetaTrader platform up and running 24 hours a day, 7 days a week. VPS
I have many grayed out items in my Market Watch due to my broker not supporting the symbol, how do I remove them? My broker uses AUDUSD-5 instead of AUDUSD for example. Thanks
Hi guys, Looked through the archives of the coding database. I am looking for a script which does the following: As soon as I open a trade and it reached X amount of profit it need to move the SL to BE immediately and automated. Is there already a script available for this matter? Kind regards, Mark
When using just one MT4 terminal how many accounts with MQL5 VPS servers (Using only 1 bot on each server) can I have on it?
Hola, I have some trouble finding the correct Logic. With this indicator I want to get a candle body that is X amount bigger than the previous (Works so far) and draw a line at the open price (also works). Now if the price crosses any of the lines, i would like to change its color and stop it from...
int i=0; if( .... ) //"when new day" { i++; dPriceHighAll=High[Highest(NULL, 0, MODE_HIGH,(iBarShift(NULL, 0, StrToTime(TimeToStr(dtTradeDate-(86400*i), TIME_DATE) + " " + sTimeBegin)))-(iBarShift(NULL, 0, StrToTime(TimeToStr(dtTradeDate-(86400*i), TIME_DATE) + " " + sTimeEnd)))...
Hi I draw a rectangle on the screen and want to call a function if price touch the rectangle. Is there an elegant way to do this? if so what is it? Thanks
hi, Please help me, i have problem when i want to delete all pending order outside the range working time, my coding not work to delete pending order ,please help for this problem working timeextern int HourStart = 9; extern int HourEnd = 11 //-----if(OrdersTotal()==0)...
Hi guys, Ive went through every material on error 4107 for EAs. I have this Expert that constantly returns this error, but Ive made all adjustments to prevent this - stopleve, normalize double , but still nothing. im adding the code and hope someone has ideas. thanks double...
Hi, I'm not sure if this will work GlobalVariableSet(_ticketshort,OrderSend("XAUUSD",OP_SELL,PositionVolume,Bid,0,0,0,"",0,0,clrNONE));and later,if(OrderSelect(GlobalVariableGet(_ticketshort),SELECT_BY_TICKET)){etc..} Can I make the ticket number a GlobalVariable?
want value "TimeOpenFirstOrder" to use how to fix int TimeOpenFirstOrder; for(int k=0;k<=OrdersHistoryTotal();k++) { if(OrderSelect(k,SELECT_BY_POS,MODE_HISTORY)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber) {...
hi all, im new to programming and trying to modify a free EA. what code do i need to complete the below, to show codes from https://book.mql4.com/appendix/errors { HandleSendError(GetLastError()); // implement this custom functon on your own. return; } many thanks
Hello everybody. I have a very simple piece of code that calculates candle size (current and previous). Then, based on the simple panel sample, I created a panel with 2 labels. I searched, but I was not able to find how to get the variables on the panel. I'm sure there is a way......
Can anyone help me by providing an example of how the following function is used correctly.. #import "user32.dll" long CreateWindowEx(uint dwExStyle,uint lpClassName,uint lpWindowName,uint dwStyle,int x,int y,int nWidth,int nHeight,int hWndParent,int hMenu,int hInstance,uint lpParam);#import...
Can you include a way to pause/slowdown the backtester after it has reached a certain time or date/time? MT4 tester does not currently have ability to pick HH:mm time of day to start backtest. So you always have to start at the beginning of the day, even if what you need to obverse is near the end...
Hi, I'm trying to open a buy and a sell order then delete them if they don't open in 40 seconds. The loop is decrementing, but only the sell stop order deletes. I can't figure out what I'm doing wrong. Here's my code: double sell_ticket; double buy_ticket; int TotalNumberOrders =...
Ended up getting tangled and confused again by an example given in the manual/tutorial regarding Function Calls. Here's the code: //------------------------------------------------------------------------------------int start() // Description of function...
Is it true thatfunctions like iRSI returns 0 (zero) if you haven’t yet open that symbol in thegraph window or downloaded its historical data? In the nextsimplified code theRsi returns 0 for some symbol/timeframe combinations. Is there away to avoid this? string theSymbol = "";int theTimeframe =...
Hi, there is an indicator in sub-window. I want to make arrow signal in main windows not sub-window. In the followings: #property indicator_separate_window #property indicator_buffers 7 #property indicator_color1 Red #property indicator_color2 Blue If I make arrow signal buffers, It shows up in a
Hi The 2 lines below are braking my code: #include <windows.h>#include <stdio.h> Error: can't open "C:\Users\myname\AppData\Roaming\MetaQuotes\Terminal\someid\MQL4\Experts\windows.h" I tried to locate the files manually on my system for no avail Any suggestions? Thanks
Hi The code below is expected to take the screen shot of the chart window as is, but when I shift the chart window x number of bars, it still takes the image as if the chart is not shifted, It also shifts my custom indicator so that it does not align with the chart bars correctly, which is not...
Hi all, Say that I have more than one order open and I just want to get the profit, commission or any other information regarding the state of the last order. Is the following code the right way to get it ? void OrderGetProfit() { Profit = 0; for(int...

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.