Hi, I am a beginner in programming (know some phython basics and can write basic functions in mql4) and I would like to program an intraday ATR indicator for a specific time range. For example I want to have the ATR(5) of the NY Trading session from 1430pm to 2100pm. I think I would use a for-loop...
Dear Forum, A quick question: I have an EA attached to 3 different charts, works normally, until it starts opening and closing many trades, but when closing, it does not put a closing arrow? What could be the potential reason of no putting a closing arrow in the chart when closing? Maybe the
[Deleted]
Hello, I have indicator that currently has 1 buffer for buy signal and a buffer that record the date and time for the prior buysignal, say the name is buy1datetime. buy1datetime[i]=Time[i]; The problem is that this buy1date1time value is in second pass ince 1.1.1970. I want to turn it into...
[Deleted]
In the documentation it says that OrderSend() returns -1 on failure. But in the expert advisor example documentation here, it shows the following: Ticket=OrderSend(Symb,OP_BUY,Lts,Ask,2,SL,TP);//Opening Buyif (Ticket < 0) // Success :){ Alert ("Opened order Buy "...
I am currently forwarding testing my EA and I've discovered an issue. My coding seems to be having a conflict when it is trying to place multiple orders. Some times it will place two orders on the same market (double the risk) - Most of the time it won't be doing this though. I swear I thought I had...
Hi All, This works really good attached to 1M chart. It gives us the number of tick per min and then it calculates an average between 2 ticks in milliseconds. Any one willing to change this to get the average fresher? If we could get the average updated with a parameter in sec. For example
Hi forum, had it recently pointed out to me by one of our esteemed moderators (THANK YOU RAPTOR) That I writing my code such that my indicators were updating every tick. Have just found the time to start looking at this and hopefully re writing some code to ease load on CPU, but I am a bit confused...
[Deleted]
As the current version of MT4 does not support backtesting with real tick data, I am looking for a software that enables MT4 to do this. I am aware of the Tick Data Suite (http://eareview.net/tick-data-suite) and I am ready to buy it, but I would like to first compare this software with its...
[Deleted]
Of course not I hear you cry!!!! So have any of you found a solution to this? I am using Dukascopy data, downloaded via birts eareview, which gives me a better modelling result. I backtest my ea to get the optimized settings, and then use these settings for the ea on my live mt4 account. If a I run...
Hi, I would want to know, if it's possible to call dynamically variables. For example: I create 3 variabless: string Var1,var2,var3 And I call them in a loop like this: for(i=1;i<4;i++) { print(var+i); } When I compile, i have an error:" var+i didn't declare". Do you have solution please?...
[Deleted]
Nice to meet you. I am a software engineer. I resigned recently, and I have no job now. Fortunately I found MQL. It's quite cool tool and very useful programminglanguage.(But I'm not familiar with it) Now I'm focusing on some other trade project for commercial use. It will use indicator to show some...
In watching some MT4 related videos online it seems that there is a way to visually see MTFs while backtesting. The approach explained is to: 1. make sure offline data is available for both timeframes 2. start the backtest (M5) and press pause 3. File-open offline - select larget timeframe data...
Using MQ4 Build 509 If I directly subtract two time values mq4 gives 0, but if stored in intermediate variables the result is correct. (probably something to do with the way mq4 implements the syntactic sugar to make the TIME longs look like doubles??) Run following script for demo... int start()...
Is their a link or anything that can show me how to download an indicator onto my MT4 broker? Not been able to figure it out. Thanks
Does the strategy tester record in the final trade-by-trade results whether an order was closed by a margin call? In the tester results, I have seen order types buy, sell, close, s/l, t/p, and close at stop. But, I have not seen a margin call order type in the results, but that doesn't mean that...
Good Day... Is there a way on how to count how many lines are there in a text file? for example the text file contains... EURUSD GBPUSD EURJPY USDCHF after reading the text file using FileOpen it should return 4 as it contains only 4 symbols or 4 lines... Thank you very much...
[Deleted]
Im confused. I wrote something in loop script and encountered a wired thing. if(iHigh(NULL,0,xi) == levelnum) {ZV = true;} it does not work. first check: if(1.32 == 1.32){ZV = true;} It works. if(1.32 == levelnum){ZV = true;} it works. if( iHigh(NULL,0,xi) == levelnum){ZV = true;} It does not
[Deleted]
Hi, when MT4 or the internet connection were closed, we have gaps in the .hst files. When MT4 or the internet connection open again, my indicator encounters these gaps. What can I do in the indicator source code, to make MT4 fill these gaps? At the moment my only workaround is to reload the...
I have been coding a function to display previous trades on a chart, in the same way that dragging a previous trade to a chart does. I want to keep my function versatile so I am making it configurable while at the same time making the defaults match what MT4 shows by default, so some of my function...
[Deleted]
My friends, I am not a professional MQL programmer, but I have been doing it for quite a long time and I am very interested in developing trading robots. I am happy to implement your ideas for FREE, my only motivation is love of coding and desire to see interesting and unusual trading strategies
Dear forum members :) Ready to write FREE EAs on your strategy. I apologize to everyone if my words offend anyone, but most people think that only their strategy leads to grail and therefore do not share ideas. I think a satisfactory result may be obtained after a wide discussion. That is why the
Can anyone explain to me why this happens? double result = 15/100;Print("15/100 = " + result);Console: 2013.09.17 15:01:25 Test EURUSD,Daily: 15/100 = 0.00000000
[Deleted]
Hello can .. can you tell me if there is something that I think MetaTrader 4 trade redirect to a website as a graphic? all par minutes is `updated? or what was earned today?
Hi, I know the question has been asked few times but I cannot get the same amount as OrderProfit() by doing this (when this is a profitable position > 0) profit = MathAbs(price - OrderOpenPrice ()) * OrderLots () * MarketInfo (Symbol (), MODE_TICKVALUE) / Point;profit += OrderSwap () +...
Hello All just bought the new Droid Maxx and installed MetaTrader 4, and received the following message "Device is not Supported" it looks like Samsung is not the only phone having support issues. Any thoughts out there?
Why does the EMA in color have the line breaks? How can i have it all continuous like the one i have in ThinkorSwim? Also how can i change the line style and width at the same time? It seems with alot of these indicators you can only change one or the other. Please and thankyou.
I ran into something of a bug while writing some code to round spread data to the nearest multiple of my choice. See below: //Given that (in the variable declaration)://extern double DMultiple4 = 2;if(SignalID == 4){ RefreshRates(); D = ((Ask-Bid)*100000); Print("DMultiple4 is "+DMultiple4);...
Good Day... Is there any possibility to recover spreads from previous bars? Thank you very much..
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.