hello everyone, I have a problem with the app. in Search Server can not find the server that my broker gave me, that Joshua development and renco development. the broker said that to him the app these server recognizes them, so much so that he sent a photo with these servers running me. what's the...
[Deleted]
Hi all, anybody knows how to get the distance between the last time bar touches an indicator to current indicator ? so lets say i have a simple moving average , and i need to find how many bars have gone since last time the bar touches the simple moving average until current bar. Thank you in
[Deleted]
I'm fairly new to automated trading and trying to create an EA that will trade a strategy that I use with Bollinger Bands and RSI. So far I have the coded the EA to trade off of bollinger bands. The program works fine the first round through when I tested it. One trade is opened and on the next new...
Hi, I am trying start me EA but it's drop error Array out of range in the below rows on some pairs: for(int j=2; j<barsQuantity; j++) { if((High[j]==highBar || Low[j]==highBar) && TrendSHORT) barsQuantity set as 3000 as extern variable: p.s. if I set barsQuantity as 2000 - the problem...
Why prev_calculated jump between 0 and Bars ? prev_calculated means last calculated bars , but now only is 0 or Bars int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[], const double & open[]
Hello, last time I learned how to avoid that when I write to a CSV it overwrite the same file ( FileSeek(filehandle,0,SEEK_END); ) Now my problem is that after writing,even without closing the file, it change row every time it write. I also tried with txt file, and it write row after row. I...
Hello Coders, I am in need of your help to code an scalper EA for period M1 for the below entry and exit criterias ( template attached for MACD/Ichimoku & williams % settings to be used) Entry conditions are as below for buy and sell . For exit criteria if a buy order is open and sell entry occurs...
Hello to everyone, I am trying to do a function to "intercept" the candle where it "appears" the "fractals" of "the function “ifractals" this is the code: for(int j=0; j<Bars; j++) { if(iClose(NULL,0,j)>=iFractals(NULL,0,MODE_UPPER,j) && iFractals(NULL,0,MODE_UPPER,j)!=0) {...
if the next lower bar is 100,000 bars back, is there a faster way than this to get the bar number? //--- starting with last closed bar, find next lower low int next_lower_low() { for(int i=2;i<Bars;i++) { if(Low[i]<Low[1]) return(i); } return(0); }
Hello all. I was hoping somebody could help me with a new issue ive encountered. I can no longer run strategy tests for longer than 2 month. Heres my setup. I have a dedicated mt4 terminal that has never been connected to any server. On intstallation all of the preloaded history data was deleted...
Hi, on the attatched code can someone help me see why when i change timeframe it messes around with the objects. So i always have to take indicator off the chart then place back on again to get the objects drawn as their meant to.
[Deleted]
The profit of the closed orders is considered correctly, but after closing it adds the value to the previous one (5; 5+5=10; 10+5=15) How to make each closed profit of a series be a new one, instead of the previous one (5; 5; 5) ? In a series of closed orders there can be buy and sell, or only buy
Inspired by the code in the documents, so I can go back to the current time: string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS); how can I subtract 3 minutes to the current time? I tried to write the code so it does not work double var2= var1 - 3;
I think I have messed up something very badly since my ea that I coded yesterday traded 36 trades GBPUSD trades in less than 1 min which would have resulted in huge losses in a real account. I've also tried it with AUDUSD where I got a pretty sweet result. After that it didn't trade at all. The time...
I want to check stopout level before place the stop loss for pending order?
As written in the title I try some ideas, to write an EA that gives me the take profit with a red or green candle without taking into cosider the pips. For example PUT signal: sent over the order with my condition and if the candle closes RED are GAIN, and I reached the Take Profit, otherwise I...
Hi Guys, I am trying to add some code to my EA so that it only has one trade open per currency pair at a time. I found this code online and tried it but I'm now getting the following errors: Could anyone possibly give me advice on how to resolve this issue? void OnTick() { int...
I am hoping you can help me witha simple coding issue (I just think I'm to close to the problem). I am tryingto use a Custom Function to do simulated trading and if the simulated marketorder is a WINNER or LOSER will determine if my EA places trades, etc. My problem is storing the valueof the...
Hi....If I draw a horizontal line on a weekly chart (S/R) how do I get that line to display on a daily chart and so on done to an hourly per say? Thanks you
Hello all! I have just realised this discrepancy on my chart On the CadChf Chart , I have plotted a Trendline on the WEEKLY time frame (Picture 1). And it shows that price has Touched and Crossed the Trendline. However, when I go down on the DAILY time frame (Picture 2), the Candlesticks/Price did
Hi all, I'm very new to MQL4 and have no C or C++ knowledge. I do know a fair bit of VBA. I have 2 questions on MQL4: 1) What is # used for? I saw some examples and it seemed like comments to me. Is it the same as //? 2) Does all codes in MQL4 ends with ;? (semicolon). Thanks in advance!
This subject has been on my mind for a while now. Example I have a EA installed on different MT terminals and different currency pairs with the same broker and same account. MT4 terminal 1 EURUSD - EA magic number - 1 GBPUSD - EA magic number - 2 MT4 terminal 2 USDJPY - EA magic number - 3...
Hi, Does anyone know a script (or is it otherwise possible) to move multiple charts along the time axis? I do not want to have multiple charts in one windows but each chart is in a different window. Now when I drag chart A along the time axis then I want also that the other charts are moved to the...
Hello Developers i have custom indicator and i want to use H2 time frame values of this Custom indicator. can i do this if Yes the How. and what the disadvantage of Non Standard Time Frames of Mt4 i will be very thankful to you if you quickly Response Regards Muhammad Mudasir
Hello everyone!I'm trying to read all the signals in the historic of my Buffer and I wrote this code: //+------------------------------------+ //| MyIndicator() | //+------------------------------------+ datetime MyIndicator(int y,int j) { int k=0; double MyIndicator0=0;...
Hello, How can one create an MQL4 function that accepts a parameter that is an array whose elements' datatype is unknown, such as MQL4's built-in ArraySize function? https://docs.mql4.com/array/arraysize int ArraySize( const void& array[] // checked array ); The ArraySize function is...
[Deleted]
Dear all, I need help to code an ea that checks the same conditions to open and close trades on as many symbols as it can from the symbols that the broker is dealing in, without opening their charts. any help on a code that returns " Symbol" and adds it tho the Ordersend.it is a try to run the ea
Hi All, I am new in programming and hope to get some help. I've create a simple indicator and uses iCustom in EA, and it works. Indicator for testing purposes //---- input parameters extern int ADXPeriod=28; //---- buffers double abc[];...
It's possible? Please, I really need your help.
Hello all. When solving one technical problem (arbitrage has nothing to do with it, it is only necessary for explanatory purposes) I needed to understand how EURUSD exchange rates of one and the same base pair, calculated using corresponding crosses, correspond to each other. In the columns from

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.