Expert Advisors and Automated Trading - page 340

Hi Coders, Traders, Master and Mentor, I'm looking for a simple EA. tried looking for everywhere but can't seems to find any. I can find stochastic, MACD, etc but i can't find for Bollinger Bands. Price from lower Main BB cross over Main BB will Buy. TP Upper BB and SL Lower BB. Price from higher...
Hello, I mirgrated to a new VPS and installed MT4 and configured all options and connected to my accounts. Now I experience that I cannot download EAs from the market within my clients. Why? Can anyone provide a solution? I already did the following: Close MT4 clients, delete C...
Hi guys, i'm new in programming and mql5, i also have english as a second language so i apologize if i write something wrong. I want to get the high of a period that starts when the close of the previous candle is above an ma and ends when it is below it. The opposite for the low. For example: I'd...
Can an EA get too overloaded with functions and algorithms, so that it will influence its performance? Regards
Set different width of histogram on MT5, get same results (width=2, width=3, etc.), Bug?
if(!PositionSelect(_Symbol) Thank you
Hi, starting a few days ago, I can't use the Cloud anymore to run by optimization tests. My terminal refuses to connect to any of the 3 Clouds available in my region (MQL5 Cloud Europe 1, MQL5 Cloud Europe 2, MQL5 Cloud USA).I sent a message to the service desk with my log file, to no avail. Have...
  Error 10015 ?  (4)
Comments that do not relate to the "The EA I wrote three months ago can not pass the strategy testing now, but it used working well two or three months ago!!", have been moved into this topic.
I am developing an indicator based on comparing candles, two to two, on a number of candles (period). I'm having a hard time finalizing the math calculation so that it works and it is possible to change the number of candles directly in the display, for a fixed number of candles it is easy to...
This is my code:       double openPosition( double price ) {         MqlTradeRequest mrequest = {0};         MqlTradeResult mresult;                  mrequest.action = TRADE_ACTION_PENDING;         mrequest.price = price;         mrequest.symbol = _Symbol;         mrequest.volume = this.lot;...
If I test EA with EveryTick mode I get 99% Modelling Qualitiy. If I test with Real Tick mode I get n/a modelling Quality. Why? (Same EA, same settings, same period) Thanks
[Deleted]
Hello guys,  What is the code to delete the last ticket pending order, but it is important to do this, just one time! For example: EA opened 02 orders: 1) Sell Limit 2) Buy Limit If one of thoses orders had a deal (Market hit the price) and become an "open trade", imediately EA will delete the...
i have 100 charts in meta trader. i wanna have a list of the charts in which 20-day moving average is below the closed price. how can i have this list?
  finding PipValue  (4)
Hi  How can I gain the pip value of any currency pair ? its not problem if its with 1 , 0.1 Or 0.01 Lot  is there any prepared code for it in MQL ? Or I should write code to calculate it ?
  mq5 ea macd  (2)
Hello all I need a working, solid mq5 MACD signal EA. Can someone please help me? Thank you so much :)
  local variables  (1)
can any mql master tel me plz difference between local variable and static  i m new in mql so masters come and guide me
hello friends i want a code for mql 5 that clear the expire or disabled symbols from my market watch? anyone can help me?
Hi, I am trying to get a value from an Indicator (that is not an array) and pass it to my EA.  I believe I need to pass the variable by reference, but am struggling on how this works (I am using MT5.) Specifically, I am using Harmonic Pattern Finder V2 and would like to capture the value of D at the...
Hello  I am software engineer and I code metatrader programs for 4 years. I know all syntax about metatrader5 my problem is not in syntax my problem is in anatomy.  I have some problems about metatrader 5 programming 1- why did you seperate orders as positions, orders or deals ? why did you need...
Hi all, If my EA decides that based on my money management , my lot size should be 0.003, what will happen as my minimum is 0.01 lots? Thanks
hi   i tried but failed . i know how to close without hedgeing broker order in m5. but i cannot able to close order with allowed hedgeing in mt5 broker. any one can help me in this
My english is a little rusty... so... I made an EA that open orders in Strategy Tester. I know... you gonna say... Reallyyy?! right... But... wait a minute... you will understand... LOL I use SELLSTOP and BUYSTOP orders with specific lote size and price to manage the behavior of my EA. It functions...
Greetings. MetaTrader5 comes with some Dialog examples. The EA example is in Examples\Controls and the Indicator example is in Examples\Panels\SimplePanel. The EA example creates a floating dialog that can be dragged around, and the Indicator example creates a docked dialog which docks under the...
I would like to be able to add CObject derived objects to CArrayObj, but overload the [] operator to return the pointer of the derived object instead of CObject* class MyArrayObj : public CArrayObj { public : CObject * operator []( const int index) const { return (CObject*)At(index);} }; Similar
i am trying few hours to count total open position of magic number 0  for mt5. and want to get open price of all orders? int GetOrdersTotalByMagic(long const magic_number)   {    ulong order_ticket;    int total=0; //--- go through all pending orders    for(int i=0;i<OrdersTotal();i++)...
Hello, guys! I'm implementing an Expert that operates based on a 3 EMA cross, using a time filter (it makes trades only during a period of the day). The main rule is basically:      FastEMA > MediumEMA > SlowEMA = buy   (FastEMA < Medium EMA = stop loss)     FastEMA < MediumEMA < SlowEMA = sell...
 I am looking for fast feed for DE30. I’ve used lmax, but maybe it is possible to find smth faster..
Hello, I'm trying to modify the StopLoss of all of my active trades using MQL5 after a new candles has been closed. I tried a lot of things and nothing seems to work - isn't there any simple solution for that? The problem is always that the selection of the postions never works out. PositionsTotal()...
Will MQL not support the casting of simple struct ? https://www.mql5.com/en/docs/basis/types/casting#casting_structure Struct casting is a basic feature in MQL, but now it does not work. Why MQL disable this featue?  // MetaEdit: v5.0,build 1596.   April 26,2017// MT5:      v5.0,build 1596.   April...
Pls help me to modify Lot of my EA. From 0.01 to 0.05, 0.1 and so on.  Regards. :)