I would like to know how to Buy with Broker A and automatically my Broker.B will Sell instantly? If my position was closed by Broker B due to margin call, my position in Broker A will closed instantly as well. I want to hedge each other with different broker with automate EA or script. Please advise...
I need custom moving average indicator when i run it 1M time Frame i need to show 5M Time Frame values. anyone have like this indicator? thanks
Hello, from another software than Metatrader I'm used to the following: When adressing Array values (for example Bars) - in the past - values from 1 upwards are used. Value 0 ist the present bar. (like MT) When adressing Array values - in the future - negative values are used. How does MT4 handles...
Hi, I am new to this forum and mql4 so please forgive my basic question. I knew from before that some other platforms didn't let a Buy and a Sell position to be open at the same time. For example if you had a buy position, then they didn't let you to open a separate sell position and instead they...
i recently had to download a new mt4, and i cannot find the editor or compiler. i thought it all used to come in as a package. has that changed? anyhow, from where can i find and download the editor and compiler(web address)?
Can someone please give options how to include a simple license into an indicator with mql4. I did not find much information. Thanks you.
I very new to MT4. I got to the point I wanted to download an indicator. I like the one called HLC from the previous day. It provides a way of shifting the lines to the present day. I was able to download the indicator. I chose the "common MT4" method. I could not see an obvious way to put it...
Hello All, My EA is burning out at times of high volatility. I am trying to avoid trading during a major news. Any pointers or suggestions or articles towards one? Right now I am thinking of storing news event timings in an array. Then compare with the server time. Anything to keep in mind?...
[Deleted]
Hello everyone, i want to open only 1 SELLSTOP and 1 BUYSTOP Pending Order. i am using this below script. when i start EA it work greate and open 1 BUYSTOP and 1 SELLSTOP. But My problem is some time EA Open or make Duplicate orders. Mean's When i close Sellstop order it open again sellstop...
vol=MathFloor(AccountEquity())/10000; { for( int count=0;count<OrdersTotal();count++) { OrderSelect(count,SELECT_BY_POS,MODE_TRADES); if (OrderType()==1) { vask=MarketInfo(OrderSymbol(),MODE_ASK); OrderClose(OrderTicket(),vol,vask,clrAliceBlue); Print("OrderClose error",...
I want to make an EA.For this i need info from Data Windw i have to get Value of EMA,GHL,QTI indicator.Can any one suggest how can access in MT4 Editor
Hi all, could you give me some reference or url to learn about chart a synthetic product, i mean, for example chart the substraction of two pairs or indexes. Is it posible two create synthetic products and backtest them with mt4?. Regards.
G'day all I had this custom indicator made and for what I want it is a little beauty. It basically draws a box around inside bars, double inside bars, triple inside and so on. But I had it designed to work on smaller timeframes. A couple of things I don't like. But those are separate issues. This...
[Deleted]
Hello Fellow Members, I had a question concerning pivot points and datahistory. All pivot point indicators I find for MT4 only allow for the pivots tobe applied to the current day. I wanted to do some backtesting using pivotspoints but I’ve had to calculate them by hand and use the horizontal line...
[Deleted]
Hi guys! How can i make indicator or expert advisor work only in MT4 strategy tester? Is there any peace of code?
Zero divides will cause an indicator to detach from a chart, but as seen here this is not the case. There is no error. Just a message that it was removed.
I wrote a small code to delete all order . At first it looks like this : void Close_Grid(){ for (int i = OrdersTotal()-1; i>=0;i--) { if (OrderSelect(i,SELECT_BY_POS) == True) { if((OrderSymbol()==Symbol()) &&...
[Deleted]
Hello - very simple task(i think) - is it possible to create ea that grasps the internal file text or excel or whatever and places the orders with predefined values?; I would appreciate the mql proggramer answer and help; thanks much!
Hi, Before I get a programmer to develop a program (EA), I'd like to test out a semi automated system. I'd like to place orders, close orders or modify orders from an excel spread sheet. and with a single click load the order instantly. I think this is pretty straight forward. Thanks George
[Deleted]
I have a NewBar() function which allow my expert trade only on New Bar, but i've been seeing different results using Every Tick and Open Prices Only,why? My Expert trades On New Bar, but yet still seeing different results in the two Strategy Tester Modes.. Is there a way to achieve same results...
[Deleted]
Hi, Does anyone here tried to open/close a CDialog with a click of a button on a base CDialog EA? Thanks
I'm just curious as to whether theres any outlet for combining idea's and skills together. Like a website or such. I was going to email my old university to find out if there were provisions for getting a team together, such as 2/3 coders, 2 mathematicians, an electro mechanical engineer and a
[Deleted]
I wanted to log MT4 ticks for external analysis. I used test code in an EA like this (running on a 1M forex chart) void OnTick() { MqlTick last_tick; //--- if(SymbolInfoTick(Symbol(),last_tick)) { Print(last_tick.time,": Bid = ",last_tick.bid, " Ask = ",last_tick.ask,"...
Hi there, i need a little help. When i open a position, i need to set the stop to move to breakeven when the price reaches 50% of the take profit distance. Only once, i don't need that the stop keeps following the price. Is this possible? Thank you!
I have multiple charts open at a time and many objects are attached to each chart , because of too many objects are updated on all the charts results into to much use of my CPU cycles almost 25% of CPU , with the help of IsChartVisible() , I want to limit object to update on chart which is visible
I'm trying to write a script which writes my trading history to a binary file. I tried to follow the example at https://docs.mql4.com/files/filewritestruct, but I keep getting the compile error "'tradeBuff' - parameter conversion not allowed OSR Trade History Recorder Binary.mq4 72 33" I can't
Hi! Is it possible to use original quotes from Thompson Reuters in MT4 terminal (M1 timeframe)? May be there is a server like 192.168.32.32:433 so that I can connect to it? I am really satisfied with Metaquotes quotes, and I really love them, but I wish to compare the quality, for example with pure...
I'm not sure if this has been raised before as there have been several reports of MT4 crashing in the various recent build updates. I'm on build 940, using Windows XP SP3 I have run several tests in strategy tester on a new EA that I have written and everything works fine. Then I tested it on...
[Deleted]
Hi guys, im new in EA, im create EA but im having trouble with errors 138, and how do i put take profit by modify order from input because when i create modify order take profit the result still error 138, here my EA #property copyright "Andy"#property link "Andy" extern int Magic =...
[Deleted]
i have trade using robot i trade many curencies in one platfrom, but when the signal confirm in several curencies it only execute one ow two curencies, IE : its Conform to execute EUR,GBP,AUD,JPY but its only excute EUR and GBP, what logic or setting do i had to fix
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.