Expert Advisors and Automated Trading - page 405

Hi I have been trying toput together a simple alert that will do the following: Place an UP arrowunder a candle that has met a set of criteria (e.g., Close[1] - Open[1] > 10points) Place a DOWN arrowabove a candle that has met a set of criteria (e.g., Open[1] - Close[1] > 10points) The...
Is there a code to measure the candle's body similar to iHighest() or iLowest()? iBody() ? iBuy() - Code to place buy orders iSell() - Code to place sell orders
hello, im using mt4 with renko and want to run an ea on the renko live chart using https://www.mql5.com/de/code/11739 for renko chart and test an one liner ea on the renko chart void OnTick(){Print("test");} normally you get with every tick the test insert in your journal, but on renko...
I'm trying to get the half price value between 52 weeks high and 52 weeks low. But it's not coming out right, does anyone know what's wrong with this code? double ThisYearHigh = iHighest(NULL,1440,3,50,0); // Calculation for Highest price inside range.double ThisYearLow = iLowest(NULL,1440...
[Deleted]
Hi, I have tried to find a solution to the way of calculating SMA of ATR in mql4. Obviously you can do this in the chart: apply a moving average to ATR but how to do this in mql? Thanks
Hello, All is in the title. If anyone can explain, when closing a position, the difference between TRADE_ACTION_DEAL and TRADE_ACTION_CLOSE_BY. Apparently is it the same? In the Trade.mqh file, it is closing using TRADE_ACTION_DEAL. With my broker, in certain occasions, Trade.ClosePosition opened...
I'm developing an EA that sends a stack of orders. Each stack has an unique magic number and depending on my criteria I close all the deals in the stack. I want to store the bid and ask price for a magic number for later use. Unfortunately I cannot figure out how to do that. If I was doing this with
  Updates to EAs  (3)
I have purchased an EA for some months now. If the seller releases an update to this EA (ie New Version), will it automatically apply to my running EA, or do I have to sacrifice one activation to have the update?
How can i calculate minimum stoploss pip when i use ordersend() function. Thanks
Hi, After the update 971 (MT4) yesterday I get a compiler error: "ex4 write error" Reinstalling or compiling on other location doesn't work The error is on all files old and new The compiling process looks normal with warnings and errors. Only after that I have no ex4 file. Any ideas?...
This has been bugging (no pun intended) me for some time. I created an EA that performs quite well on price spikes, but it sometimes cannot modify the order to set a trailing stop or move the stop order which is set to 30 pips in this example. I've tried other values and still run into the error...
EA place more trades is more profitable. EA place less trades is more profitable. I don't know
Hi, i start this discussion to invite any one who successful use any EA ( free or commercial), to exchange information or best practice sharing. can suggest own EA + own signal , the purpose of the discussion to help some trader to diversified the trading risk on few EA and continue improve on...
hi guy i tryto configure the script at page https://www.mql5.com/en/articles/1361 anyone know it??? i tryed example 1.2.3 server run , client to but tell me WINSOCK, WSAENETURNREACH (10051) but i am sure connection is good without firewall i saw the solution by Sergey Sartakov...
Hi everyone, just would like to know if the news suspend feature for EA works on Virtual Hosting On The MetaTrader 4. As the description only states that EA, indicators and signals are synchronized across. Would the new suspend setting and news website URL be synchronised as well? thanks!
Hello there, I purchased  an EA from the market and wanted to activate it on my VPS so that I do not have to keep my laptop on all the the time. I have tried migrating it using the synchronizing functionality on the MT4 platform which does not work. Says it has transferred all the experts and...
I'm trying to write a indicator that makes use of another's data. The indicator I want to query is a Heiken Ashi indicator and I want to determine what type of bar it's painting at any given point along the chart. Looking through the code of the H/A indicator, I can see how to determine this...
Hi Guys, I am subscribed a signal that has leverage of 500:1 but my trade account can only do 1:100, with the conversion that takes place am I only going to get 20% of the real profits? I have matched the signals $ account balance. Ideally I want to be doing 100% the same as the signal provider...
Is it possible to over-ride the MT4 signal settings so that I trade higher amounts than the default conversions? My Trading account is 1:100 leverage but signals are 1:500. I need to trade bigger lots so I can match the performance of the signals.
Hi, i'm trying to recreate a EA to delete pending order when it hit the price i input. But kept having error. tried to google up on the exact word that i should use" (???=My_Price_Target), but not able to. Or maybe the code i do is wrong? anyone could help please? thanksint start(){if (Ask=...
Hi So I purchased EA here and it has 5 activations, but I understand it is per computer. So does that mean that if I download the EAs on different MT4 accounts and with Virtual Hosting accounts in each of them but installing from the same PC, it will not affect my activation at all?  Unlike VPS, if...
Hello, I am bactesting a range breakout expert advisor using pending SL orders on an equity index CFD that trades only from 08:00 to 22:00 european time Whenever a breakout occurs overnight Order gets executed by tester at 08:00 the following morning but at trigger level instead of market open...
Hello in the ea market on mql5 can you find out how many copies of an ea have benn sold/ subscribed ? Thanks
Hi, I have a few questions, hope someone can help me! 1) How to add max spread to the EA? 2) How to lock the EA into one trading account number, and can use only for that account? Regards and thanks for the help!
anyone good in coding? i need add on some feature. This is profitable EA if manage to use if wisely
Hello guys, I am new to MQL4 and trying to self learn it. The purpose of the code below would be to insert an order at a specific Hour and Minute of the day if certain conditions are met (Price above or below a certain level). The order details would vary in its S/L or T/P or entry price...
I got a book about programing EA. In the examples most of the created classes are prefixed with a C. CTrade, CTimer etc. I thought that this is a convention the author of the book decided to use for his book, but when I browsed the Include folder I see that most of the classes are names with a C....
Hello everyone! I'm building a training data for my genetic neural networks. What do i do is, go throught entire history data with CopyOpen .. CopyLow then I normalize the change between open[i] - open[i - 1]; I'm also using iCostom and other indicator functions. Now here's what I want to do: For...
Hello guys Has anyone of you found EAs opening 1 trade per instrument at a time that remain profitable without intervention. From what I have seen the EAs that appear to achieve that ,they do so temporarily as they would employ one of the following usually - Grid/Martingale that will die at...
While checking the Documentation of the Symbol Properties I noticed the formulas for margin and profit calculation. SYMBOL_CALC_MODE_FOREXMargin:  Lots*Contract_Size/LeverageProfit:   (close_price-open_price)*Contract_Size*LotsSYMBOL_CALC_MODE_FUTURESMargin: Lots...