MQL4 and MetaTrader 4 - page 1566

[Deleted]
Hello, Any ideas on how to code this?. Lets say there is already a open BUY position with Magicnumber4. I do not want to open any additional BUY positions(i.e reject pending orders) if the account already has an open buy position with magicnumber4. Thanks,Padhu
[Deleted]
Hi, I coded this Stochastic RSI indicator and it doesn't fully work. The signal lineisn't drawn on the screen. Can anyone spot my bug? Thanks, Kevin Robertson
[Deleted]
i just read in the forum,what a trader wrote about his ea being removed or disallowed by his broker. and i wonder if it is possible for a broker to know,if a trader is using expert advisor for trading or he is doing manual trading. kindly reply
Hi, I have made this EA, now i can compil it but i still have problem with it. Normally my EA must stop after have losed and restart next day. When I test it sometimes it makes only one trade, or it makes more trades after have losed in the same day. Moreover, when i parametre the number of loss
[Deleted]
Below is an image of a chart with a custom indicator I wrote. The chart is H4 chart and the indicator is hard programmed to PERIOD_H4 for the indicator. The indicator is working fine on H4 as was programmed to do so. GBY/JPY H4 chart with indicator: No issue here, all is working fine Everything is...
[Deleted]
Hello, How can I write account info(symbol, buy or sell,lots) to a csv file every 5mins?. Thanks,Srinivasan
Hi, I have made this EA, now i can compil it but i still have problem with it. Normally my EA must stop after have losed and restart next day. When I test it sometimes it makes only one trade, or it makes more trades after have losed in the same day. Moreover, when i parametre the number of loss
Hi, I have made this EA, now i can compil it but i still have problem with it. Normally my EA must stop after have losed and restart next day. When I test it sometimes it makes only one trade, or it makes more trades after have losed in the same day. Moreover, when i parametre the number of loss...
:) There is an opinion that there is 'absolute knowledge/truth', that there is no 'grail' for there can never be... Generally speaking, philosophically, this is 100% true. Truth of the same series that only God and an insurance policy can give guarantees... Nothing is eternal. But with a reasonable
it compiles but does not draw arrows on my chart anybody can imagine what am i doing wrong?
Although I'm very comfortable writing an indicator, mostly due to my 20 years of programming the VB type languages, I'm having difficulty with the Expert idea. The main issue is dealing with the time dimension. My understanding is that the EA, like the indicator, keeps polling the data. I wish to...
[Deleted]
hi pros, what can i do to this ea code to put an end to ''trade context busy'' error,which i always get anytime i try to use it on 2 different pairs at a time? the code is stated below,thanks //+------------------------------------------------------------------+ //|...
[Deleted]
i need help for adding sound alert code. I want the system alert me when the arrow indicator appears? can anyone help me?
[Deleted]
Hi all, I like to convert the string "Mon Jun 16,4:00 AM" to a DateTime variable. Can someone guide me how to do that? Thanks! Mike.
New article Show Must Go On, or Once Again about ZigZag is published: About an obvious but still substandard method of ZigZag composition,and what it results in: the Multiframe Fractal ZigZag indicator thatrepresents ZigZags built on three larger ons, on a single workingtimeframe (TF). In their turn...
The optimization status is 172/10496 (1030301) genetic algorithm is ON It has been 30 hours 32 minutes so far (after this it says 1822.45.07) How much longer is this likely to take? I haven't used genetic algorithm before, I thought it was meant to speed up as it progresses
[Deleted]
Hi all cant see where to initalize an indicator to show my trailing stop. Any Ideas?? Chris
[Deleted]
Hi, I used this custom indicator and it displays signals for different candlestick patterns. And it has a summary section at the bottom summarizes how many time each pattern occurs with a trading recommendation. The indicator does not come with the source code and I like to use the logic as expert...
How do I program the condition/signal (with an indicator) so that it is triggering the acoustic alert only if s predifined condition is true FOR THE LAST BAR in the chart? (now the alert is triggered as soon as I add the indicator to the chart window (due to previous signals in the chart) I'd...
[Deleted]
Hello When the current time is 18:00,and i would know,the bar number at 16:00 in my expert advisor. It's Possible?Thanks for help,and Sorry for my English.
[Deleted]
Hi I try to put a small looping rountine into my EA, below is the testing code int start() { //---- while(IsStopped() == false) { Print("1"); Print("2"); Print("3"); Sleep(5000); } //---- return(0); } My problem is IsStopped is...
[Deleted]
G'day, I'm looking for someone in Sydney who can program an expert adviser with me. I have a system that works for Roulette & will also work for Forex. Glenn
Hi all I've been working through the xpert adviser sample in the "BOOK" and have run aground. The following code looks good to me:    {               Ticket = OrderSend(Symbol(),OP_BUYSTOP,Lts,High[1]+5*Point,3,High[1]-SL*Point,High[1]+TP*Point);           Alert("long,stoploss, SL","  ",High[1],"  "...
Information is growing onthe forum, and we aren't always able to even formulate a correct searchrequest. Besides, far back when the first electronic directories onsome or other activities had just appeared as additions to paperbackeditions, a friend of mine didn't want to give up searching in the...
If there are any experienced Windows programmers available, I need a simple dll created and I am willing to pay for it. Simply put, it is a Windows dialog box that looks and does exactly the same thing as the built-in MessageBox() function in MQL4. The only difference is that it needs to have the...
Does anyone know whyall my Expert Advisors always make two trades instead of just one? Edwin
Hi, First I will thanks all persons who help me to resolve every question that I have added in this forum. Like I begin in programmation I have used the following code to limit my number of loss by day (normally EA stops when it looses and it restarts the next day). I am looking for another simple...
I have a question: it is possible to visualize two spot on a chart solo ? If him, as is it possible? Thanks.
Hi, does anyone know of / have an expert indictaor that will let me know (thru any visual means) when candles have been away from a moving average for a certain time. e.g if i set the time to be 200 candles and the moving average to be the 200 SMA as soon as the chat indicates that it has been 200
Hi, I have put this code in my EA' s code but it seems it doesn't work. I ask myself if is code works ? It really stops EA after loss or does other things ? Sorry for this question but i begin in programmation. This is the code : Function NumberOfLossPosToday():...