MQL4 and MetaTrader 4 - page 149

Is there a tool that will allow me to have open orders closed automatically based on their profit value? I am looking to have any open orders closed at -$50, for example, to protect during a major turn in one direction or the other
Hello All So I have an EA which, itself, is executing perfectly, but I'm getting duplicate Journal messages. As you will see below, there are a vast number of duplicated journal messages, which I believe have resulted in Error #4025 - which is an OUT OF MEMORY issue. These are not duplicated Print()
This is a custom Indicator and while applying it on chart it says the following message. Using it on vps. What could be done to rectify this issue
Can someone offer me advice. I am still on mt4. I have indicators that really lag and lockup my platform and it is becoming a major issue. I deleted the logs but don't see much difference. Are there any suggestions that can provide relief. It is not really a new computer but I can't afford an
Hello, MQL5 Community Please assist with the "Warning" Message from my MetaEditor code: I'm currently working on an EA and have been unsuccessful in resolving the message. The error appears to be caused by highlighted operators in my initial code below: if(remain==0 && Ask>maVal && OrdersTotal()==0
Hi, Please, I need help with the source code . I have downloaded the indicator for open trades, and I need to add an alert according to the technical analysis only for open positions. I want the indicator in only one graph window, but the alert must work on all open positions (traddes). Can you
Hi, I am in India and trading in nifty. My local Market timing is 9.15 AM to 3.30 PM IST (22.45 to 4.55 as per my brokers MT4 server time ). I am using daily timeframe. Is there any script for MT4 where I can have my daily candles open at 22.45 and close at 4.55 as per my brokers MT4 server time
double a; a= 1 / 5 ; Alert (a); why the result is 0
ea expert. the winning lines no longer show do you know why? code error? void CloseThisSymbolAll() { for ( int trade = OrdersTotal () - 1 ; trade >= 0 ; trade--) { OrderSelect (trade, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() == Symbol ()) { if (OrderSymbol() == Symbol ()
So i have a vps thru accuhosting and I have been running backtests on the Vps as I don't always have an internet connection. So what I'm noticing is my modeling quality is low as well as my history center only holding about a month worth of data for backtesting on smaller timeframes. I have tried to
Good morning colleagues, and as always, thanks in advance. Today I find that I cannot upload an update to the market because the validator tells me that there are no trades. It's strange, because there are in the strategy tester , and also in a live account. The log is this: test on EURUSD,H1 there
  Market condition indicators/tools  (89   1 2 3 4 5 ... 8 9)
The first indicator (or indicators) for market condition was created by Igorad. It is AbsoluteStrengthMarket_v1.1. It was described starting from this page to this one. ------------------------------ Description of the color: Blue: Up; Red: Down; LightBlue: Bear Market Rally; Orange: Correction;...
Hello, I dragged the Error window which is usually on the bottom off the attatchment with the lower border. Now I cant get it to show there anymore. The only think that I found to show the errors now is the toolbox which has a bug and doesn't show the full content. Do you know how to show the...
Hi guys! I created a simple trading algo which opens long positions when it received BUY signal from an indicator and closes all long positions and opens Short positions when it received SELL signal. Everything works and I decided to add a trailing SL feature. Unfortunately although it prints no
Hi. The buy signal alert works properly for the following code (Alert is displayed when the candle is closed), but does not work for the sell signal. Can anyone solve the problem? //+-------------------------------------------n-----------------------+ //| MAB_TD_Sequential
I need to get only today's orders (both open/closed). This function runs 5 times within every second (please don't ask why, I need it). My problem is I only can do it by examine all orders of the given account. It can be a big problem if the account's history has a huge number of orders. Is it
With the frequent memory allocation, it is recommended to use a third parameter that sets a reserve to reduce the number of physical memory allocations. All the subsequent calls of ArrayResize do not lead to physical reallocation of memory, but only change the size of the first array dimension
Hi I need Rob Hoffman Overlay indicator for MT4. Here is the source code for Tradingview. Would you please tell me how to convert it for MT4? Many thanks in advance. study( "Rob Hoffman - Overlay Set" , shorttitle = "RH - MAs" , overlay = true ) a = sma(close, 3 ) b = sma(close, 5 ) c = ema(close
  order repeat?  (14   1 2)
hi, im using the following command to place an order at a preset price: OrderSend(Symbol(),OP_SELL,Lots,91.000,1,Ask+StopLoss*Point,Ask-TakeProfit*Point,"sell",0,0,CLR_NONE); RefreshRates(); or...
Hello everyone. Can someone please correct the attached indicator or point me in the right direction (although I'm not very good at programming)? When the MT4 is opened, the indicator currently shows the correct value, but then stops redrawing. I need to refresh the chart to show the correct value
//+------------------------------------------------------------------+ //| CCI.mq4 | //| Copyright 2005-2014, MetaQuotes Software Corp. | //| http://www.mql4.com |
Hello ! I need help, I have an indicator that I want to place a button on that when pressed, the indicator will be completely eliminated. Can you help me? I only need the command to remove the indicator, the rest is already done.The only thing missing is its button (I'll create it) to remove the
Hi everyone. I have somewhat weird issue. I have this template file I use so I don't have to rebuild whole object and indicator in my chart. When I first attach to the chart, it works like intended. Then due to certain circumstance, I need to reinstall the mt4. The second install only fully loaded
After you are done doing your optimization on your algo's parameters. Is there a shortcut to run the list of results over a new date range or do you just have to do it manually
i can not figure out what is wrong the buy close well .. but the sell do not close !! as you can see in the photo attached. here is the code : //---Reverse Option if ( OrdersTotal () < 2 ) { int ordertype = OrderType(); if ( OrderSelect
Reading account history tab (MT4 Terminal Window). After reading https://www.metatrader4.com/en/trading-platform/help/overview/terminal/terminal_account_history seems that red colored cells indicate trade ended in SL while green colored cell trade ended in tp. How about the non colored cells? Thank
ea expert. how to add these gains in the chart in ea expert
I have written an EA which works perfectly fine on MT4. However, when it comes to running the same entry positions on MT5 it just doesn't wotk. I have spent hours tryna get it to work but cant seem to see what I am doing wrong. Below is the MT4 snippet of the source code . void OnTick () { if
Hi guys. I am aware of how to code a boolean external variable to be used at the parameter window when running the EA. But I want to be able to code a check box to be used at the parameter window when running the EA since check boxes are handier. How to do that please
hello :-) I am looking for a very simple EA (mt4) that repeat a trade automatically once it is closed out. Lets assume I manually create a Long ENTRY Order at 1.30 for 1 lot, with a SL at 50pip and TP at 100pip Lets assume my Long ENTRY Order gets triggered and thereafter my TP or the SL is...