I need to load an indicator in Strategy Tester to handle mouse click events. How can I do this? Or handle a click event without the direct indicator in the Strategy Tester, but from what I've researched, there's no way to do that
hi there I'm using an AI software to generate strategies and at the end of producing line, I have too many EA's to run on a demo account so I need some EA or script to install them automatically or if there's not Is it possible to write one for such a task
Hi All, Please advise where can i find a list of paid and free EA for stock trading platform ? Are they the same as for forex ? Thanks
My strategy is simple To buy, Start a B1 buy anywhere with an L1 lot, SL1 stoploss and TP1 takeprofit If the trade hits the TP, we restart the operation otherwise we launch the 2nd B2 purchase with an L2 lot, an SL2 stoploss and a TP2 takeprofit If the trade touches the TP, we start the 1st
I have the following code to get profit of last two closed positions i can get the profit of last position but not the second last one any ideas on how to get profit from last two positions in mql5 void OnTrade () { static int previous_open_positions = 0 ; int current_open_positions
Hi every body can any one tell the code order open when candle open and close order when candle close
In backtest everything's working properly: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) returns 1 (true) On a real or demo account: AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) always returns 0 (false)
Hi, I have issues to get swap fees in percentage terms when using the strategy tester. Everything is fine with swap fees in points though. As an exemple, here are two transactions I performed "in real" (with a demo account): (see transactions.png) For both symbols (gold with swap fees in points and
Other than the libraries that are found here... https://github.com/PublicMqlProjects Are there any other .NET controllers for MQL5? Specifically for working with WPF instead of Forms. I am trying to write the trade logic in C# and send "order requests" through the controller to be fulfilled by
Currently I am using following code to take trade on open position of new bar. //--- go trading only for first ticks of new bar if ( CopyRates ( _Symbol , _Period , 0 , 2 ,rt)!= 2 ) { Print ( "CopyRates of " , _Symbol , " failed, no history" ); return ; } if (rt[ 1
[Deleted]
Dear Members I have a structure struct MqlIDXPrice { int index; double price; }; How can I get Lowest / Highest Price for 'n' bars and corresponding Index value ? I tried ArraySort, but it does not work on structure. Your guidance will be highly appreciated
Hi guys I've saw a signal that I'm interested in and I'm thinking to subscribe but the only problem is that I don't know how it works when you've subscribed. Theory 1: Once you've subscribed the author sends you the signal then you have to place the trade on your own. Theory 2: Once you've...
Can you miss out or overlook good strategies by using genetic optimization VS Full slow algorithm
(1)
Recently I've been doing a lot of genetic optimization backtesting and I had a question for you guys. Does it pay, or is it worth it, to use the slow complete algorithm VS Genetic optimization? Am I missing possible strategies by using the fast vs slow
good morning good afternoon good evening and good night to all you traders I am posting this article asking for some assistance to convert a nice and simple expert advisor generated from the mql5 qizard MT5. I'm not an experienced trader nor a programmer so please make it simple if possible. I would
Dear Experts, I want to get distinct list of symbols which has open or pending orders. My code is giving me the list of only open positions. Can you help me with modification so that it would get the symbols of both open and pending orders. Thank you in Advance! string SyMass[]; bool Find( string
Can Anyone Tell Me How to how to catch 0 and 1 Buffer values with CopyBuffer ()+ICustom For a EA?
(1)
HI guys , Im Really new to MQL5 and in my case i can initialize the 2nd and 3rd Indicator buffer value inside the EA. But I cannot get the 0 and 1 Buffer Value Please Anyone can Help with that? Indicator Attachche here. // Indicator Download
I'm new to MQL and programming and running into an issue I can't figure out. My EA opens the trade but when it hits take profit it will automatically open another trade. it doesn't wait until the next crossover. How can I make it open trade ONLY on crossovers? Here's some of my code: *** I
Hi, I have subscribed to a signal and to a MQL5 VPS. However, I’m unable to migrate the signal to the VPS. I’m not able to start the VPS. I also can’t get the journal from the VPS. What am I doing wrong and what can I do to fix it? See attached pictures. Thanks in advance Br. Jacob
I subsribe signals and I had second time this issue - signals were opened but never closed. I was checking it on MQL5 signal provider page and there were all closed, then I just closed every trade manually. I contacted signal provider - he cant help me and said I need to contact Mql5 on forum. I
Hi. For some unknown reasons that I have no idea about them, auto trading has been disabled from server. the server that I work with, locate in Iran. I would like to know is there any solution or trick to me for trade automatic with mql5? Regard
Im looking for EA <Deleted> <Deleted>
good day. if the OnTrade event is runing. void OnTrade () and we open another Position, inside the OnTrade will the OnTrade finish execution or it cuts and starts again. void OnTrade () { if ( OrderSend (request,results)) { Print ( "Order Placed" ); } } will the Print funcvtion be executed or not
Hi developers, I have been finding ways to increase the efficiency and robustness of my EA and one thing I have read is the use of the #include preprocessor directive. Specifically writing Money Management, Entry Signals and Trade Management functions in separate files and then including them in a
Hi, I'm developing an EA. Part of the EA is to check if the price is closed above a particular EMA. I declared a 'double' global variable as 'EMA34'. Everytime a new candlestick is generated, I reset the value of the variable as follows: EMA34 = iMA(NULL,0,34,0,MODE_EMA,PRICE_CLOSE); When I test
I am trying to do an EA with the MQL5 wizard. I open the MetaEditor, I open a new instance of Wizard, and I can no longer continue because the "Next" button is disabled. Can anyone help me with this problem
[Deleted]
Dear Members I have come across an indicator which does not have buffer array(s). It has only calculated variables. How can I fetch these values into EA, as iCustom requires buffer number of indicator to copy data ? Thanks in advance
[Deleted]
Dear Forum Members I have created a class to calculate Camarilla Pivots. It does calculate for the first day of running it, but then it same first days values, when Get_Pivot() method is called on IsNewDay() in the EA . Please help me locate the problem in the code. EO 0 13:21:53.875
Hi an amateur here As the title goes I would like to know if there is any possibility of using an ex.5 file indicator to reference using the iCustom functionality in EA scripts to be written in MetaEditor4. I currently use MetaTrader4 and thought to retrieve values using iCustom from an indicator
In the agents tab all cores are "ready" and enabled but I can only select one of them, it doesn't give me the option to select more than one core. I searched everywhere but couldn't find any solution
Hello MQL5 community Can someone please help me, by example; how do i close an open trade, either through a function or TP amount? I tried this: double myAccountProfit = AccountInfoDouble ( ACCOUNT_PROFIT ); double myAccountEquity = AccountInfoDouble ( ACCOUNT_EQUITY ); if (myAccountEquity -
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.