Expert Advisors and Automated Trading - page 335

  Invalid Stops  (30   1 2 3)
Hi, My ea is sometimes triggering "Invalid Stops". I believe that's why it calculate the stop value based on my medium price, and in Brazil's index, price always end with 0 or 5. And the Error only appears when finishing with 1,2,3,4,6,7,8 and 9. What should i go to avoid that? Thanks!
Just margin by itself does not count in the stoploss and fees so given enough market positions there will eventually be a stopout. There should be a formula to check free margin based on this for a new position with stoploss and fees. Calculating margin in such a way predicts the outlook of a margin...
Hi everybody, I am developing my first EA and maybe some of you could help me. What I want to do is quite simple but I dont know how to write itin mql5. I just want to get the latest price as quickly as possible (here every 16ms for example). This my current code :   input int shift=0;      void...
  RetCode: 10021  (3)
Hi this is a snippet, executed on ChartEvent click event : double SL_price=0, TP_price=0;bool SL_retrieved = ObjectGetDouble(0, "UTA_SL_LINE", OBJPROP_PRICE, 0, SL_price);bool TP_retrieved = ObjectGetDouble(0, "UTA_TP_LINE", OBJPROP_PRICE, 0, TP_price);if(SL_retrieved &&...
Hi all, Thanks for looking at this thread. I recently purchased 3 months MetaTrader server time but I am having problem migrating my EAs. I get the error that my arrays are out of range when the EAs are on the server. However, when I add it to my local system I don't have any errors and the EA...
Hi, I wonder if it posible to run 2 signal? Maybe on the same account? Or should I have 2 accounts with 2 VPS? Many thanks
Hi everyone, I run some backtests for some assets a few months ago with mt5 build 1940. When i run the same tests with same EA and parameters using the same brokers in a newer build (1978) i get different results for some of the assets. More specifically i run backtests with these assets: AUDUSD,...
What is the best time period (like 3 months, 6 months or one year) for optimizing an EA according to the current market conditions? EA may be a scalping EA, a medium term trading EA or long term..
Hi, I've written an Expert that contains a few graphical buttons to enable me to change certain trading parameters "on-the-fly". I then want to be able to press these buttons during a Strategy Tester - Visual Tester mode session. According to the documentation in https://www.mql5...
hi fellow trader, need help for some source code here l build an EA, I wish it will open one trade position a day the problem is the EA cannot open another position on next day if the previous opened trade not cleared yet i wish this will always open a new trade position once a day regardless the
Is there a way to detect new bar with iBar function?  Common methods for this purpose use time functions.
Catching Gaps 2019 - mql4 -> mql5 ?! I am looking for EA to Catching Gaps. Stock, Forex. mql4 exists: https://www.mql5.com/en/code/11199 is missing mql5 or C # calgo ?!
  NEURAL NETWORKS  (3)
Hello dear programmers, Anybody know some updates library for implement an EA based on Neural Networks ? Thank you
I have recently bought a hampster ea of the mql5 market place which is fine but i am having trouble registering it coz i cant provide the right right picture with the right amount of pixles. When I use an editor it rejects the photo coz its been enhanced by a third party. Anyone got any ideas of...
I am looking for EA with opening and closing positions when return to 20, 50, 80 level Stochastic , RSI etc. Is this code? Regards
[Deleted]
Good Afternoon, I have multiple EAs runningin different accounts (demo/real) with no problem. Specifically in oneaccount, the EA is giving me this error mentioned on the subject. Any clue ? I did not findany comprehensive information regarding this error. Only generic information. Regards, MRC
Hi coders I need to plot values from an EA onto a chart , It is a very complicated EA , and I want to do this for troubleshooting purposes , I have multiple signal setups and need to validate the signals/indicators 'look' correct visually [ie if signal1 is true plot arrow , if signal 2 is correct
  indicator code  (3)
Hi everyone.  This is my first time posting anything, so please forgive my ignorance about conduct and format and such.  I have combined some indicators on the same indicator window below my chart.  I was wondering if there was a way to view the code for that window so that I can save it as  and...
Hi guys, I have written an EA in MQL5 that uses the ICustom function for some backtesting and noticed that there are differences between the indicator when I attach it on the chart and when I run it on visual backtest. I have attached the indicator below. I was wondering if you had any experiences...
Hello everybody! I have a small problem, which I urgently need a solution: I currently use a signal in which the TP is not optimally matched, but still every trade always is positive, but it just closes too late. Here is an example: (it starts at about -5 €, and then it rises to about 20 € in...
Hi guys, I found this error while running a backtesting on below code. Just wondering anyone could give me a generous comment! Thank you so much !! void OnTick(){   if(zigzag_Trend()==1) Print("HH HL");   if(zigzag_Trend()==2) Print("LH LL");}int zigzag_Trend(){   double Points = MarketInfo...
Hi everybody, currently I am copying a signal here on MQL5. I would like to use an Utility / EA that automatically opens more positions when the price is going against the position that the signal provider opened. For example if the signal provider opens a buy trade and the price goes down 5 pips I...
Good night, We're in 2 friends, trying to cede processing to a single CPU. After adding the external IP (they are not in local network) and the doors, with password and to start the backtetest, it appears: Authorization on still connected agent. Connection closed. My PC is selling cloud processing...
Dear developers, I get two errors on the following scenarios during test of cci_ma_ea_corrected.mq5 (attached) : Platform: PC: OS Windows 8.1 MT5: MT 5.0 Build 1966 1)Using Local agents: During the test the results are zeros and the journal has text(detailed extract is attached): EO    0    00:00...
hello, i wonder if there is a project on such an EA. i have prepeared some rules it could work on, i just can not code. have you heard about such a project or want to commit to work on one? cheers
Trying to set up the transaction repeater and not sure what I need to put in the mprefix and msufix and also server account in the input section thanks for any help
Hello, I trade with a broker that allows me to leverage only 1: 100. almost the MQL5 signals require leverage of 1:500. Is there a Trade Copier or software that can be installed on MetaTrader, which will duplicate the positions in my account?
I have attached an EA and I thought it would manage my personal trades that I make, but after testing it, it doesn't do anything to my trades.Can someone help me and tell me how/or adjust it so it will manage all the trades, including my own?
[Deleted]
Hi all, I have an EA. The EA can run on several currincies. The EA should open only one trade at the same time. What can I do for that? Best, Murat Y.
Hello guys...? I need help, how How to create "iMAOnArray" in mq5 for Expert Advisor ? help please.. thankx