Expert Advisors and Automated Trading - page 217

Hello, the ea is suppose to open a trade when candle[3] is bearish and 2 candles bullish ( candle [2] & candle[1]) but it opens positions on the first signal till it hit the SL then it looks for another signal. How do I stop this
Hello, I have had an interesting failure in my EA recently when closing the order that I have never seen before. The function as everyone knows is this bool OrderClose( int ticket, // ticket double lots, // volume double price, // close price int
Hello. I'm noticing something a bit strange about my trades on MT5. My EA has been working perfectly until now. I noticed that a certain functionality no longer work. I contacted my broker and was told that they've thoroughly checked my account and confirmed that there are no limitations for me to
Hi All, I'm new here, and I'm kinda stuck, I'm trying to synchronize my system with the hosting server but every time I do I just get this message appear In my Journal? 1 19:31:14.090 Virtual Hosting : 6311211 obsolete version of "Hedge.ex4" cannot be transferred to the hosting server, please
Hi all, Inside my OnTick function I need to define a boolean ONLY after opening a trade and then redefine it later after a partial exit is triggered (on a later tick) - I then check this variable once there are open positions to determine if the first partial exit has happened or not, however this
Hello, i am getting the following error when testing: invalid pointer access in 'S_D_Trader.mq5' (58,13) This is the important part of the indicator. The Method CheckForMitigation() return a Pointer of Zone object. I never had so many problems while programming OOP, like with this language. Can
I have working trade panel, code not giving errors but there is a warning: 1st. problem 2.problem Recently I noticed that arrows and lines of closed trades are placed over the panel. Not such problem occured previously
Hi, I have an RSI-Trader EA I made that simply makes trades at certain RSI levels at different changeable RSI settings. Some pairs it works fine on some pairs not so much. I want to know why when I try to invert the trading mechanism, so that in the two different if, else brackets instead of buy the
[Deleted]
I was wondering if there was a way the ea can plot support and resistance by itself and trade it base off of candlestick pattern. But mostly wanted to know about how to code a Ea that plots support and resistance
When I launch the tester from the command line everything works fine except for the OptimizationCriterion parameter. With values from 0 to 6 everything works correctly but I can't set the "Complex Criterion max" value. I tried to save the tester settings and the file that is produced is: [Tester]
[Deleted]
Hi Friends I failed to understood, why my EA keeps looking for old files which have been deleted / relocated to a different folder. It seems some where the Strategy Tester keeps old records and repeat them while running. As I noticed two times, I did change the TimeFrame, but Tester was using old
Hi there, Pretty standard question I'm sure but the answer seems to allude me. I'm trying to calculate trade volume as a percentage of account equity given a specified entry price and stoploss. #include<Trade\Trade.mqh> #include <Expert\Money\MoneyFixedRisk.mqh> CTrade trade; CMoneyFixedRisk
We are being told by our EA coder that the EA is working perfectly when he tests it, however i have made videos of attaching it and editing it just as he recommends and it still consistently does not perform correctly. Are there settings on my computer that could be interfering? Possibly even
Hello I want to draw "LINEAR REGRESSION CHANNEL" by my hand, so i want to know how to do this mathematically
hi thanks for all who can help me i want to write a code that call many moving average when they cross they give me signal to buy or sell really i made the code but i have a problem that i want to call moving average in the h1 time frame or h4 but the expert isn't working according to this example
I'm looking for someone generous to code an indicator for me. The indicator I would like coded is a modification of the Bill Williams Fractal indicator. Here are a few things the indicator should do: 1. I need it to filler out fractals that appear conservatively- two of the same in a row, three in a
Hello guys! I have an issue with my EA. It is giving this Error 3 Invalid Trade Parameters but only if I use it on lower timeframes ( lower then M4). On M4 or Daily time is working fine. My SL and TP are calculated as per ATR value...also lotsize...maybe on lower timeframes lotsize cannot be
[Deleted]
Hi, I have a question about using standard library indicators and which one is superior in terms of performance(both RAM and CPU). for example the MACD indicator handle can be created both by: CiMACD* MACDhandle; MACDhandle= new CiMACD() and by the normal handle= iMACD (.....); copybuffer(...); and
[Deleted]
Good Afternoon ! Any idea why this happens EVEN rebooting both side machines ? I have also rebooted all of them and even so I still have some ports not working ! (pict atached) Thank you MRC
hello ,Please, This code is for opening trades after closing a candle, I want to modify the opening of trades after closing the candle by five pips if(Open_Orders_TF &&(!Max_Spread_TF ||(Spread/Pointt)<=Max_Spread) && LastRealOOTM(Frame_MagicNumber)<ime[0]) thank you
I'm testing my EA. But I can't fetch good real ticks before 2019. I tried FXTM and IC Markets. I wonder how did some developers backtest since 2012, even 2009 with real ticks
Hello , dear friends how I can use mt5 offline like mt4 , I want use offline for backtest because I think my DSL has a problem with some servers and I'm tired of testing anyway , because all my result different together best all my result with alpari meta trader as default mql5 website platform...
Hello Team - I am new to MT5 and i have been trying to develop an EA. I opened an initial trade and pending orders for 3 additional trades. Using the order delete function deletes the pending orders when i run the EA before the market order even opens. I will appreciate if i can get help here on how
Hi, I am learning MQL5 language, Currently, I do not know the Single Account License and Time-limit Protection functions Can someone help me? I have consulted this article, but it only has the notification function, which cannot protect the account. Can anyone help me
Hello, I'm currently working on a Ichimoku EA and I'm struggling with the possible conditions for opening a position. I would like to know WHY when the EA is checking for the condition "BUY_OPEN" or "SELL_OPEN" if (Nb_positions< 1 && BUY_OPEN ) It does NOT take into account the "Open_buy_position"
Hi, I use a 40 core xeon cpu and 80GB mem, 3 SSD RAID striping set for cache and 48TB HDD, 2x10gBit network. A test cycle in strategy tester with a single pass is 9 minutes. if I want to find optimized values I choose so, that it is a multiple of 40. So it does 40,80 or 200 cycles. I believed, that
If Backtesting start date is set to 1 week ago, and an indicator is looking back 2 weeks, will the indicator have access to data from 2 weeks ago? So I can understand what's happening, please assume the MT5 is fresh installed so there is no existing data downloaded from trade server yet
  Hard SL
Hello, I'm having trouble with HardSL . It seems to be closing sometimes in a major percentage than I've set , these are the lines: void HardStop(){ double TotalProfit= 0 ,TotalLoss= 0 ; double SymbolProfit= 0 ,SymbolLoss= 0 ; for ( int i= 0 ;i< PositionsTotal ();i++){ ulong iTicket=
I figured this forum would have some great insights on this question. Thanks in advance :)
I have found how to use indicators data in the cases, when indicators are manage to fill data arrays. But lot of the indicators are just draw their output on the chart and don't fill these arrays. And when I say "they don't fill" I mean that I don't see any data in the "Data Window", so I suppose