Expert Advisors and Automated Trading - page 128

To post a new topic, please log in or register
Hi, please help me! How to place object(button, text) into separate window or separated indicator? please, answer.
Hi There! I am about to do my first steps in MQL5. Some things went fine others . . . How to open a file in append mode? There is no flag in the FileOpen. Thanks a lot Willbur
hi all currently i am using ontick when a trade is closed, i want to wait a certain interval before evaluating to open a new trade googling around, i found sleep can do the trick is this the best method? thanks
Comments that do not relate to the "Add checks to EA !!?", have been moved into this topic.
  Add checks to EA !!? (13   1 2)
Hi i am trying to publish EA only for binary options and only for GrandCapital broker !!! However the moderatos told me that : Support Team 2016.04.08 08:50 : There must be no errors regardless of inputs/initial deposit or any other conditions. Add checks to your EA. We told you, there...
Hi, Is this possible with either MT4 or MT5? Example. I want to run an EA for 12 months, before each month is ran, specified variables are used to get optimum (highest in optimization) setting, and is used on the upcoming month's trade.  And after that month, optimization is again done, and...
Hi, i get a nice fat 10030 error when i try to close a position for a given currency. Any ideas why? for( int i=0; i<NumOfCurrencyPairs; i++)         {    ...
One observation I noticed is that everytime I run the Strategy Advisor, it will come out with different results even though I didn't change the code or parameters. I was using "Every Tick"   What is going on?      Also, I saw that in the graph, it was losing money in orders...
Comments that do not relate to the "Discussion of article "MQL5.community - User Memo"", have been moved into this topic.
Dears, I'm sorry, I read around and searched, but I'm stuck in the tester. I understand it should work, but it doesn't :( I run (tester) an EA on a 1H chart and I try to get values from iMomentum for the 15M period. The function always returns 0. For the live of me, I can't find out, why?? Pardon-me...
Hello guys, A programmer created a multitimeframe EΑ for me but as i can see i can't backtest it on strategy tester.. Could you please tell me if i can backtest mutitimeframe EA's on strategy tester and how i can do it.. I have searched all the web but i could not find anything related to that.....
Hi in strategy tester, there's a "spread" field i assume that is the spread used in your back test question : is that in pip or pippet? 
Hi all as above thanks in advance
brunnohersan
Hey guys, I have just started using the MqlTick structure and I think I'm getting wrong information from it. The code I'm using is really simple, and I'm only receiving the flags TICK_FLAG_ASK, TICK_FLAG_BID and sometimes I get TICK_FLAG_LAST along with TICK_FLAG_VOLUME. From what I've seen in...
Hi all For below cci indi, i want to get the cci value of previous bar. So i set the shift to 1 as shown. is this correct? iCCI(NULL, 5, 20, PRICE_TYPICAL, 1)
Hi guys, Love this forum...infinite collaboration of talent and information ! I have created an EA which fires off an alert to the MT4 terminal, however it happens every second. Where should I got to learn on how to change my alert from every second and be able to set it too every 4 seconds for...
Bear in mind, please, that the meta trader 4 platform has a different versions for Windows and for Mac operating systems. Input will be appreciated. Thanks! :)
Hi all, i am using ontick() and i have a calculation to loop all the orders profit for every tick change it is running fine all the time but some time the value got stuck to a fixed last calculated value  only by reloading the ea, i will get the value to keep updating again   any idea...
Hi, I'm using an CArrayDouble object to store some "double" values and I what to be able to use iMAOnArray on them but the compiler is complaining about a "parameter conversion not allowed" error. Could someone tell me how I get the values from the CArrayDouble object ready for use with the...
hi i saw an indicator with the below declaration Any idea what's function of the " . " ? Thanks  #########  extern int       TVI.r=12; 
Hi Im coding EA and I want it to have feature to set SL to BE if x% of TP is reached. This is what I have so far. void BreakEven(){ for (int i = OrdersTotal()-1 ; i >= 0; i--)   { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) if(OrderMagicNumber()==Magic)...
Hi all, i want to add comment to each order and after googling around, i found some people use StringConcatenate I wanted to add a variable value to the comments, so i try below. Nothing came out at comment , not even the "MA Diff Is" string OrderSend(Symbol(), OP_SELL, start_lot, Bid, 3, 0...
Hi guys, I'm trying to show the profit done in the actual day but i just cant figure out how to do that in MQL5, can someone give me a light ? Thanks.
Hi Guys, How can I insert a comment into the history page of an EA? Every time it puts a line into the history column, I want to add the EA name into the comments column. Any ideas how to do that? Thanks!
any advice? main point to make it almost impossible to decompile
Hi, today i purchased an EA within the mt5 , after successful payment , message appeared " failed to download". its my first buying and im so disappointment, in purchases section there is only demo version of the EA not the full one, i also write to support service and waiting for their response,...
How would I code something like this: The Close[2] = Open[1] +/- 3 pips. So basically I do not want to see a difference of more than X pips between  the close and an open of the following bar. Is there a function that does it? Because it can a positive or negative value depending on how you subtract...
I have been waiting for a moderator to Okay my EA, which I am placing in the market here but they have not yet responded. Actually, I have tried before and they pointed out changes I needed to make in order to comply with the mql5 community rules. But the truth is I left the listing for some time...
I  found many function they can't use the "PERIOD_H4" and  "PERIOD_H1" as parametre in Mql5.  a simple example:   if ( Bars( _Symbol , PERIOD_H4 ) < 100  )  return; it can't be compiled and return this error information :  'Bars' - no one of the overloads can be applied to the function call. This...
Sighttrader
I Developed an EA that i use to trade on a live account installed on my desktop where tests and Code were done, but i decided to let my EA run on my Laptop while i trade on a different account on my desktop. When i ran the EA on the tester on my Laptop the test results were completely different and...