Dear programmers, How to get market End time and Start time by mql4? I seen post about MODE_STARTING and MODE_EXPIRATION. But i can not able to get that information into chart. Please help me. Thank you.
Hi there, I tried this program, and has the following problem with it. When the price comes close to the action time, I get several buy or sell actions all ending in losses, they are not that big, but they all add up... Once the price have moved away from the cross, it is more stable and remains in...
[Deleted]
Hi all, I was just wondering if anyone could let me know if i am on the right track. I am trying to make an EA which measures the highest point and lowest point for the first 4 (1 hour) bars of each new day. I know how to check for new day : bool IsNewDay() { static datetime OldDay = 0 ; if (OldDay
Not going to argue about this. It's a bug. It's been confirmed by others. I'm done with this. MT4 is problematic, and I don't see it changing any time soon. So i'm deleting the original message.
Hello I'm beginner. I had many questions on this site. Always thank you. I have some ploblem about Interlocking Expert and Indicator. I'm using function of iMA in Expert. But chart and tester don't display graph. but If I push the stop button in tester, that display graph. I want to see the graph as...
Trying to figure out how to find the high between two points in time. From January 1st to March 1st. Going in circles. Perhaps someone could look at the following code and tell me if I'm headed in the right direction. Thanks!...
Hi, in just found this strategy: https://www.mql5.com/en/blogs/post/712016 Does anyone know as if there is allready a ea for mt4 for this, which gives automated signals`? Thanks!! LISA
hello, is it possible to add a new column to Optimization Results? : I would like to add "Loss Trades". I can use TesterStatistics(STAT_LOSS_TRADES) in Ontester() or Deinit() functions but I do not know how to add the value to Optimization results. thanks in advance.
Hi For some reason I can not get to MQL5. I have a job posted over there that i am trying to complete. I keep getting a not authorized error. I have a separate profile and have money deposited there waiting to complete this project. Is anyone else having an issue getting over there today. Thanks
[Deleted]
Dear Friends, I have a problem, in putting MACD indicator to the chart. As shown in the picture, why can not appears 2 line and 1 histogram as in theory (babypips)? Can anyone help me? Sorry, my question may be very easy for some people, but I am still a newbie. thank you
hi friends, I searched a lot for a code to prevent the EA from drawing arrow objects on opening new trades, without any success. I think it is compulsory to prevent the EA from drawing arrows on opening new trades as it is highly source intensive and would slow the process of back-testing. So I'd...
Hi I want to loop over the open positions in my account and not the open orders. How is that done as OrdersTotal() gives the total number of working orders plus the open positions. Thanks
I opened this topic because I'm searching for a list of different font types To display text with Objectsettext on Chart Who knows where I can find such a list with font types like "Verdana", "Arial",.....
Hello, do someone can help me to fix the code of this Grid EA please ? Its cannot be compiled due to errors.
i have attached indie Pollan.mq4. The problem with this language, is the point that vendors, traders who post their code, invariably use the language to enable the indicator to cheat, i.e., repaint, such that results are flawed, deliberately! That's a constant problem. Now here again, re the...
Hi guys, I am not advanced coder in mql4 but I am learning the basic. Here I would like to an help about how i have adapt the code that I tested on currencies for index, metals and commodities . My broker has 5 digits so I fixed SL and TP at xxx points. examples for German 30 I have this price...
Hi!, I would like to stop my EA on News Hour. so that i want to implement to stop trading in before and after 30 news time. Eg: NewsHour1=15:30; NewsHour2=11:30; When NewsHour1 is 15:30 EA should stop from 15:00 to 16:00 When NewsHour1 is 11:30 EA should stop from 11:00 to 12:00 Please give me...
A squeeze indicator on its own is useless , the amateur versions are free , they are no good unless it gives a trend direction.Where can I get the professional versions? All squeeze amateur versions , say is when market is directionless.
Good afternoon you all,I have this Expert Advisor in which I can set take profit and stop loss in points. I want to change this parameter with the percentage of the investiment. For example, when the profit is at 25% of the amount invested or when the loss is at -70% of the amount invested the...
in code does, shift=Bars-counted_bars-1; return -1, if there are 500 bars in data history? so.. then if =-1 does close[shift+.05] reference the 4th bar counting back from the current bar, c1=current bar, so c4 is 4th bar back in series. or does shift=Bars-counted_bars-1= 0?
As the title suggests, I am trying to strategy test a custom indicator of mine but it cannot seem to get passed certain dates due to an error that reads "Array out of range" immediately followed by "Testing pass stopped due to a critical error in EA" then followed by "2 tick events processed in...
Hi, I'm using HalfTrend-1.02, And I have indicator's .mq4 file. My problem is if indicator's line is blue, give me 1 value, or if it's red give me 0 value. How can i do that? example; if line is red { Sell = True} if line is blue {Buy = True}
This function shall have to create a vertical line by any cross between the two moving average, instead how it works now after any cross it prints a line for all the following candles. Have someone have an idea to how to solve that issue? I repeat, I need only a line for each cross. In the...
Hi guys, I am a newrier to MQL 4 but I have already coded some EA and testing. But I am not a professional or expert programmer so I need to an help. I would like to know how I can set the STOP LOSS for sell and buy market order using a fractal. I meanI would like to have a STOPLOSS= fractals or...
Any one please tell me. Can i open any order if my EA begin with the following code : int start(){ uchar i=0; uchar k=0; uchar t=OrdersTotal(); for(i=0;i<t;i++) {OrderSelect(i,SELECT_BY_POS,MODE_TRADES); k=0; if(OrderSymbol()==Symbol()) k++;} if(k=0) { conditions and order send}...
Here is an attempt of a code snippet to backtest indicators for BO. You can implement it into any indicator and backtest the signals. Attached is an example for testing signals given by RSI 7 overbought and oversold for 15 minutes expiry.
Hello, is there any MT4 trader's group where people help each other by sharing ea strategys and backtesting results?
Hey, I've been trying to find if there is a way of retrieving the second last time a particular event occurred. An example could be that a green candle forms. Is there anyway of retrieving the high of the last green candle that formed before this one. Assuming the sequence was red, green,red,red,red...
hello, my EA loads its settings from a TXT File. I am using MQL VPS. How can I upload this TXT file when I syncronize my EA? do I have to put it in a specific folder? thanks in advance and best regards.
Hello, I'm beginner. I have some curious. I run indicator. int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[]...
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.