Expert Advisors and Automated Trading - page 479

Hello, I have a (maybe understanding) problem with indicators created from the classes provided by the standard library. I want to write a class including a mixture of custom an prefined indicators. In my case I´ve created an instance of the CiDeMarker class within the Oscilators. The class...
[Deleted]
Hi there ! Can someone please help me understand why MT5 changes its optimization results when you change ansolutelly nothing on its parameters . I ran test1 and then test2 . Made absolutelly no modification. How can a result differs like the way we see here ??? Regards MRC
I would like to know if there is a way to handle multiple accounts with EA with 1 mt4.  Now I am doing it by running difernt MT4 with other names.
Please, anybody know write code EA - "write current price to file"? For example: Pair: EURUSD Filename: EURUSD.txt 1.EA check sell price of EURUSD 2.write it to a txt file 3.repeat from step 1. (real-time = fast response) In file can not be other as price only. For example "1.3520". No more. THANK
I heard MT4 was portable, so I recently downloaded MT4 onto my external so that I can work on code while I'm not on my home desktop. I can access the terminal and charts fine, but I can't access meta editor. Pressing f4/clicking on it in the terminal doesn't bring anything up, and if I try to open...
  Margin, free  (1)
Which code do i have to use if i don't want the ea to use 'free margin' or even 'margin' ?
How do I tranfer from EA4 to be EA5?  when I have change to MT5        I have ea trade MT4  it can not use MT5 now
Hi everybody, I really need you help: I have an expert advisor that usesChartIndicatorAdd() to show in a sub window an indicator. Inside thisindicator, there is a call to another indicator. (The second one is necessary to compute the first one.) This second one in not shownin the Strategy tester...
  PENDING ORDER  (2)
Sometimes the indicator gives a different reality to the one we expected. While we are not the ones who can read the future state with certainty. Indicator is needed, but the strategy remains the more mainstream. If we managed to combine the indicators and strategies ... of course it will sound...
Hi, This may be a stupid question but hopefully it's possible! I have an EA that I'm testing on MT4 (not mine, one that I purchased) however it doesn't implement a stop loss. Rather than manually managing trades that go really sour, is there some way to automatically put in a SL at a certain level...
Inputs input bool Inp_Trade_Indicator_Signals = true; // Enable the use of indicators input bool Inp_iAD0Handle_Enabled = true; input ENUM_TIMEFRAMES Inp_iAD0_TimeFrame_Period = PERIOD_D1; // Accumilation Distribution Timeframeinput...
To compare 1.36 with 1.36 i need to use if(CompareDoubles(x , y)){ // the same } But how to compare like this ? if ( 1.36 >= 1.36 ){ ? Does this bug with compare doubles are only with == ? or with > < too ? thanks the only correct way in my mind is: if(CompareDoubles(x , y) || x > y){...
Hi all, It's my first post here. I'm starting to learn about EA recebtly, and I've a doubt about time functions. I've been looking for a code that allow to buy/sell at a specific time, but I only found examples that work with a time value of HH:MM. What about seconds? Is it possible to define a...
I want to ask is there system or ea to send signals from MT4 to several Emails and SMS just when new orders opened or closed ? Thanks
Hi, i have this problems, in every chart it always returns "10". What i done wrong? this is the code, very very simply. Help Please //+------------------------------------------------------------------+//| CruceDeMedias.mq5 |//|...
[Deleted]
Good Morning ! Can someone please help me understand what is PR (picture atached) and how it is generated ? Why sometimies we have this info and sometimes we do not have it ? Thank you in advance MRC
Hello, I have a Wordpress-page with a member section. I would like to create an EA where the Users can login with their member details and will be able to recieve a trade signal with my predefined parameters . Is there a possiblity to connect Metatrader with my Wordpress-Plugin so that the EA only
  button EA  (6)
I have a question for team of metaquotes: I use scripts to close positions to set the take profit / stoploss, etc ... in the new build does not work if the key expert advisor is not activated! you can separate script expert advisor?? are not exactly the same thing! even better if you could...
Dears, Im trying to implement a simple martingale strategy, that is, every time I have a deal with a loss, the next deal will have twice the volume of the previous. I have no clue about why it is not working, I have tryed to work with positions, instead of deal, but got an error message. Thanks...
After compile, test, compile, test.. ect. ect. ... New code compiles correctly but settings changed like Input Constants do not change. After setting up a new demo account and decreasing the leverage from 1:200 to 1:50 Leverage does not change when called from Scripts and EA. Any Ideas to clear...
Hello, I'm having some errors with the following code, even though it originates from this official site: http://codebase.mql4.com/ru/source/2493 It seems to generate one tick with a price value of 0, which means the chart scaling becomes unusable. Can anyone please update this...
[Deleted]
Dear fellow traders, I am pretty new to MQL5. Therefor I studied this article and expert advisor for beginners: https://www.mql5.com/en/articles/35 It has a really nice expert advisor and I would like to adjust/work with it in the future. Then I installed the expert advisor into my strategy...
Hi, I have a simple EA that take entry,sl,tp from some indicators and trade. It works fine. And then, I make few extension to my indicators. When I run the EA again, on the chart, I see many wrong trades where: there is NO BUY Arrow on chart (from my indicator). Somehow, it still assign Entry...
Is there a way to limit the max margin used by a EA to a fixed amount like $100? Thank you
How much slippage should I allow when subscribing to signals? &nbsp;5? 2.5? .5? &nbsp;Any advice will be greatly appreciated, thanks!
Many broker setup different commission and leverage values for different symbol, especially precious metals. It's big trouble to implement perfect money management module. Therefore, could MT4/5 terminal provide SYMBOL_COMMISSION & SYMBOL_LEVERAGE properties in new build? Regards
[Deleted]
Hi There! Can someone please give me some guidance regarding ST Architecture? Picture attached shows my machine with the remote agents I have installed in my network. Note that Local Machine is has an i7 CPU compared to the old remote CPUs. On the other hand, we run approx. 100- tasks per CPU
  Function  (2)
Is there any function that will open trade if any openorder takeprofit hit.I am new in mql programming.
use CalcMargin Function and I calculate Lot Size to be 1.03 how can i step it down to 1.02?
When running an EA using iBands in the Strategy Tester I get error message.I am testing on EURCHF"CopyBuffer RSI failed code 4807" I can see that the Strategy Tester is downloading data. When that is complete the error messages stopsand the EA works as expected.How do I "hold" the EA until all data...