How to use keyboard functions to call function in my EA
Hi all. Thanks for all the help so far with a few questions I've posted recently. Here's another. Well, a bunch of related ones... I've read a number of posts and the doc'n about Order vs Deal vs Position, including this documentation , and this , and others . A few things I'm unclear on, and
Hello guys i want know is it possible for an ea to trade a small balance of $10
Hello, I have an MT5 EA that works really well until spreads widen. The EA is a free EA that i have optimized really well on XAUUSD and the spread is what makes or breaks its performance. It has no spread filter and i don't have access to the source code. I believe the options i have are -Somehow
I've been doing some tests translating keyboard events to a string (kind of what you would expect any edit field to do, either in metatrader, or your web browser, or anywhere). Nothing too crazy at first, you press 'a', TranslateKey returns 'a' (or 'A' if shift is pressed). But when dealing with
Hello, I want to know if anyone else is having this problem. Since last update on mt5, my bot is running into problem when backtest in real ticks. When I start the backtest it goes normal, the cpu goes to 100% while the memory is loading each agent, normally it would be 100% CPU and about 40% of
Hi i have this problem that i have not found a solution for it in the forum this is the example code to call indicator within the ea code : (using ChartIndicatorAdd ) #property description "Expert Advisor demonstrating the work with ChartIndicatorAdd() function." #property description "After
Hi, I currently create an EA, but still confuse to calculate the proper lot to trade. Assume that I want to trade XAUUSD with $700 balance, How much lot maximum that I can trade safely? And can please suggest a broker and a vps hosting that can work seamlessly? Thanks
I want to launch/run 40 times the same EA (same code) to different (40 charts/symbols). Is there a way to automatize this process (or run them all at once), or would I have to launch one after another, manually? I really looked for an answer but didn't find it. Finally, is there any inconvenient in
Hi dear I wrote an price action strategy and it comes with 67% winrate How can i create the dataset for that strategy and make machine learning model for that and lable the dataset
Hello everyone, I'm new to Metatrader 5 and had a question about backtesting . I used data that my broker provide to do backtesting but history quality indicate 98% instead 99%. May I know why this is happened? Currently I backtest SPY instrument on H1 timeframe using 1M OHLC data
what does this mean(title)? and how can I fix this? handle_iFibo= iCustom ( _Symbol , PERIOD_CURRENT , "/Indicators/Free Indicators/Fibonacci Channel" ); if (handle_iFibo== INVALID_HANDLE ) { //--- tell about the failure and output the error code PrintFormat ( "Failed to create
hi, want to run my EA on MT4 on vps hosting how to proceed
Please help debug this code, I have tried for days and failed. The EA is meant to draw these sessions every day but it only works once when I try it in the strategy tester. When I forward test it seems to work. Where would my error be
//--- input parameters input int StopLoss= 30 ; // Stop Loss input int TakeProfit= 100 ; // Take Profit input int ADX_Period= 8 ; // ADX Period input int MA_Period= 8 ; // Moving Average Period input int EA_Magic= 12345 ; // EA Magic Number input double
How do I use ChartRedraw()? I have my comment/OSD function like so... and eqplus iStartLots and Spread is in ea inputs. void osd2() { Comment ( "\n Profit Target = $" + DoubleToString (eqplus, 2 )+ ", Minimal Profit per Trade = " +
My EA adds some MTF indicators to the chart and in order to see them after the backtesting, I have to add the EA to the tester chart manually, everytime the backtester finishes testing. this manual loading taking me some amount of time for saving the backtest settings then loading them into the EA
I need a mql5 code for remove expert advisor from the chart if the conditions are false
Hi there! I have a template that comes with an EA. When I apply this template manually (right click on chart > templates), then Algo Trading is activated in the EA. But when I apply this template using ChartApplyTemplate(), Algo Trading is off (in the EA settings). Is there a way to load a template
@MetaQuotes , there seems to be 2 partially contradictory sources of information with regard to Type of Execution vs. allowable Fill Policy types - the information in both sources differs for IOC and Return fill policies. Which one is the correct one? 1) MQL5 Reference , namely in
I am trying to learn how to close a position. I found at least a dozen examples, more like two dozen, but it seems that ALL of them either require CTrade or present a solution that involves iterating over many open orders and selecting by position, which confuses me. Can someone please provide an
Hi, I'm looking for an EA that sends my trades as a signal to telegram. I'm looking for one that supports multiple TP's as all the ones I've found only support 1 tp. Thank you 😊
Hello, I am doing a backtest of my EA with MT5 and some optimisations settings. When I go to to Agents tab, I see that 7 processors over 8 have their status on Finished. Only one is working, and I still have 200h of backtesting. I don't understand why all the processors are not 100% used . Can
I do an optimization and the result is quite good, lots of parameter showing green color. But when I change to 3D graph most of the color is change to red color. Is there a condition that determine the color change between the 1d graph and 3D graph? Here's the result of 1D graph and here's what 3D
Can anyone help me? I want to create code using a Moving Average that compares the closing price of each candle. Example: Buy if the closing price of candle 0 increases x% from the closing price of candle 1, and Sell if the closing price of candle 0 decreases x% from candle 1
Hi guys, how do I deactivate an EA's license. I tried to delete the EA from the trading terminal but it didn't work
Good day everyone. Firstly, I appreciate everyone who have contributed on this forum. Thanks a lot I need help with a particular arithmetic. I want to add some values together In mql5 , the value might be currently unknown, But would be known during the execution of the code For example, If want to
Hi there, at the end of my EA's OnTick() function I wrote a short line to get the latest error that occured: if ( GetLastError ()!= 0 ) { v_err = GetLastError (); Print (v_err); ResetLastError (); } Although I am resetting it, on
for the life of me, I cannot accurately get the upper and lower bollinger bands. I apply my code and when referencing with the same input settings on the real-time chart, they don't align! The upper is in sync with the middle bollinger line (average). Here's my code: - CopyBuffer function should be
Hi guys, this is topic often discussed. However, I cannot get the strategy tester started in batch mode from the command line. Can anyone held? Here is my ini file: [Common] Environment=--- MQL5Login=programminggeek MQL5Password=--- Login=--- ProxyEnable= 0 ProxyType= 0 ProxyAddress= ProxyAuth=
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.