So firstly iv made this EA using FXdreema becuase i cant program but iv hit a issue. If i have for example two charts open the the EA waits for a pending order to be hit on eg eurusd and once hit on trade function then places two more pending orders on the chart. based on filters like Buy and group
how to close all your open position at once
I am looking for something that allows me to kill the thread of the program when an error occurs. Something like "exit(-1)" in C and C ++. Can you please tell me if there is something similar in MQL5? I want to do something like what you can see in the following code: handler = iMA
Guys / gals, I'm looking for an EA that can place trades with a user-defined martingale, and also adjustable trades spacing. Another function I need is a drawdown control based on the latest trade being slightly in profit over the earliest trade. Gold Stuff came quite close to what I was wanting
I have string variables (Candle_1, Candle_2 etc..) which when printed returns "Red" or "Green" from a function. eg: When running: Print("**** Candle_1: "+Candle_1); Output is: **** Candle_1: Red I would like to print values in a for loop for multiple candles but cant get the value of the variable
Hello! I am demo-testing EAs in multiple pairs. Sometimes I want to modify the EA inputs in all of the charts at the same time and it's very cumbersome, boring, and time-consuming, to -press F7 to open the EA -click over to Inputs Tab (because it always open in the first About Tab) -click Load to
Hi, I need to store a long or ulong value into a char array. Therefore I split the value into pieces of 8 bit and store these parts into 8 elements of a char array. Following macro is used: #define L64_TO_UCHAR(value,array,pos) { array[pos+ 0 ]= uchar (value& 0xFF );array[pos+ 1 ]=( uchar
Hi guys, I want my EA to avoid taking any trade from 21:00 to 01:00 (when spreads are high). Regards, Saurabh Barhate (P. S. - I am using MT5)
I'm trying to make an EA to only trigger when there's a Sell signal and will trade for the amount of candle sticks required. stops trading after the number of candle stick has been reached Wait till there's a buy signal Triggers once there's a new sell signal I was able to get the EA trigger on sell
[Deleted]
Hi everybody! I'm looking for historical data of FTSE-MIB (the italian index). I'm using the data of my broker (avatrade) and only on daily I've got this error: "2021.06.22 21:07:39.673 TestGenerator: unmatched data error (volume limit 78163 at 2020.03.20 00:00 exceeded)" (on daily backtesting) Do
Hey guys, i want some help to detect the robot that operates VWAP or TWAP! I saw that a simple way would be to analyze how many trades per second/minute the stock are having. So I would need the information on the amount of trades and also an element that calculates something like speed. 10 trades
Hi everyone Hello friends I want to learn how to write an expert. The few pages that are available for training are very general and do not teach anything in practice. That's why I ask you to help me with this example. I want to open two trades at the first moment, one sell and the other buy. Each
Hello, I believe if I run an EA in an ecn account then market orders open in two stages: 1- The order is first opened and then only after that the 2- the stop-loss and take profit are placed. Most of the time this is not a problem but occassionally my stop loss order and take profit order are not...
Hello. I'm looking for a programmer who is willing to make a trading robot with me. I got a system but I can not program in mql5 (i can't program at all). Whether my system will work on a robot I don't know, that's why I need to get it build first. But we can fine tune it together and in the end
double NORMALIZE( double DOUBLE) { return round (DOUBLE/ 0.01 )* 0.01 ; } VOLUME= MathPow (FACTOR, PositionsTotal ()- 2 )*( MathPow (FACTOR, 2 )- 1 )*P.Volume(); Alert (VOLUME); // result : 0.6333333333333334 Alert (NORMALIZE(VOLUME)); // result : 0.63 VOLUME=NORMALIZE( MathPow (FACTOR
I am doing the following (the code below) but I only see zeros whith "Comment output". I don't know if it is because " CDealInfo " does not work in test mode, or i'm doing somthing wrong. Can someone tell me please? Thank you!! CDealInfo dealInfo;
Hi Guys, I need an EA that opens positions whenever price hits MA using the following parameters: 1. If the candle that crosses the MA is red, check to see if the last 2 candles are green; If the candle that crosses the MA is Green, check to see if the last 2 candles are Red. Check if the fast MA
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
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.