Expert Advisors and Automated Trading - page 70

To post a new topic, please log in or register
I am looking for an expert / utility that will allow me to input 4 Targets for taking profit .  When price reaches first TP, i need it to move stop loss to break even.  Also Each TP level it hits, I only want to close half lots each time.  What is out there that is the easiest / best? 
I am receiving the "Notifications: not enough space for notification" on many of my accounts. How can I fix this error? I changed my mobile phone and updated the MQID but that did not fix this issue.
I am copying a signal. The equity is €996 and I have tried to migrate the signal with equity stop levels at €250, €50 and now €1. The VPS journal keeps saying the signal is stopped because the equity is below the allowed value. Even without any trades open. What am I doing wrong?
Hi,   it's been a month i'm stuck with this problem.   I found nowhere on Internet how to set up a hidden trailing stop so i tried to code it myself.   there is an error in my code.   here is my bot:...
Hello dear Community, I would like to program an EA that gives me a maximum Lotsize per day. If I am allowed to set 0.1 Lot per day, then 10 Trades x 0.01 Lot can be set. Or just 0.1 lot. So that i cant overtrade! Should normally be a very small code and not difficult but I am unfortunately not a...
Hi, Is that possible to include TF as a parameter to my ea? It enter when rsi = x and price is out of keltner, leave when rsi = y. What make me think it can't is that : datetime lastCandle = 0; If I use a tf different from the "analyzed" it will try to use a candle as datatime and may not function.....
  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...
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
Hello, There is anyway to check if a symbol is trading in normal or auction mode? I'm having problens with auctions in the middle of the day in the USD/BRL market at BMF&Bovespa (Brazil). When a auction starts the robot send thousands of orders. With the ENUM_SYMBOL_TRADE_MODE there are some...
Hi, can someone please clarify the name convention for bars in an array of type Open, Close, High, Low. If bar[0] is the current open bar on the chart, then how can it have a close price, since it's not closed yet? Or is bar[0] the last closed bar before the current open bar?
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..
I dont know how can i modify my SL and TP. I've tried allmost everything. I just can't change it to TP=50 and SL=20 pips. Anyone can help me? //+------------------------------------------------------------------+//|                                                EMA EMA STOCH.mq5...
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 ?!
 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.
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...
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...