Expert Advisors and Automated Trading - page 124

The scatter plot of strategy tester has pass number on horizontal axis and result on vertical axis. Why in the attached screenshot pass number 61 is not where 61 is on the axis
  List<Type> in MQL5  (10)
I have a background in C#, and wondering how I can get a list of type T in MQL5. For example, if I have the below class: class Person { public : Person(); ~ Person(); private : }; In C#, I could easily get a list by using : List < Person > myList = new List < Person > (); How can I achieve this
I need an EA that stops the session and disconnects autotrading, but that takes into account the different trades of the day, that is, that the objective can be marked (ex. 20% of the balance ) with a start of balance of 10,000,if the trades are -40,100,60,-80,180,stop when the balance is 10200 and
Hi How calculate resistance and support of current time-frame!? I don't want indicator! I want calculate resistance and support within EA..... BR J
Hi, When I'm testing experts advisors, some of them use 100% of my core. And some, doesn't use more than 8% of capability. Actually, both experts are almost the sames, only few lines and indicators changes. Do someone have an idea of what cause this problem ? And how could I fix it
Hey, thanks for taking the time to read my question, I don’t have any problems compiling the entire EA, but I noticed my EA was showing up as an indicator in the MetaTrader environment and not as an EA. Could this be because my Buy and Sell orders are incorrect? CTrade m_trade; // trading object
Hello guys, I need a bit of guidance to learn how to test my strategy. I have made up my own strategy, with know indicators and i want to back test it on MT5. I tried the strategy tester, but it is very weak : 1. It shows the evolution of the price not the conditions 2. it does not allow you to
I find these errors test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) strategy tester report 162 total trades test on GBPUSD,M30 (netting) strategy tester report 1 total trades test on EURUSD,M1 (netting) 2020.02 . 18 23 : 09 : 40 current account state
  EA expired  (5)
Hi everybody i have download one EA in somewhere, for me is good because i follow his work and sometimes i close or i move TP in manual ..problem is this : at the end of the 2017 EA is expired there is someone that can do reverse engineering and cut off or move foward the date of expiring ?? I have
Hi all, the example is generic, since I have no idea how to overload the indexed assignment ... does anyone know how to do? class CIntArray { int array[]; ... public : void Set( int index, int value ) { array[index]= value ;
Hello,  How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.
Quick question. I am trading with MT5, and i am looking for a way to close all open positions at once. Is this function in MT5? I have looked everywhere in the platform and cant find it. If it isnt, why not? It really seems like this otion should be there as default
Hello everyone, I'm new to forex, can you advise me which free advisors are available that are suitable for small deposits
Hi, Is there any tool/EA for MQL5 which controls Equity and Drawdown for all EAs in use? For example if I want to close all open trades and stop algo trading (for all EAs) once Drawdown is above certain level (in amount or %). Thanks
Hi, I'm testing an EA on Strategy Tester with the debugging mode on MT5. I put a break point somewhere and wait for it to trigger. Then, I store the value of PositionsTotal() on a variable to debug it. While on my trading tab, I can see two open positions, the PositionsTotal() is returning only one
Hello everyone, hope everyone is doing amazing. I open all my trades by hand and was wondering if someone has an EA for mt5 that will close all open positions right when two moving averages cross. The two moving averages which need to cross in order to close all the open positions have to be the 1
Hi im trying to get the total number of contracts traded per ticket so i can use it in my EA. I have gotten the ticket number and the current volume, but cannot get the initial volume
Hi, I am toying with MQL5 and wanted to print some info to the journal. This should happen in OnInit() Print(" Symbol selected: " + Symbol()); Now my expectation is that this msg is printed in the journal when I attach the EA. However, nothing happens other than: 2020.09.20 13:26:23.209 Experts
When I want to test my trailing strategy. I found that turning point of the curve was at around May when I use " Every tick based on real ticks". And when I switch to "Every Tick" mode, the curve keeps the uptrend. In MT4, it just doesn't trade when it's out of tick data. But in MT5, it switches to
I'm wondering if there are tools that can make automated trading by use of an indicator (*****). So in fact idea is to automate trading with using an indicator
Hi, I have a question. I would like to start programming in Python for MT5. Does anyone have any examples or where could I download a python scalper that would serve as a base
Hello, I am performing partial close on yesterday positions. I noticed that sometimes the SWAP is closing proportionally with the lot size of the partial close order. Sometimes instead swap get fully closed in a partial close, without accounting for the lot size. In the screenshot below you have one
Hello. How can i stop ea (don't lose time for testing) if an invalid input has placed??? Example: I use (for testing) for a macd a range of fastema 8-18 and for slowema 14-24. I don't want test the combinations that fastema>=slowema (14-14, 16-14, 18-14, 16-16, 16-18, 18-18). I think place [OnInit]
I need an automated trading bot for selling and buying with the offers and demands of the markets. I need it fully automated and to be able to send it to work for periods of 1 week to 1 month. Anyone can help find this
Is my idea feasible? If so what gotchas do I need to lookout for? Is this even the best idea or should i just completely write everything in Python? A quick background check about me: I already know how to write bots in MQL5. I have used python before but for a completely different scenario (e.g
Hello, Is the difference between the real ticks and the test ticks only due to the optimization and the hardware of the machine or is there another way to improve them ? Thank you for your answers
if ( PositionsTotal ()> 0 ){ for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--){ string symbol= PositionGetSymbol (i); if ( _Symbol ==symbol) { ulong Ticket = PositionGetInteger ( POSITION_TICKET ); double sl = PositionGetDouble ( POSITION_SL ); double tp = PositionGetDouble ( POSITION_TP ); double
Can you please help me identify where i went wrong? i tried to combine 2 tutorials... an RSI where the EA will take a sell if price is above 65 and buy if price is below 35 max 2 trades at 1 time... and using calcLots to work out 1% of the account balance ... it wont take any trades when prices
What happens when there is an update and the expert advisor has an open position? It will lose all closing parameters set up within EA ? If that is so, is there a way to mitigate this situation ? Global Variables ? Store and retrieve parameters after the update is done ? The same question/doubt is
I have been always told the indicator handle should be assigned in the OnInit() in MT5, however if the indicator parameters will be changed in the OnTick(), for example indicators MA 's period will be varied in the OnTick(), how to address this problem