General - page 9

Hey there! How can I calculate separate profit factors for long and short operations in OnTester()? I want to refine my scenarios considering those ones in which both profict fators for short and long operations are nice enough (separately). However, as long as I have a consolidated profit factor
when I remove an EA from a chart and then sync again to MQL5 VPS to stop the it running from vps, as soon as i sync to VPS, new orders opens on the charts that I have EA running. So how do I stop this from happening? Thanks
im tring to write a mql5 code based of rsi... i want the EA to only take two trades max a day even when more siginal criteria still pop up... further more, a max of one sell order and one buy order. How do i go about that... my code apparanently takes as many trades as possible as long as the
Can you help me to fix this problem? ';' - open parenthesis expected bot.mq5 42 28 (42) double pipValue = Point; (43) if (_Digits == 3 || _Digits == 5){ (44) pipValue *= 10; (45) }
I started coding the EA in MQL4 but decided it was time to switch to MQL5. I want to write an EA which will take trades off support and resistance levels , but will also use protective hedges to guard against loss in case the trade doesn't go the direction it is supposed to. The protective hedge
Hi Can anyone recommend a Broker suitable for Hyperactivity (Scalping). Thank You
Hi All, I have an EA and when the trades close there is no dotted line showing on the chart I remember it was showing the dotted lines before, i dont remember when and what I have changed in the code, but the ordersend line is still the same and anyway i can't find anything in the ordersend that
Hello. I am sure this has been asked before, but I couldn't find it in the forums. I am trading 0.5 volumes of an instrument quoted at 1840.922 USD. Tick size is 0.001 and tick value is also 0.001. I am willing to lose 5 USD. How do I calculate stop-loss to use in the New Order window? Thanks
Is it possible to access the buffers of indicators loaded on the chart from an EA
Hi guys, I have the following code, which retrieves the rates using python from MT5. But the information is not the same as the broker. In this example I'm using Pepperstone. For timeframes like different than H2,H3,H4,H5,H6,H8 and H12 are correct. Please see attached image with the difference. They
Why in addition to taking advantage of computing power (CPU), don't you upgrade MetaTrader 5 Agents Manager to also take advantage of the computing power of computer GPUs ? It would be a great opportunity for the community to offer more computational power to those who need it, and at the same time
Records more winning trades than losing ones Records more losing trades than winning ones but profits equally overall Trades atleast 5 times daily Trades 5 times a month but is equally profitable Makes very high profit with high risk of margin call Makes small profits with very low risk of margin...
Does anyone knows why, in the web-page of MQL5 there is an offer of renting VPS for 12 months, but in MQL5 VPS that offer does not appear? The largest available is 6 month
Hi I am having an isssue with migrating my Deriv account onto a VPS Error message that i get and when i check the logs i see this
There is potentially an issue with decrementing loops whereby the value of an unsigned value can go to -1. It's easy enough to work around though. for ( ulong r = 2 ; r >= 0 ; r--) { PrintFormat ( "r= %d" , r); // Workaround MQL5 bug if (r==- 1 ) break ; // do stuff } Results
  Error on publishing EA  (35   1 2 3 4)
getting these errors while publishing my ea
Hi, I have invested in a broker who does auto trading in MT5. Initially when I logged in to my MT5 account provided by the broker, I can see my trades performed by the brokers algo software on my account. I checked my trades history and some times I used to see live trades as well. However, I am not
Hi guys. As show below, I have included stop level and freeze level checks into my EA and yet my EA did not pass the test for EA Market upload (shown in screenshots). Can anyone help to point out how should I edit my code and why my current code does not work? Appreciate your help in advance
So, I'd like to know if someone also faces a bug like this. I'm running an optimization where the cores of my computer are used: As you can see, the tasks sent to cores 1, 2 and 3 are finished. The tasks sent to the 4th core, however, are still being processed, but only because more tasks were
how to code an EA to opens when 8EMA crosses above 14 EMA and closes the trade again when he 8EMA is again below the 14EMA also for sell trade open when 14EMA crosses above 8EMA and close trade when the 8EMA corsses again above the 14EMA so it alsways back to back trades
In my opinion, I believe this could result in higher trading activity and increased EA sales for developers due to the large number of mobile users. According to some research on Google: 95.8% use mobile phones to access the internet. By comparison, almost 62.9% use laptops or desktops (Source
  Please help me  (2)
Hello for all i need just to add start time and close time to this code please if any one can help me. #include <Trade/Trade.mqh> input int Magic = 2 ; // Mn. int barsTotal; CTrade trade; int handles[]; string symbols[] = { "AUDUSD_" , "EURUSD_" , "GBPUSD_" , "USDCAD_" , "USDCHF_"
Actually I dont know about coding so I use AI for my strategy and coding with Ai but have lost of error can everyone help me? #property strict input double riskPercentage = 0.5 ; // Risk percentage per trade int OnInit () { return INIT_SUCCEEDED ; } void OnDeinit ( const int reason) { }
Am I right that there was for some time a function with which one could ask for price to buy or to sell to avoid being rejected due to re-quotes
Hi there, Does anyone know how to make MT5 recognise all the cores available
Be it by fake agents, brokers, signals, or EAs, there is one weapon to beat them all — knowledge! Your knowledge is the key to prevent you from being scammed. Invest and take time to improve your knowledge, to gain experience and improve your skills. Learn to do things for yourself and not to rely
I have VPS minutes but no server why am I getting this error
How can I add toolbar tools to the strategy tester simulation
  Free Grid Trading, The New Grid EA  (136   1 2 3 4 5 ... 13 14)
Hello Everyone, I have seen lately that many people have become interested in commercial grid trading systems, such as robominer. Since we seem to lack a general alternative free grid trading EA I decided to program a very short and efficient code that could be used to grid trade any range on any...
Hello everyone :) im having some issues with mq4. i try to get my ea validated on mql5 but its always giving me these errors i cannot figure out why: 2022.05.12 05:17:39 EA__1 EURUSD,H1: OrderModify error 1 2022.05.17 09:05:29 EA__1 EURUSD,H1: OrderSend error 148 the ea is built to trade Xauusd so