Good Day everybody... Hello, I've been searching on the forum but I cant find what i'm looking for. The strategy is .. Let say I'm open a BUY position with 0.01 lot ..( eg. I place a BUY at a price 0.74854 ) At the same time I want to place SELL STOP with 0.02 lot ( eg. I place a SELL STOP at a...
[Deleted]
I want to close buy and sell at a price with tp / sl. Can you do that?
Hello, a simple problem here, if you are an expert you will find this problem within seconds....my indicator always gets error "Array out of range" when trying to test it. I just dont know why... #property indicator_separate_window#property indicator_buffers 3#property indicator_plots 3#property...
[Deleted]
Hello , I ask about the difference between those 2 function if we use them for the same target like fetching spread for example : MarketInfo(Symbol(),MODE_SPREAD ,,,, SymbolInfoInteger(Symbol(),SYMBOL_SPREAD) Thanks
Hi All, Could you please explain me what is the impact when i used 4 hours bars in the EA and the EA is executed on 1 hour bar Thanks in advance.
Is possible to use pointers to basic data types like int, long, double, etc.? There are many excellent libraries of C functions and it is very frustrating and disappointing to get a default C code and try to convert it to MQL, in addition to being very tiring. Examples of pointers in standard C:...
Im trying to update my Published EA but it says the error. I already tried to compile it with the metatraderbeta.ide with no errors on code on it but still the same error on uploading can anyone know how to troubleshoot this problem?
A year ago I download a free program EA which works great on my PC. EA I copied to the laptop but not working. New EA is now for rent. How to copy EA on a laptop? I have just EX4 file.
Hi, I have updated the MT5 to 1595 version and now I have pb with backtesting (in demo no, it's ok). The problem is in OnTradeTransaction when I call the HistorySelect. This leads to a block of execution That is a code sample void OnTradeTransaction( const MqlTradeTransaction& trans...
Hi everyone, could i use the boolean operation OR (||) into a While cycle?, i.e: ------------------------Example------------------------- bool BooleanFlag=False; int n; int start() { Alert("Program Start"); while(n<6 || BooleanFlag==False) { Alert("BooleanFlag =",BooleanFlag); Alert("n =", n);...
Hi together, have some questions. -------- Can we direct copy Trades from one MT4/5 to other MT accounts? ------ As example i am trading and want my signals automatic to family accounts copied. Regards Mike
Hey Guys I have a 1hr/4hr GBPUSD chart on profile with an EA attached. I then change profiles, the new profile is 1hr/ 4hr EURUSD with the same EA attached. Will the EA still be functional on my 1st profile as in my second? Cheers John
I'm trying to understand if I can use multiple cores on this EA: I read an array of trades from disk: Buy ENQ on March 1 Buy ENQ on March 10 Buy ENQ on March 17 ..... Etc. ... and then loop throughthem, calling OrderSend() for each With one core active thetrades are executed in order, but when...
I have an EA that uses OnTimer() to read a file from disk, trade on the basis of its contents, and close it. Things go fine when I backtest the EA 4 times with static input values of 50 and 100 for two input variables (4 different runs). But when I try to use the optimizer with input values Start =...
Hi In order to properly find out if my pending order is executed i try to exactly understand how it works: So i find out I can place a pending order (trade_action_pending) then i get result.deal=0 result.order=12345678 order.result ist the order ticketnumber right? now here comes the first question:...
[MT5] How to display the arrow only at the chart that open positions - close position (Show realtime history of deals on chart), other charts will not allow display the arrow. i open multiple charts of the same currency pair (using different time frames or same time frame) and run a robot on each of...
I have a MQL4 code: for(int i = 0;i < 3;i++) { kline[i] = iStochastic(NULL, Period(), 8, 3, 3, MODE_SMA, 0, MODE_MAIN, i); dline[i] = iStochastic(NULL, Period(), 8, 3, 3, MODE_SMA, 0, MODE_SIGNAL, i); } But MQL5 dones't have MODE_MAIN and MODE_SIGNAL. How should I get this result at MQL5? The...
How to add an indicator for a certain time frrame just to see the trend. Whereas I want to trade in another time frame. How to create srciptnya mt4 for expert advisor. Thank
[Deleted]
i just created an easy 3 button, 1, button close buy 2, button close sell 3, and the new button, button minimize on the pic, the top right button is button minimize, when click it, the button close buy / sell, i want it to minimize, and click the 2nd time, it will show it again. so what the...
first of all...i suck at programming language.. lets keep this as simple as possible... order = i want the order to be like this order will be purely based on the heiken ashi(HA) candle color..so if the previous color of heiken ashi candle is red, sell order will be open right at that time when the...
Hello , can you help me please . How can i read this value by ObjectGet without buffers . i need value like USD 3.3 Thank you
hello master master goodnight, I want to ask how to make a script on mql4 to close all orders in just one currency only. example: I trade in many currencies with a lot of open positions, but when the EURUSD currency I see false position,then all orders in the EURUSD currency will close all position
Existential doubt... If my broker increases the spread considerably over the weekend (44 in EURUSD)...this will be the spread that MT5 use in the strategy tester? I hope not, because it would be impossible to do tests during the weekend. I hope I can get out of doubts. Thank you in advance....
Hi, Is it possible to grow an open position without opening a new one in Mql5 on a hedging account? I'm using the Ctrade class. Thanks for your tips
Hi guys, do you know how functions( like OnTrade, OnTick in MT5) are called? I Mean: supposing in receive 2 ticks events with 1 second of interval, but inside the OnTick it takes 3 seconds, what' s going to happen? The 2° call starts after the first call is finished or the second starts even if the...
int LotDigits; //initialized in OnInit int MagicNumber = 937422; double TradeSize = 0.1; int MaxSlippage = 3; //adjusted in OnInit int MaxSlippage_; bool crossed[2]; //initialized to true, used in function Cross int MaxOpenTrades = 1000; int MaxLongTrades = 1000; int MaxShortTrades = 1000; int...
Hi there, I recently installed a new MT5 software and I am getting the following error messages: Toolbox/Experts - loading Moving Average failed Strategy Tester/Journal - Moving Average.ex5 failed I have tried to re-install MT5 trading platform several times but no avail.
I have an imaginary code - First question : I have to get just "bid" and "ask" value for each tick, it's faster with the "MqlTick" structure, or "SymbolInfoDouble" ? Second question : I have (for example) 3 indicator : a moving average "MA" - an average true range "ATR" - an average directional...
Hello every one I have a question about back test in MT4 Back test using MT4 test only one time frame as example we can test EA on M5 or H1 frame but when my EA use for example moving AV for M5 and moving AV for H1 test fail IS there any way to test EA witch use multi time frame in calculation, is
The data from the broker has some big errors in the data. I want to edit this data myself and correct it. In MT5, is there a way to do this? Thanks.
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.