MQL4 and MetaTrader 4 - page 181

Hello, I am tagging the only moderators I am aware of @Keith Watford @MetaQuotes in case William Roeder decides to comment on another one of my questions harassing me and then playing the victim. From what I can see I have multiple people reading my questions but since they keep turning into back
Hi everyone I try create a plain strategy using PSAR and supertrend indicator. this is code for PSAR indicator. if(sar(shift+1)>Bid && sar(shift) < Bid ) > >>> BUY if(sar(shift+1) < Bid && sar(shift)> Bid) >>>> SELL this is code for supertrend indicator (indicator attached). if (supertrendUP(shift+
Hello dears Can you help me I have an expert that creates a text file (.txt) containing DOS commands (cmd). How can an expert convert this file into a batch file (.bat)? I am currently converting the file manually but would like it to be done programmatically by the expert Metatrade 4
Take advantage of five percent and close all orders, Can Someone give me this Code MT4
void vFCountBEP( int iCmd) { int i, iTotalOrders = OrdersTotal (); double dOrderLots = 0 , dOrderPrice = 0 , dBEPPrice = 0 ; for (i= 1 ; i<=iTotalOrders; i++) { if ( OrderSelect (i- 1 ,SELECT_BY_POS,MODE_TRADES)== true ) { if
anyone please help how do i used the use step over and step into buttons on metaeditor 4 please help see the image below
Previously on build 509 the GMX for the email alert works fine, but after the update to build 600, it doesn't work anymore. This is the setting I use for version 509: SMTP server: mail.gmx.com:587 SMTP login: email@gmx.com SMTP password: ***** From: email@gmx.com To: email@gmx.com now the error is
If I enable #property strict, then the loop behaves differently. #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict double FastUp[]; double FastDn[];
Message: Hi folks, I am unable to download historical data. when i attempt, i get the message: there are no new data for symbol. I have not previously downloaded any data. I've tried this on both real and demo accounts Could you please advise. Best regards
Hi friends, For example my EA trades 4 different pairs by just putting it on EURUSD. I know how to use Comment for current chart, but in my case is it possible to use Comment function for 3 other charts? As always, your advice is greatly appreciated
Since last Friday, I have been receiving this error when I tried to download the history data from History center in MT4. All symbols and brokers have similar error. Do you have any idea? MT5 has history data too, but I find some indicators not returning correct values as they return in MT4 so I
Hi.I am a mql4 developer.I have a project from a customer.It is a trading panel.But I have some problems to understanding the requirements.this is the project requirements: https://www.mql5.com/en/job/157409
I have wine installed but when MT4 is being installed it requires proxy serve settings. Anyone with how to solve this please provide yuor input
How can I find the timezone that my broker resides in? I can get the time of the last tick using something like: SymbolInfoTick(Symbol(), last_tick) That tells me the time of the tick, but not the time zone. I've looked at various AccountInfo, MarketInfo and SymbolInfo functions, but I can't find
Hi, I am trying to push the price feed from our MT4 server to our website. We have the code for the website but we are having trouble connecting to the source price feed. Can anyone assist? Thanks
Hi, Having and issue with my MT4 desktop version. I use an auto-trader which has been working fine until this week, but now any signals that come through are met with a “trade is disabled” message. Trading through the MT4 app is fine, and I can enter the signals manually with no issue. Any
if ((OrderMagicNumber()== 0 )==(OrderType()==OP_BUY)) { OrderSend ( NULL ,OP_SELLSTOP,ls3,tpSell, 10 ,slSell,tpSellStop, NULL , 1 ); } I want my EA to only do the OrderSend if the OrderMagicNumber 0 (a pending order ) is fulfilled. I can't seem to make this work. Any feedback would be greatly
Hi everyone.. Appreciate if someone could help me with this indicator. I need this indicator with alert(message, sound & email) when the arrow appear. Million thanks.. :) <*.ex* file deleted>
I am trying to change the position the chart is fixed to when zooming in and out. By default its fixed to the leftmost bar, I'd like it to be fixed to the rightmost bar. So when I zoom out more bars will appear on the left of the chart. If somebody could point me in the direction to change that
Hi, First of all, apologies if this has been discussed before. I have optimised an EA (with GBPUSD on M30 and H1) which now produces absurdly profitable results in the MT4 strategy tester using recent data. The problem is, it’s been on my demo account for nearly a week now and has almost melted the
Looking for an EA for MT4 to trade forex. I would like it to have a position sizing tool, as many of them do, but also a stop management feature which allows a stop to be moved automatically to a new price level if a condition is met, such as a user-defined price. Example: I'm long at 1.10250 with a
[Deleted]
Hi, How can i define open price of last trade....... (when is trade still atcive, isn´t closed) thank you
double point = MarketInfo(Pairs,MODE_POINT); double low = iLow(Pairs,PERIOD_H1,0); double high = iHigh(Pairs,PERIOD_H1,0); double lotsize = 0.00; bool newOrder = false; if(OrderSelect(lastOrder(Pairs),SELECT_BY_POS,MODE_TRADES) == true) { if(OrderType() == 0 && low <=
I have 3 computers setup to trade. The 2 I prefer to use won't o[en metaeditor. The third one will. The reason I prefer yje first 2 is I have numerous custom indicators on them. Can someone please tell me how I can solve the connection problem. I would appreciate anyand all help. Thanks
I am looking for an EA that, when the margin maintenance rate falls below 100%, closes the positions in order starting with the oldest position until the margin maintenance rate exceeds 100%. If you know of such an EA or a similar sample code, please let me know
I've tried using another date/time object as the button, but that either scales to the chart or the object its based off of. Is there a way to link an x/y object to an object instead of one of the chart corners
Hi Everyone, This is my first post, except for some code I posted to help someone determine if the market is open. So I guess I mean this is my first new topic post. I am trying to code a trailing stoploss and got hung up for a few hours on something that should be pretty simple for me (I have been
[Deleted]
I have written an mt4 EA. I want it to display my contact information in order comment. What exactly should i write in source code if i want my EA to display my email id that is, "sammiawan@gmail.com" in the order comments and charts.Thank in advance.
In CEdit i can write a decimal number with a dot (for example 0.1) and it works without a problem, but if I write the same with a comma instead of a dot (0,1), CEdit cannot read it. I have a reason, why i need to use a comma instead of a dot, but i don't know how to do it. Does anyone please know
Hi everyone, I am working on a specific time strategy and I am trying to backtest it with MT4. I use IC Markets so the broker Time zone is GMT +3. For the data I used the HST data (OHLC) from the History Center of MT4 and the tick data (FXT) from a site that took it from IC markets My question is