HI, int orderSend = OrderSend ( Symbol (), OP_BUYSTOP, lotSize, Ask+OpenBuySellStop* _Point , Slippage,Bid-FixedSL* _Point , Bid+FixedTP* _Point , comment, MagicNumber, TimeCurrent ()+ 60 * 45 ); FixedSL = 300 points FixedTP = 1000 points I got BUY STOP: Price: 1.05837 SL: 1.04998 TP: 1.6298 So SL
Hello everyone! Why do I keep receiving not more that 30 notifications from my EA at a go, even when the loop is meant to send up to 60 notifications. Is there a limit to the number of notifications to send from buffer? Does same go for emails? Hope can this limit be increased
string query = StringConcatenate ("symbol=BTCUSDT&isIsolated=TRUE×tamp=",( long ) TimeGMT ()* 1000 , "&signature=", signature); string script = StringConcatenate ("sapi/v1/margin/openOrders?", query, "&signature=", signature); string host = "api.binance.com"; string header =
Hi, Does MT4 have the ability for us to "save" our TP and SLs so that if I click buy or sell, the MT4 will automatically set my pre-saved SL and TP without me having to manually drag the lines? My style of scalping is quite fast, so it would be helpful. If not, is there a free EA out there that does...
Hello I am looking an indicator what will show highs and lows of 1 hour. I have some decent results on trading based on highs and lows.
i keep getting errors with this but i follow the videos to a t. need some help with this. also when i download mt4 i get mt5 on my laptop. how do i fix this and how do i fix the errors when i create my ea
Hello! Is it any other method to detect when pending order is activating? Other then loop through all orders and search by OrderType() ? For example a have 5 pendings open, and when one of them activates, I want to trigger other actions. Thanks
char post[], result[]; string str; int res = WebRequest ( "GET" , "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1m&limit=1" , "Content-Type:application/json" , 0 ,post,result,str); string stringData = CharArrayToString (result); string sep= "," ;
char post[], result[]; string str; int res = WebRequest ( "GET" , "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1m&limit=6" , "Content-Type:application/json" , 0 ,post,result,str); if (res != 200 ) { Print (res + "," + GetLastError ()); } else {
[Deleted]
I've got an EA that runs on many currency pairs/charts, and sometimes 2 or more charts will trigger trades at nearly the exact same time. I have filters in place that is supposed to prevent too many charts from having open trades at the same time, but this can be bypassed when trades are opened at...
Hi Metaquotes, We started having problems with the broker servers search in MT4 today. From testing it seems to be happening on Windows 2012 R2 VPS only? I have tested Windows 2019 VPS by comparison and it works and does not have same issue. Windows 2012 end of life is not for 1yr more with EOL on
how to update mt mt4 platform to get updated indicators eg ma colour change etc
would it be possible to use https://www.mql5.com/en/docs/basis/preprosessor/conditional_compilation #ifdef, #include, etc. to have one codebase for both mq4 and mq5 variants of an EA? the main logic is the same but might call different order functions and other such functions which are different in
Hi, why in the following code does OrdersTotal() not always return an order? void OnTick () { // Timer int hour = Hour(); int timehour = 10 ; // Buy Switch static bool buySwitch= false ; // Adjust Lot Size double lotSize=LotSize; // Current order counts int buyCount = 0
Is there a way to capture the high/lows of an indicator value during the formation of a new bar similar to what we already available for prices: High[0], Low[0] ? I wonder if there is some function already for it on MT4. I am not talking about high/lows of the price, I am talking about high/lows of
Hello, I am trying for a couple of days to solve 1 problem in my EA which I can not solve. The "issue" is following: Lets say I have a Sell trade running. After few positive pips the price reverses and the initial sell trade becomes negative. After x pips in wrong direction I want to open 1 hedge
Hello, I need some help. Like in the topic's title, I want to rectangles appear on the chart. Of course, I would like to learn how to code it in Meta Editor. It looks a bit like "zone" than normal rectangle, cause they have to stretch until one of future bars will break it through. Any form of help
Hi there, I was wondering if it was possible to get a list of input parameters given to an EA or Indicator? Right now I'm logging my EA's settings to a new file automatically whenever it detects that I'm using different settings so that I can look back and see what I was using in the past. However,...
if everyone I tried to check if there's an open or pending order using this code, int AnyOpenOrders() { int result = 0 ; for ( int i= OrdersTotal ()- 1 ; i >= 0 ; i--) { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol () && OrderMagicNumber()
hi, I need to get how much is bullish or bearish candle in points in real time and after that use if something. I have M15 TF if is my candle bullish with 150 points then use if something if is my candle bearish with 150 points then use if something This must works in real time, not on new bar
Statement for Brainwashing 1c, H1 timeframe. 4 main pairs. This is Brainwashing EA with i_Trend filer. This i_Trend indicator is used for enter and exit as well. It was estimated during the development of this EA to catch big trade. The level of i_Trend filter should be estimated once per week but I
Hi at all. This is my first try to add some changes to an code. But I really dont konw how to do this. I tryed some things, but without success. I downloaded this code from the net. It works. But I want to see the input propertys in the indicator options window. There is ony the Alert true/false
Hello forum, I have my entry and my stop-loss and I want to calculate the lot size according to my risk-management. It works fine and this is how I do it: double pipRisk = MathAbs(orderOpenPrice-orderStoploss);double lotSize = AccountBalance()*0.01 / pipRisk / (MarketInfo(_Symbol,...
I have just written a trailing stop function that starts at a hypothetical 20 pips and progressively decreases down to another hypothetical 5 pips as a trade becomes more and more profitable. It seems to be working but it's really messy and I would love some feedback. Thanks
Hello everyone, I would like to know why my EA send multiple orders (like 2 or 3 with same qty and same price) exactly on the same time ( not always but it appear nearly often ) even if i have some variable to only allow one order at the time. If someone could help me it would be great thanks Here
I need help please. I have a script that closes the opened positions and opens a new position in the opposite direction. But this script applies this function only to opened positions, from the current active chart. I would now like to rewrite the script so that all open trades are rotated no matter
Can anybody think how datetime bar_time=Time[1]; can cause an array out of range critical error while backtesting? It is a client doing the backtesting and apparently the history has been downloaded from elsewhere than the platform broker. I thought that if data is missing, there is a mismatch...
the idea is simple, mabe it is not a smart way to do it. The idea I had was using 2 iMAs to define whether it is a bullish or bearish trend, nothing special. When both iMAs cross, they usually cross right after a new Highest High/ trend reversal, or they cross right after the price ranges. Either

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.