Expert Advisors and Automated Trading - page 400

So, I have a strategy that I want to implement on EA and it will be a while loop based strategy such that the program will reiterate calculations until the profitable condition is met, then will execute the appropriate orders. Would it be possible for one file to reiterate those calculations on...
hi all i am using ontick and with some rules to enter trade however, when price move too fast, it might trigger 2 or more entries on a single bar how can i code it so that once it has opened a trade on current bar, it can only open the next trade on next bar onwards? thanks
Hi, I'm running an EA on 5 different currency pair. All is running on a VR Server so that my PC doesn't have to run all the time. The VR works pretty good. The problem is, that sometimes if I'm running MT5 on my PC, some orders doesn't set the automated S/L. As said, just running VR without...
[Deleted]
Hi! I have an EA working in my MT4 and I'd like to transmit the orders of buy and sell for the 24 Options. Yes! The EA is a robot of binary options. However, the 24 Options don't offers support for MT4. So, how can I do it? Thanks!
  Notification ?  (1)
Hi There, I did my first steps in MQL5. Which is to set a SL to ervery thing living there without one. It works well, but there are errors in the terminal jounal that I can not interpret. "Notifications invalid settings (notifications not enabled)." What is it about and where to...
[Deleted]
I have a question: Call me paranoid, but Metaquotes isnt really a big company, it make a lot of sense stealing good strategies as second purpose,if i was the owner myself i'll try to see high profitable EAs, but i have a technical question, for who understand programming, if i have a good EA,...
Hi is it possible to only open a position when spread for example is less than 5? I tried that with if(SymbolInfoInteger(Symbol(), SYMBOL_SPREAD) <= 5){&nbsp;&nbsp;&nbsp;&nbsp;buy();} and in buy() i do Print(SymbolInfoInteger(Symbol(), SYMBOL_SPREAD)); and it shows me also values higher than...
Hi folks, I'm struggling with an error on the following EA: https://www.mql5.com/pt/code/2314? It uses the tradealgorithms.mqh and returns the following error: (): Incorrect volume for a trade request structure Searching the code I realized that the error is caused by a Volume <= 0. But I still...
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
  sleep function  (4)
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&lt;NumOfCurrencyPairs; i++)&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;...
  Strategy Advisor  (3)
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...
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
[Deleted]
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--)&nbsp;&nbsp; { 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.