MQL4 and MetaTrader 4 - page 311

[Deleted]
Hello to all traders, I am looking for a too/ea/pluginl that allows me to place multiple orders simultaneously with individual settings. example of what i am looking for: this tool allows me to trade maybe aud/usd - eur/usd - nzd/usd - usd/chf at the same time by simply entering individual settings...
I'm writing an EA based on a strategy that uses several predetermined levels to open orders, so the EA needs to manage several orders at once and make sure only one order is opened per price bar, per level so if there are 4 levels a maximum of 4 orders can be opened per price bar, more orders can be...
[Deleted]
Is it possible to create some tracker expert, that will monitor open orders andwill select appropriate order and close it when certain conditions are met ?
Hi, let's assume i know how to create pending orders, i am sending two pending orders, above and below a price level plus a distance, once the pending orders ar set, could you help me with the flow? i mean, no code needed, just the steps to manage this orders correctly, and coding by myself. When...
I am trying to test ea on open prices only from 2015.1.1 to 2020.4.7 but MT4 is skipping years and tests only 2015.1.1 to 2017.8.7 chart H1 H4 when I use M1 open prices only then it works fine how to fix this? Every tick test works fine for any period GBPUSD60 - 7 MB GBPUSD1 - 380 MB with or without
Hi All, So I have this simple code that Alerts the Value of DEMA . However when you look at the chart the trendline doesn't seem to hit the correct value of DEMA. Here's the simple code: #property copyright "Copyright 2020, Arcee P. Palabrica" #property link "https://www.mql5.com" #property
Hi everyone, I have a question which has come from recently not being able to place market orders with my broker to the insane volatility. I was unable to place market executions to open or to close trades, however if I placed a pending open order it would work as well as having SL and TP orders in
  Help me with a code  (14   1 2)
I am finally trying to take the first steps with programming and I am inserting a lot calculator system on one of my EAs that does not have one. The code is this. extern double LotSize = 0.01 ; extern bool UseMM = false ; extern int Risk = 1 ;
hi every one I use below Indicator to show candles time in all frame time now I want when 10 seconds left until the end it changes font color to Red can anyone help me ? Best regards Neda
I did this small variation of the MACD indicator, where I only changed the moving average from Simple to Exponential, then added two buffers to make the indicator line change colors. However, my indicator is bugged. After running for some time the values start getting messed up, and I get multiple
Hello guys, I am very confused. Why does this code not work if I press 'Q' but it works when I draw any object manually? void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) {//--- ChartSetInteger(0
Hello to all my friends and professors. I want to create a mini chart that allows you to add any indicator separately. Is it possible for friends to help? It should be like this
Hello dear trader community, I have coded sth.It does not give order. I am about to lose my mind. Anyone can help me solve this problem out? I really appreciate that. Thanks in advance for your help and time. Best Regards //+------------------------------------------------------------------+//|
I am using a swap strategy with two account with different brokers (hedged accounts). I have the code that sync between the two account (via two brokers). When i close a BUY order with broker A, my EA send Close message and the SELL order on broker B gets closed. i get profit from (swap-commission)
Hello, My Trading System Idea is the following - - look to buy if the Bias is "BUY" and look to sell if the Bias is "SELL", pretty obvious, in general. How to go about executing the buy/sell orders is a different story because the current story is about figuring out this aforementioned Bias. How do
To keep things simple and rather than having to change some of my EA settings each time i change time frame, I was thinking of setting up some presets that automatically applied based on the _Period value. I don't know if i have taken the correct approach but i went down the path of multi
Hi All, I have put together the script below to open a new pending order with the same comment and magic number of an existing one. The script seems to be working fine most of the times but occasionally it will not open any order and there are no error messages are indicated in the Journal. Any
i developed this EA and it is working fine but when i wanted to optimize it for best parameters it was telling me 84 passes done during optimization results discarded 84 insignificant. please i need help with optimizing my EA thanks guy
hey guys, i have following simple code i want to write with buy sell as iam newbie to this language learning to code from very basic..... i have this amibroker code written by me...just want to write in mt4 language. i want signal on every candle so iam not using exrem function of amibroker Plot( C
Hello, I have a crossover ea of 2 EMAs, but what I need is that when the 4 period ema crosses the 100 ema the command 50pips will open after having crossed, currently the robot that I have opens it immediately, I made some modifications using a double variable called Preciobuy and another
I created this CCI and EMA EA and i compiled it and there was no error only for me to backtest it and it seems its not backtesting at the same time its not giving me any error in the journal. The EA buys when CCI is above level 0 and price is above EMA. please help guys
I can set Moving Average Levels on my charts in the dialog box settings, so how do I program the MA Levels into an EA lines of code? To Buy when Price is between the MA Level values of up +20 and +40. To Sell when Price is between the MA Level values of down -20 and -40. Standard Moving Average...
  Counter Question  (2)
Sorry to bother you, but are these the same or is there a time when the're not? int counted_bars = IndicatorCounted(); if(counted_bars < 0){return(1);} counted_bars--; versus int counted_bars = IndicatorCounted(); if(counted_bars < 0){return(-1);}
Hello, I have a small but really frustrating problem with dividing. The Indi has many-many arrays and works well, but now I wanted to change the base of the arrays. The old one was the RSI, now i want to change into Daily % change ( or candle, because I want to see it on every TF). So, I wanted to
hi every one I write an expert that put 3 buttons : SELL BUY CLOSE I want to put these 3 buttons into a panel or window that I can drag them together can any one help me Best regards Neda
Hello everyone, hope everyone is doing fine, I am not sure if I posted on the right place, if not I am sorry I can delete it or remove ! Title says it all, I have .mq4 file thats a EA, when I add this file to Expert Advisor it just works fine but I want to make it to .ex4 file I opened it with Meta
Hi, I have a Huawei Matebook E, ARM version of windows 10. Until some weeks ago MT4 and MT5 had been working perfectly. I was forced to accept an update (maybe about 2 months ago), then suddenly all my MT4 stopped working. I have 3 brokers and all of them stopped working. Metatrader connects , and
I'm experiencing a very strange phenomenon. I developed an EA which runs once per bar, since it uses data of the last finished bar. During backtesting it behaved strange, so I stripped it's code to the following: datetime LastCoreTime; int OnInit() { return INIT_SUCCEEDED; } void OnTick() { if(
I have finally got an EA working and taking all winning trades. it dont trade often but when it does it wins. However I am using a high stoploss and I dont know if its taking into account margin. This would change things in the real world if I couldn't cover my margin waiting for the take profit to
Playsound in MT4 MQL4 has a bad error: Playsound does not work inside of loops. .. Playsound ("catsway"); // works well for (i=0; i...; i++) { if (i==...) // about once per hour { Playsound (dog.wav") // never works } Who can help me with an idea or better a workaround. Please send me an