Expert Advisors and Automated Trading - page 224

I was try to install the Expert on the Market but with the price and rent price I m not come out. Invalid price . Rent must be cheaper than purchase. Longer rent must have higher price. Expert cost 589 USD for sale and 31,00 for rent and I get this answer! Invalid price. Rent must be cheaper than
Hi, I've been running backtests with optimization, and it's been great a tool to analyze my EA's performance. Today i just noticed that the number of results are less than the number of combinations I expected, especially with more complex tests (with more optimization variables). For example, my
Automatic validation gives No trading operation when in upgrade the EA
Hi, Using an EA , I'm opening a SELL position and then retrieve the order type. But strange enough when I read the POSITION_TYPE it says it's a BUY position !!!! What's wrong ? #include <Trade/Trade.mqh> CTrade myTrade; //my trade object //--- int OnInit () { double v_Bid =
The EA seller English is weak and he did not understand my question thanks for any response
Hello, I coded an EA which runs perfectly but places multiple trades instead of one. Using the most currently opened order as reference point, the EA is meant to open 1 Buy order when price increases by 100 pips and open a Sell order when it decreases by 100 pips. However, if the most currently
Hi All, This is slightly a different type of request. I've got an EA coded and trying to test it on strategy tester , however my PC is so slow and cannot handle it. I was after a 3 year backtest to see how this strategy performs. Could someone kindly run a backestest for me on this EA so I can gauge
back testing optimization in MT5 either let's you back test a single currency to find the best input parameters or it let's you back test all the symbols in the market watch tab but with the default input parameters. Is there a way to back test all the symbols in the market watch and find the best
  Hard SL to EA  (2)
I bought an EA, it was designed to have an automatic SL and TP. However, when I tried to alter the SL/TP manually, the EA corrects it after. It was a good EA, but the SL are too far, which is too risky for me. So I am looking for some help, or whether the mql5 market has the solutions
Guys I have no ideia why I cant make this simple operation in my EA code work. I first tried to compare the doubles of both prices but I realized that there is something tricky about comparing doubles so I decided to apply some math instead but still cant make it work. Please Help. double H3 =
Hello everyone, I have an protected indicator which I cannot find its output number to import it in my EA. It shows some number in a graphic window but it seems it has no output. I usually see indicator's numbers in Data window but it has no number shown in it(attached photo). I also try every
Hi there, I am trying to test simplest EA which only buy's a stock at a specified price. But when I do strategy test, I get no result and seems there is a problem in my code. May you help me to know is my code a complete robot or what is the problem? Thanks in advanced!...
Hello everyone I am looking for semi automatic hedging EA that would open an opposite trade (after I manually initiate one) that opposit trade would be pending order with double or triple the original trade size (could be designated in the parameter) and far from the original trade by number of pips
Hey everybody, Which spread do you recommend when backtesting - current or a particular fixed number? I'm looking for a starting point that I can tweek later depending on the EA, parameter to be optimized (here I usually use profit maximum and maximum drawdown) and currency pair. Thanks! :)
Hi guys, I'm relatively new the world of MQL4 and can't seem to wrap my head around why my array won't work. It just simply isn't alerting me to the colour of the specified candle! Any ideas why this won't work? void OnStart () { int shift = 20 ; string candleColourArray[]; while (shift > 0 )
[Deleted]
  Magic number for each pair?  (11   1 2)
Hi everyone I was wondering if when using the same EA in several different pairs, will I have to change the magic number for each one? In other words, each pair would have its magic number
  Expert Advisor  (1)
Good morning, I'm looking for an Expert Advisor who works on the correlations between forex currencies. Can you give me directions please? Thanks. Peter
I dont understand the whole invalid stops thing. This is my code and output. Im using a multiplier of ATR added or deducted to ASK. if ( PositionsTotal ()== 0 ) // buy when candle is bullish if (PriceInfo[ 1 ].close > PriceInfo[ 1 ].open) { // buy trade.Buy(
//+------------------------------------------------------------------+ //| Strategy1.mq5 | //| UJE | //| udohjeremiah231@gmail.com |
Hi guyz, in my chart, i used the green color for bullish candles and red for bearish candles, so i need help getting the current opening candle colors to use with my EA but i dont seem to get a way to code it. i tried to use the chartgetinteger but it now working as i want it. Let assumne am in a 5m
Hi fellow traders.I am trying to write an Expert and saying under specific circumstances, place an order and take profit or stop loss. But sometimes it opens and closes under the same candle. And because in this candle the situations are still valid, it opens a new trade. How can I say if it already...
Hi I've done a lot of digging around and can't find anything similar to this - which may mean that either my understanding/coding ability isn't good enough (I'm a 'cut and paste' coder) or this isn't possible. What I'm doing is building an EA which uses a series of boolean to determine whether
Hi coders, Need to save set files of inputs parameters when remove it form chart and then load it. Is there any functions in MQL4 to save inputs param (.set files) upon deinitialize the EA and also apply the set file when I initilaize the
Having checked and seen no obvious lack of support other than for DLLs, I have just improved an EA to save some state information periodically to better handle a VPS server restarting unexpectedly On migrating it to VPS it gets a spurious error message saying it is using an obsolete ex5 format and
Hello dear MetaTrader Users, Can anyone please share the idea of using Machine Learning and Deep Learning in MQL5 Programming language to create EA for Chart Patterns and Backtest the results
Hi, Im after some advice please. I am using an EA which sets Buy Stops and Sell Stops, however when the price gets near the Buy and Sell Stops it seems to move so I cant actually take a trade? Is there a setting that can be changed to stop this? Thanks, Dave
Dear Programmers, Please I am still learning to code EA with MQL5 language however I wrote a code that involved selection of current order. There is no error when I run it but the implementation is different from my intention. My observation was that this code always referenced the first opened
I'm new and I'm trying to move forward. Please help me. 1) I want to open only 1 position for this signal using "void " but I couldn't. :( 2) I have more than one signal. and I have a separate close signal for each signal. So I think I need to record the magic number and I need to use this magic
Greetings fellow programmers; I recently have coded a bot to trade XAUUSD and it has a 90% win rate but the few bad trades it does get itself into it seems to hold on to them far too long and it is causing major draw down. How can i effectively show the bot that it is in a bad trade and either
Hi, it's a stop and reverse system, the moving average on the TR True range must be calculated: (high-low). + ------------------------------------------------- -------------------------------------------------- ------------- + Input: Lenght ( 1 ), numARTs ( 0.2 ); var : atrs, upper, lower, trueran;