MQL4 and MetaTrader 4 - page 191

I want to ask you if it is possible to close all open orders and to delete all pending orders within a unique call to a method. Without the need to iterate over Orders MODE_TRADES. Thanks!
Hi, can someone please advise an EA for GBP USD that would wait for the 1 hour candle to close at 3 am EST, that calculates the high and low of the previous 1 hour candle and then set two pending orders; a buy stop 10 pips above this 2 am EST candle high price and a sell stop 10 pips below...
  Trend Quality indicator(s)  (131   1 2 3 4 5 ... 13 14)
These indicators are all based on a 2004 April issue of Technical Analysis of Stocks & Commodities article by David Sepiashvili. Originally there were only 2 versions developed by the author, but there were some possibilities that were not explored in that article which lead to developing some more...
Hello Guys,  I recently changed the broker and started using the MT4 platform. It's amazing how much is possible with it. But frankly I'm also a bit overwhelmed and searching for something specific is not that easy. So I'd like to ask you for help. Does anyone happen to know if there is an...
Hi all, I have a copy/paste script that can copy trendlines, vertical lines and horizontal lines that I draw on my charts. The ideea to do this is to be able to draw them on naked charts and then copy paste them on the same charts after I apply templates.  The problem is that this copy/paste script...
  Slippage and stop losses  (15   1 2)
For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level? Which method would you advise? Thanks.
  Need help to finish my EA  (12   1 2)
I've created an EA which is supposed to open trades base on RSI values and should work on 15min time frame. But it doesn't recognize the 3AM candle on everyday so doesn't open any trade. I appreciate if someone kindly debug this code for me. If the RSI is above 50 at 3:00AM ET (15Min. candle close),...
I use an EA to partially close positions but in the account history those orders result as a deposit instead of profits as you can see in the picture. it's pretty annoying because the detailed statement will be wrong. how can i solve this?
Hi friends I read the documentation about StopLevel and FreezeLevel, but for being confident about where to check StopLevel and FreezeLevel I decided to ask it from experts. I want to know whether I should use both -StopLevel and FreezeLevel- for all the following trade operations: OrderSend,...
[Deleted]
Questions about that were asked quiet oftenly and I read all answers and some article fitting to that topic - and I still cannot solve that simple problem :/ PLEASE HELP ME! I want to draw a trendline using ObjectCreate("Trendline",OBJ_TREND,0,Price1,Time1,Price2,Time2); I want Price1, Time1 to...
Seit langem wieder wollte ich jetzt ein Signal kopieren. Wollte ich, geht aber nicht ..... Und zwar fehlt bei mir das Register "Signals". Hatte das schon mal jemand? Was kann ich da machen? Account habe ich bei Activtrades.
Hello everyone! I have developed an indicator to draw RSI sensitivity (for the sake experiment). What I want it to draw, is two lines which gives RSI sensitivity each for a bearish and bullish candle. But it draws nothing. Can anyone help me to find where I took the wrong turn? The code is attached....
Hi, I am starting to write my first EA which looks at the crosser over of the moving averages and stochastic main/signal lines. The issue I'm having is that it will only take the trade if the crossover of both the MA's and stoch occur on the same candle. I want it to be able to recognize if both...
Could someone please edit this indicator to display in a different corner and change the text size ? 
[Deleted]
Dear all, For me to able to monitor the market, I want to have many charts open. I noticed when opening the charts, that the Terminal limits the amount of charts to a max of 128. Of course I just copied/programmed the way the charts should look (indicators...) in the profiles section of MetaTrader...
Hello forum! I was wondering if anyone knows a way to share account growth information with investors without showing trades, balance, etc. Basically a way to only show the growth percentage of an account to a third party. Thanks in advance for your input!
Is it? Anyone tried both and care to tell me is the Linux hassle worth it for stability or anything else?
Hi i'd like to limit the use of an indicator so it cannot be used in EAs but i'm not sure if it is possible thanks for help Jeff
  iClose returning wrong value  (26   1 2 3)
Hi! I'm having a very strange problem when trying to access the close price of the candle in another timeframe. Sometimes the value comes right, but sometimes it comes wrong. Any idea what might be happening? Code: input ENUM_TIMEFRAMES     UseTimeFrame  = PERIOD_D1;Print(iClose(Symbol()...
  Error # 130  (2)
In this function, I'm getting error # 130 at the "else" section (underlined) of the OrderModify(). What is wrong here? Thanks a lot. int targetRaw = 40;double target = NormalizeDouble((double)targetRaw / 10000.0, 5);void Sell_Order(double price, double stopLoss, double takeProfit)  {   double...
OrderTakeProfit() does not show the actual take profit price if you modify the take profit value of the order, it shows the original value (it was 0 in my case) present there before modifying. Is this a normal behaviour or known bug
i tried to test my ea by the strategy tester , but it open only sell order. what 's wrong? //+------------------------------------------------------------------+//| 200SMA_CCI25.mq4 |//| Copyright 2015, MetaQuotes Software...
Hi everybody, It's the first time I'm posting here, so: apologies if I don't respect some forum rule which I still don't know. I have a question about "off quotes" error. In one of my MetaTrader4 account (broker: CMC) - which is a "Market" execution type broker, I had, some time ago, an off quotes...
when I load the history, MT4 skips the months from November 2018 to today as you can see in the picture, I tried several times always deleting the previous data, but MT4 do not load the months from November onwards ..
Hello, Is it possible to define the amount of account history that the MODE_HISTORY extracts from MT4. I'm trying to limit the date range of the output for this indicator. Thanks in advance. <ex4 file deleted > //+--------------------------------------------------------------------------+ double
for (int i=OrdersTotal()-1; i >= 0; i--)    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))    {        if (OrderType() == OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)        {            double SL = NormalizeDouble(OrderOpenPrice(), NDigits);            double TP =...
Hi i have a problem with type i think  Some one can help me to understand how work it ? ty :) class IndicatorSettings{   public:   IndicatorSettings ( )   {}};class RsiSettings : public IndicatorSettings{   public:   RsiSettings ( )        : IndicatorSettings()        {}      };template < typename T...
Hello all, I have EA and it have a lot of extern parameters. One of these parameter has name global_Enabled (bool).  In some scenario I change this parameter value via custom event which is fired from master indicator in other chart. It works. gobal_Enabled parameter has changed value. But if I open...
Hi, my Avira anti virus flagged a trojan TR/Crypt.ZPACK.Gen2 upon launching Metatrader 4 on Windows 10 concerning terminal.exe Anyone else getting this problem? 
Hello,  I've noticed that in most cases when I optimize an ea the journal remains empty of trades with only "Optimization started" printed in the journal until the end, when some other times it prints all trades of all passes I can't figure out why ? is there an option to choose or not ? Does it...