Expert Advisors and Automated Trading - page 204

I am having problems playing around with one of the sample EA's that comes with MT5, the Moving Average EA. I thought I could teach myself mql5 by hacking around with an existing EA. This is how I have modified the " Check for close position conditions " of the EA by introducing two MAs, where a
In MetaTrader 4 the styles (e.g. arrows or lines) that are used in an indicator are not chart objects. ObjectsTotal() returns 0. Of course I can read this out via iCustom() . But what, if the EA should react to all indicators with such symbols. So without knowing the number of buffers and/or the
Hi everyone. I'm trying to obtain the value of the "modelling" field in the strategy tester settings form shown below: Does anyone know if this is possible and easy in MQl5. I can't find any way to do it. Many thanks, E
i wish to check if a line, ma or any indicator is making higher high, low or lower high, low. What should be the logic to check it ? will it be same for all TF or different ??? perhaps in my logic it just gets caught in lowest time frame
Forgive me if this is a silly question, but whenever I backtest my EA in MT5 the tickets for trades always start from 2. Can someone explain why they do not start from 1
Hi everyone, sorry if my question is not for here. I need some one who is it used ''<Deleted>'' i need impressions for this EA
Hi everyone I've just got a little stuck trying to run this code contiguously. I only want to open 3 positions when in a buy or sell zone but because I'm using HistoryDealsTotal it only works the first time! I'm pretty new to MQL5 and guessing I might need to use a loop but am getting really stuck
Hi Guys, i added the volume lot in the standard expert mama, could you tell me also how i can add a stop loss in the Advisor? Here the code: //+------------------------------------------------------------------+ //| ExpertMAMA.mq5 | //|
  MQL5 VPS EA  (2)
Gud day everyone! I'm testing the mql5 vps (24 hrs free) but my EA doesn't seems to work. I installed 3 EA in the same chart, migrate to the vps and turn off my computer. One EA that should function in not doing its job while I'm testing. In other vps (remote desktop connection) i've tried this
Hi guys, I'm with a problem here, I tried to search for a solution but didnt see any other cases like mine. Attached is the trade result graph and a piece of the history result in pips ( I checked the box "profit in pips for faster calculations" ) and in money. The results, as you can see, is that
I have not been able to get any of the experts to run on their own. A few months ago I was using either Fireball or Yellow Free both from the market. They worked on a demo account and then I came home one day and they just seemed to stop working. I messed around with it after waiting a few more days
I want to make my EA run multiple times with every possible settings and determine the best possible settings for the EA. Is it possible to do it within mql5? Thank you
Hi i usually put 2 pending orders on chart's one sell and one buy limit and i need a EA to delete one of these pending order's when an other one active i mean if price reach my buy limit and buy activated then EA delete sell limit and if sell active delete buy and EA must do this for all pairs not
Hi, TimeGMTOffset() and TimeDaylightSavings() do not work in the backtester. I need to find a reliable way to find the opening times of the london market and US market over several years. Does somebody have a good sollution for this ? For the MT5 developers: is it not possible to make the
First time poster. Behold my trailing stop function. It moves my SL by 10. It also moves my TP by 10 as well, which is a lot better than it completely being removed if I add a 0 on the end at the: Bid-takeProfit* _Point ); location. QUESTION: How do I not move my TP. I looked everywhere for an
Does any one know how to lock an ea to a particular broker and server? Thanks.
  Lot size variation  (12   1 2)
My copy account lot size varies between 0.05 and 0.15 lots whereas signal provider `s lots size is always 1.0 ( in the same period ). Provider`s account is 7 times larger than mine -----so my lot size should be 1.0 divided by 7.0 = 0.143lots . Same margin. Why is this occurring
Is higher timeframe data looking into the future? Obviously not when forward testing! But how about when backtesting ? Lets say we're running an EA backtest on 1H, in the middle of the day, a few weeks in the past. The EA uses some MTF indicator. At some point the EA switches the indicator from 1H
is possible an indicator call all symbols listed on market view and each chart charge this indicator
I have a very basic question: say I have a buy position and I close it with trade.PositionClose( _Symbol ); Is it safe to say that PositionSelect ( _Symbol ) will be false immediately after that? I ask because I have developed an EA that has the following basic structure: if ( PositionSelect (
Hi. I created a panel using Scroll.mqh class. Scroll Decrease button does not work. When I click Scroll decrease button, it works like Scroll increase button in fact moving the scroll to downwards ( but scroll decrease button should scroll to upwards). Is this only me experiencing this problem ?...
Hi I was looking for a EA that combines multiple TP levels and trailing stop For example: I buy 1.00 lot of EUR/USD at 1.8000 and I'm aiming at 3 possible TP targets TP1: 1.8020 TP2: 1.8050 TP3: 1.8100 SL: 1.7950 The EA, once the price reaches the first TP, would close a portion of the trade and
Since I'm in the USA, I can't find a broker that uses ECN (Electronics Communications Network). Will this cause a problem when trying to find profitable EA's
Hello am new to programming as a whole I have learned a few basic and have built my first EA but it is closing trades on close price not current price.......I don't know what I did wrong but I would love some help it uses moving average for enter and close below is the EA file
Hi, I have written a Trailing Stop function but I get the error code 4756 and return code 10013 during test. The code below is just for the BUY orders for simplicity (same applies for SELL orders). I call the function from the OnTick() when there are some conditions meet. void TS_pips() {
My trading robot is reporting "order send failed error #0" how can i fix this error please On demo it work properly but on live account it reports that error message
I am not asking for broker recommendations. But all the brokers I've found so far in the USA have minimum Stops Levels. Will this be a huge problem for me finding functioning EA's
I would like to draw line like the chart above. (It's from MT4). Does anyone know how? Thanks
I wanna to use specific RSI levels for another indicator like alligator (like below picture). For example I wanna to use tow level of RSI indicator (30, 70) and when alligator cross these levels then open trade. How can I use that in mql code
I purchased some EA's for MT4. They worked fine on backtester in my demo account. Couldn't get them working for backtest in live account. I've had them running in the live account for several days now with no executed trades, and no attempted trades (no error messages)