Expert Advisors and Automated Trading - page 44

To post a new topic, please log in or register
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...
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 14int start(){ static datetime Time0; bool newBar = Time0 < Time[0]; if (newBar){
hello, folks my mt5 script is very simple, it read csv like this : void OnStart() {//--- string dt ; int file_20 = FileOpen("104782531.csv", FILE_READ|FILE_CSV,';'); if (file_20!=-1) Print("Error is",GetLastError()); Print(StringToInteger(FileReadString(file_20))); FileClose(file_20);
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....
When I use Meta Editor IDE, as soon as compilation finishes, the scripts gets removed / reloaded immediately in Trading Terminal. How can I achieve the same behaviour (reload / reinit scripts), when using command line compilation? I can nicely compile the scripts using command line compilation, but...
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...
Hi everyone, I am pretty new to the MQL5 platform. I built a custom indicator to identify Hammer and shooting star patterns on the chart. The indicator buffer at a particular index is filled with 1.0 after a hammer appears and -1.0 after shooting star appears. Everything seemed to be...
I want to open a second order when the price= first order's price + 5 pips I try to use Ask for buy, Bid for sell. However, these are not effectively.    if (contiditions are ok.);       {        openprice1=Ask;        Open Trade (OP_BUY);      }    if (Ask==openprice1+0.05)     {...
This is what happened to me recently. I was running 2 EA's on separate charts and within a time span of 1 minute the EA's lost over $1000.  The losses were small ranging from $1.25 to $2.50 each.  When I backtested each EA independently they showed overall winning behavior with high profit factors...
Hello I'd like to know how to implement in my EA a code that selects all Open Orders that have moved the stop level above the entry price.  I'm thinking in something like this:  Buy Order: OrderStopLoss() > OpenOrderPrice() Sell Order: OrderStopLoss() < OpenOrderPrice()
hello @ all like in subject written i am using metatrader5 on a linux host. this has worked fine just until a short (can't say it precisely) time ago. but now there is no signals-tab anymore in the terminal-window. i've just tried anything like login to mql5.com in the metatrader-program an so on...