MQL4 and MetaTrader 4 - page 1411

-
Hi, Just spotted a post regarding a Tetris game written in MQL5... Brilliant... SOmething to ease the monotony of "sideways days" :-) OK - The main reason for the post is this - I'd like to get my hnads on MQL5... Looks great... downloaded the tetris code & had a quick look. So much better than what
total  = OrdersTotal();    if(total<1)      {              if(isCrossed== 1  )//jezeli jeden to daje sygnal buy i zajmuje dluga pozycje                    {  //1                                  //preferowana cena zamkniecia,roznica,stop loss,take profit                        ticket1=...
Hi all: I am too new to MQL4 programming. Having problem with my program. I do appreciate if anyone can assist me. 1. I wish to find the before price of the current BID/ASK price. I do not know which code shall i use. Price_OPEN or Open[1]? The before price and BID price is within then same bar. 2....
[Deleted]
Can You add year period to MT5 ? I need year period!
[Deleted]
I use 'ALLFramesTrend.mq4(picture below)' on my trading. Sadly, this indicator's bar appears next chart bar as if there is on previous chart bar. For example, I want the indicator's bar appears point B(previous bar), but actually appears on point A(current(next) bar). -if current chart bar is A,...
[Deleted]
HI! When I use OrderSend it makes a lot of trades but I want to make only one per day, means that a trade to be done everyday. Tried different methods but no result. Please help.
  Question on genetic optimisation  (92   1 2 3 4 5 ... 9 10)
I decided to start optimizing the TS, but since there are a lot of parameters to optimize - 13, and the TS is designed for M1 and there are no more than 10 trades per month, I decided to use genetic algorithm and take the history for 1 month. At the first run the calculated time was more than 250
Visual Investors FX Club - Demo Statement The above summary shows the performance of the Visual Investors FX club's (ViC) demo account for the past 3 weeks (From the End of September to date). The Visual Investors FX Club is opening its doors to 10 more additional members. If you are interested...
[Deleted]
hi for example if i want to keep the value that my position is closed and use it later what i shoud do? thanks
[Deleted]
Does anyone have a snippet of code that will remove orders based on a certain amount of time passing by? I know orders can have an expiration but I want my EA to remove an order after two bars on the 15 minute chart. Any help would be greatly appreciated!! Daniel PS: I did try searching the forum
[Deleted]
Hello, Does anyone know if there is function to automatically populate the horizontal line description? I wrote an indicator to plot support and resistance lines based on extern manuially entered values. My goal is to populate the horizontal line description with "Alert_0" so the alerter indicator...
Hi everyone, Looking to buy in this scenario. The price has moved to the bottom of the last twenty days. This code being: (Ask<(Low[iLowest(NULL,0,MODE_LOW,20,1)])). What I am looking for is the code, that after the price has reached this area, I wish to enter a limit order to buy two pips above...
What's the best away to remove zeros (or any value for that matter) from a 1-dimensional array so that all the other data shifts down? For example, lets say I have the array: double array1[5] = {0,5,0,3,4}; and what I want to end up with is: {5,3,4} so that the new ArraySize is 3 and all the zeros
[Deleted]
Hello to all! My name is dra and im not a programmer but I really need something programmed for me and was wondering if any of you all have the time and would like to be helpful. What I need done should be simple but then again I dunno you guys have hard jobs! I respect all programmers because...
[Deleted]
hi! how to make a trade if the current time is 13:00? please help...
[Deleted]
Hello, I use a function in order to modify values in a array and i want ot return the modified array. Example : double userFunction(int A, double BufferValue[Size], double B) { double ModifiedBufferValue[Size]; //---- ... modify array value... //---- return(ModifiedBufferValue); } Is...
Hi all, i had a problem with my broker that is not a scam but friday quotes were delayed . Maybe saving quotes in a file with timecurrent and timelocal indexed on a atomic clock. What do you think about this
[Deleted]
  Simple Bug......  (5)
i have this indicator but the sound and the indicator don't work. If you compile it has an error. here is the code as well as the indicator.....I would be very grateful for your time as well as your solution. //+------------------------------------------------------------------+ //|...
Hi, This runs OK, but in the experts tab of the terminal, there is a continuous stream of 'Divide by Zero' errors. Thanks to one and all for any assistance with this (< 8) //+--------------------------------------------------+ //|PipMaker v5 Neo Last Update 06-27-2007 01:05am |...
Okay, I trade with Forex.com for my forex investing. Here is my story. A few month back, I notice listings in my account dissapearring back and forth like it was being edited. And just this week, some of my winnings dissappeared without a trace. Is this emezzlement or what? The small embezzlement...
[Deleted]
Hi guys, i use many parameters in my EA, and when i try to optimize the script using Genetic algorithm i get this error: "Too many passes for optimization. Please try to decrease optimized parameters amount or to increase parameters' values step." Of course i know it will take a lot more time to run...
Hi, anyone wanna modify this function a little ? Its a very useful tool for testing / debugging / visualizing stuff. Problem is that it places multiple Vlines at the same bar (typically on for each tick) and even a short testrun can result in thousands of lines ontop of eachother, which is very slow...
[Deleted]
Hi, I was wondering if someone could 'read' this EA and tell me how it works? I am trying to learn how to read code so that I can also learn to write code. This one I find interesting when I back test but I can't figure out what entry signals it uses. Thanks
[Deleted]
I am writing a EA and test it on history date. I test EA many times and the AccountFreeMargin() function always return negative number now. How can I reset deposit to make AccountFreeMargin() function return initial deposit value? Thanks!
[Deleted]
Hi asking if can be done when getting BUY signal, open order Buy Ticket only after the price goes up 5 pips ( if signal is SELL and the price goes up 5 pips, not to open Buy Ticket) For Sell signal is in contrary. Thanks
This indicator does not work on a 4 decimal place MetaTrader account if I put it as 3 pips but if I use a 5 decimal place MetaTrader account and put 30 pips, it tracks the bar highs and lows to the nearest 3 pips. Anyone knows why? Thank you...
[Deleted]
Hello, When I put the following, "=MT4|BID!USDCHF" into an excel cell the USDCHF BID is exported successfully to excel. Is there a formula (or any other way) for the 60 period simple moving average to be exported to an excel spreadsheet? Any help is greatly appreciated. Thanks, Paul
  Automated Trading Championship 2007  (127   1 2 3 4 5 ... 12 13)
We are glad to inform that preparations for the Automated Trading Championship 2007have already been started and the contest will certainly take place. There is notvery much time left before it starts. At present, we are working at the Championship website, which we are planning tohave launched by...
[Deleted]
int Open_Position(){   double mystop = Ask-Stop*Point;       for (int pos = 1; Low[pos] > Low[pos+1]; pos++)   {      mystop = Low[pos+1] * (Low[pos+1] < mystop);   }      if (mystop > Ask-Stop*Point)   {      mystop = Ask-Stop*Point;   }      OrderSend(Symbol(),OP_BUY,1,Ask,3,mystop,0,"EA Order"...
I have an idea for an indicator that i have been kicking around. i was hoping a few members of this community would like to jump on the project. its an indicator that will illistrate areas of high support and resistance using channels, trend lines, fibonacci and pivots. post a replay if anyone...