MQL4 and MetaTrader 4 - page 866

i can't understand WindowExpertName()'s mean,please help me
int fuction(string a) { int b; for (int i = StringLen(a) - 1; i >= 0; i--) { b = StringGetChar(a, i); if ((b > '`' && b < '{') || (b > '? && b < 256)) a = StringSetChar(a, 1, b - 32); else if (b > -33 && b < 0) a = StringSetChar(a, 1, b + 224); } int...
  Not allowing trade  (11   1 2)
Hi, I need my EA stops to open trades if the last trade closed time is not > 10 min I use 1 min chart graph. So for example: If the last long trade has been closed @ 10:30 so EA must not open long order before at least 10:40... but it could open short trade. Please help Cheers
Dear mql4 forum I'm currently trying to build my first EA. Everything goes well, except that I am not able to read the values for support red / green trendlines from the indicator (please verify the print-screen) Even though I can get the current trend with (Trend_TF = variable of desired timeframe)...
Hello I need your help in programming a (pre determined initial and ending dates) linear regression channel with (sound alert, notification and send email) in all cases of crossing the mid line of the channel or moving outside. thanks in advance
  INT to STR  (1)
How to convert int to string the quickest way?
[Deleted]
Hello, I created an EA to open a hedged trade with opposing stoploss and take profit in both direction. It also adds pending orders of increasing lotsize as price direction reverses. However, sometimes the EA fails to open the orders and i get error 130. Can someone please tell me what I'm doing...
Hi I create indicator of my strategy with 7 buffer and many drawing line!this indicator aler:"Sell on symb (X)" or "buy on symb (x)" when I want to create Expert of my strategy,the integration of last indicator with this EA is very hard,any one see EA that work with alert ?for example when alert...
[Deleted]
Hello, How to duplicate an object of type arrows set on a Chart ? Thanks.
//+----------------------+//| CCI SAR/Cross Expert |//+----------------------+#property copyright "Ron Thompson"#property link      "http://www.lightpatch.com/forex"// User Inputextern double Lots = 0.1;// Global scope// Profit factorsint    TakeProfit=0;int    Pym=0;int    myCCI=0;// Display...
I have wanted to read files from a www address. I found and worked with some code that does it. - It works - but if I change the data on the website and run the script again, it doesn't update the read on MT4. If I turn off and then turn on the MT4, and re-run the script I get a fresh read and it...
Hi, I have been working on building an EA and custom indicator. In the custom indicator I set up some buffers to display lines across the chart and a few Objects to show information like the spread, distance between lines, etc. In the top right corner of the chart I have my objects displayed, so it...
Is anyone willing to build this indicator for me? I've seen it in other packagesand want to make use of it. I've included some basic information below. If youneed more info I think I could find some. I could provide the code from anotherpackage if that would be helpful. Time Series Forecast The...
  vertical lines  (2)
when integrating vertical lines https://docs.mql4.com/objects/ObjectCreate a selection of the window can be made by using the predefined parameter. I noticed that a vertical line in the chart window (when the parameter "0" is set) crosses all the subwindows which are present as well instead of...
Hi I want to create a EA that can place stop loss and take profit one every order! The EA must see the sell price or buy price and for Example for buy price: if opening order price between line 38.2 and 50 the ea automatically place stop loss on one line before fibo=23.6 and place take profit on one...
Hi I am an experienced developer but this is my first attempt at an MQL4 expert advisor. I am looking open two pending orders on the Germany 30 indicies as soon as it opens (7:00 BST). As my broker is alpari and from what I have read their servers work on GMT+3 this means I should try and get the...
[Deleted]
I want to place a pending long order and then when "something" happens : a. delete it OR b. if it is executed, close it. Will it change type if in the meanwhile the price hits the buy limit or will another order be created and this one will be automatically closed? If another order is created, how...
Ok - so first off, if anyone is offended by my " incessant questions", then just do not bother writing on here wasting your own time. For the sake of avoiding waffle, this is what I am wanting to understand if it is plausible to do: Imagine a given system has an average strike rate of 75%, profit
[Deleted]
Hi, ok i tried to get the three last close values in the journal: This is my code at start: double Hilfsvariable= (Close[1]); Print("Aktueller Close ",+ Hilfsvariable); double Hilfsvariable2= (Close[2]); Print("Vorgänger Kurs ",+ Hilfsvariable2); double Hilfsvariable3=...
Hello people. I would like to know if there is a way of find the max and min value inside an array who has a variable lenght. I know how to find the max and min in an array with a fixed number of elements, but if the number of them is variable I don't know what function is suitable to use in those...
I think somewhere in "The Book" if says having user defined functions is slightly less efficient (but much clearer to read and program). I'm wondering if I can use user defined functions while writing the EA, and then, when it's time to compile, copy and paste each function in place of the function...
Hello, I subscribed to a signal, then the signal tried to do an order on XAUUSD and the journal said symbol not found (Even though my broker has it, I do not know why it said not found) and then it unsubscribed. Is there a way to make it stay subscribed when the symbol is not found? Also does...
[Deleted]
iHigh(Symbol(),PERIOD_W1,1); // returns zero in backtesting Why does the above function return zero in backtesting but the correct value in real time testing? Is it a platform limitation? Or is it something specific to my local installation? I would assume the latter as I seem to recall using this...
  how I code?  (4)
int orders= OrdersHistoryTotal();if( OrderSelect(orders,SELECT_BY_POS,MODE_HISTORY==true))    {     if(OrderType()==OP_BUY) //Month()==12 Year==2013  )        {      OrderSend(Symbol(),OP_SELL,,Bid,1,,,"",MAGICMA,0,Red);           return;        }  else if(OrderType()==OP_SELL)...
Hi all, Just going through the MQL4 book. It says that limit orders become market orders when the price is hit. So does this mean there are no actual limit orders in MT4? Thanks in advance.
Anyone know if is it possible to get the actual price where two lines intersect as this usually happens in between bars ?
I might have found an ugly bug in the Optimization side of MT4 build 509, related to the new Spread control feature. After running an optimization for the first time, with a Spread value of say 40 pips specified in the new Spread control box, if you just change its value to another number (50 pips...
If the candle doesnt have upper or lower shadow does the High[] and Low[] return the highest/lowest point of that candle so an Open[]/Close[] value depending on the type of candle (bear/bull) or is it return an empty value?
[Deleted]
Hey guys, this is my first post and just wanted to say thanks real quick to everyone here who has contributed. This site is a goldmine as long as you're willing to take the time, be patient, and use the search function. So anyway, after a long struggle but eventual success, I created a script. The...
[Deleted]
I have M1 for USD EUR loaded in a single MT4 offline test installation : My Code code at Start = double Hilfsvariable2= (Close[0]); Print("Aktueller Close ",+ Hilfsvariable2); I expected the get one close for each 1 minute candle in the mt4 journal: These are the lines in the history center:...