Expert Advisors and Automated Trading - page 258

Take a look at this photo We sell about 5 candles, but Expert also sells the next 5 candles. When the sales signal is issued, this code covers 10 candles after the sales signal. Even when the sales signal runs out I would even get 4 if we put 10 candles in the box (MathMax(10,Orders())) if the sales
  VPS: No option to sync  (11   1 2)
Hello! See the pic. When try to sync the vps, there is no option for me to sync it. Why not? How can I sync it? thanks for your help
I am trying to capture Price from the Previous SMA cross and use it as a variable. I know how to program to test WHEN it crosses. I am aiming for the exact price. Anyone able to help here
Hi After i use "PositionClose()" and my open position get closed, I want to know ticket of the last order and use "GetLastOrderTicket()" Functionas below: but the ticket returnd is for The last one left. How can i fix it? ulong GetLastOrderTicket() {//--- request history for the last 10 days
Hi, Could some one please kindly assist with an MT5 MQL5 Wizard module to force BUY only or SELL only of trades? If not, then can you show how to modify codes of an MQL5 Wizard generated EA to ONLY perform BUY or SELL trades? Many thanks in advance for your kind assistance. Sincerely, TN
After running the strategy tester, it gives you the number of winning and losing trades in the Report tab, but I want to know how many trades have hit my stop loss and how many trades have hit my take profit. Because some trades will close without hitting SL or TP, like for example when reverse
I have a basic Expert Advisor that uses: ATR for setting SL and TP ( ATR*1.5) 2-5% risk atrPip converts the atr to pips and rounds up. I use the atrPip to calculate the perPip value for my risk and calculate the lot size I need to trade I am testing with a $1000 account in a micro account. However I
is there any code to identify range and trend market? i used to identify support resistance for some bar...but not perfect all time input int x1 =50; // bar countPHighest1 = Close[iHighest(Symbol(),0,MODE_HIGH,x1,0)];PLowest1 = Close[iLowest(Symbol(),0,MODE_LOW,x1,0)];
is it possible to make expert or script to search all symbols with special conditions and filter them and show in market watch or anywhere else?if yes how? for example i want to filter symbols to show me symbols by macd best postion to buy
Hello everybody, I have set up a simple Buy Position with stop loss and take profit. But, as you can see from the image, after a BUY position is Opened and target is reached, it seems like the program doesn't recognize it and close the position after a very long time. I am losing my mind over this
Hi everyone How can I buy only the first 5 candles of Experts when the signal is given. Thanks everyone
Hi there. When I load an EA on the chart, on the right upper corner of the chart a label appears with the name of the EA and a smiley face next to it. We can´t move it, we can´t delete it, and it is sitting right on top of other indicator info. I asked the coder of the EA and he said that it is not...
  opening ex4 file  (2)
The expert advisor I have is written with the ex4 extension. how do I convert this expert advisor to file with mql4 extension
Hi everyone, I know that since version 1930 of MT5 it is possile to use .NET code from MQL5. My question is.. is it possible to call mql5 functionsfrom .NET? Thanks in advance
Hi, I am trying to use MetaQuotes.MT5ManagerAPI64.dll (managed c++) version 5.0.0.2085 to get charts. The only method that seems that could fit is this one. MTChartBar[] ChartRequest(string symbol, long from, long to, out MTRetCode res); For some reason it is returning the code
I am looking for EA special for pending order, that can be open buy stop or sell stop. If anyone have this EA that can be shared free, Thanks you for your help
how, i m trying to code EMA 14 to show in ATR 14 chart window i can do it in terminal by selecting moving leverage "Previous indicator DATA" but how can i code it for my EA #define EMAperiodATR 14 int start(){ static datetime Time0; bool newBar = Time0 < Time[ 0 ]; if (newBar){
With regard to the code attach below, How can i make my EA close Losing positions before the wining one? int CloseAll(){ for(int i=OrdersTotal()-1;i>=0;i--){ if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)){ int MN = OrderMagicNumber(); if(OrderSymbol()==_Symbol &&
I have an active VPS and run Forex-Combo on a Demo Acct. I need to connect to the MT4 Platform and get reports. FTP is the old tried and true method, but I don't know how to use it. Any help would be appreciated. Chris Fredericks
Dear Community I'm trying to perform a partial stop loss for each position. I try to check if the initial order that opened the position has got the same volume as the position itself. The order and the position should have the same ticket right? If that is true, the position shall be partially
Hi dev's, if you are reading this post is because you probably faced the same "issue" while you were developing your EA's. Let me explain in details: I use to divide my EA's into different blocks: the one for logic, where you define the conditions to open the orders, the one for open: check the
Hi! I want call the "Network Rescan" inside of my EA, how i do this? Tks
I have studied EA and one question is challenge me. This EA is initialized with second argument "Period()" as showed below. I have tested with M1 chart. I supposed the refresh (check close and open trade) is about each minute... In the second block, I coded a signal, that is based each M5. In the
Below is the method I'm using to place an order after two minutes if it doesn't go through. I've converted the larger part of it from mql4 to mql5 using the documentation on migrating from mql4 to mql5. It's the commented part that I'm not sure how I'll change to mql5 since in mql5 send orders...
Hi there, I have an EA that generates offline charts in back tester in visual mode, so you can see other timeframes at the same time. I am having a problem of MT4 freezing when the speed is set to max (32). How can I fix this?
Hi All, I am developing MQL5 EA and woluld like to implement more quality and control with unit tests. Does anyone have a recommended library or advise to test EA code to identify bugs. For example, I use MACD indicator in code and had many issues as it was not working properly and gave 0 values
I want to write a generic MA crossover EA, it just buy when the Fast MA cross above the Slow MA , and sell when the Fast MA cross below Slow MA from . I watched a couple of tutorials on Youtube on how to do this. And this how I found they usually do it: double PreviousFast=iMA(NULL,0,14,0,MODE_SMA...
Hi fellow coders/traders I need help with the following code. I am trying determine that price has closed below the various SMAs in the past 18 periods for example. But the following caused my mt4 to hang. did I create an endless loop?                for(int i=1; i<19;){                   SMA20 =...
 hello everyone i am trying to choose a developer for my job in freelance section but i don't know how since the responded developers that appeared to me are unclickable like in the screenshot. this is my first order on the freelance 
Hello, I am developing own semi- automated trading solution with possibility to connect to MetaTrader platform. I use C# and MtAPI (http://mtapi4.net/) - this library provide connector between Expert Advisor for MQL and C# code; data transmission (real-time, history bars, ticks) works fine. But I