MQL4 and MetaTrader 4 - page 839

I appreciate this has been briefly touched upon in the past but I wanted to bring it up again as I am forward testing my EA with a small live account. All the position sizing's with the currency pairs are correct. Because my account is denominated in GBP the minimum tick sizing is larger to that of
This morning when I checked the operation of an EA running on a laptop computer, I found that MetaTrader was closed. I don't mean that a trade was closed; I mean the MetaTrader software was closed, as though the computer had re-booted. However, the computer had remained on all night, as there was no
Hi, I am trying to do the following: Loop through open trades. For each open trade in loop: Check profit amount of each open trade for previous candle close Check profit amount of each open trade for current candle close (i.e. profit amount at current market value) If profit amount of candle
[Deleted]
Hello, My EA would require that once a trade is initiated, it follows some specific exit rules for the 5 next bars... After that, if the trades is not exited, there is a trailing stop. My problem is that you may have 2 or 3 orders open during those 5 next bars (one at each bar)... Each order should...
[Deleted]
Hello, i have a EA with wich i can change the takeprofit and stoploss from chart using horizontal lines, but the mt4 order mask always open when i click on the takeprofit and stoploss, can i change the settings that this dont happen any more?
[Deleted]
Hi folks, I'm quite new to the fx world and I'm try to learn and experience as much as possible. I developed a set of EA which I backtested (I used Alpari data) and optimized for several pairs. The results of these simulation are quite good but, from a pure mathematic point of view, how accurate and...
[Deleted]
Hi Everyone, I have created a list of 100 different condition based on the value of MT4 (built in) indicator. I want to create a custom indicator with only 1 buffer that include these 100 conditions above. Before doing so, I wonder if there is any limit on the number of condition I can include in a...
Hello, I have a problem and can't find solution with my expert adwisor. Maybe because I'am absolutely green in programing and it is first programing project in my life :) The problem is, that last operator in code always is TRUE. I'am talking about this: " if(SL!=Sup-0.0005||TP!=Res+0.0005) ". Why...
Hey, I believe that all the issues are related so I've grouped them into one post. First of all, I've noticed that if on a machine that MT4 didn't run for a while, when I start it I might get some gaps in the history. When I press the download button the history slightly changes and some other gaps...
Hi, I'm looking for an MT4 broker that offers raw spreads. Can anybody advise?
mon EA est semi automatique et je souhaite le rendre automatique je souhaite que quand il s'enclenche exemple a 11h il prenne automatiquement buy stop et sell stop par rapport high low de la bougie précédente soit celle de 10h pouvez vous m'aider merci
Hello everybody, i have a real problem which is blocking the progression of my EA.In the following part of code, i'm trying to develop an EA, which increment the lot losses and when the first win come , these losses will be the amount of the next trade  but it seems there is a probleme with the...
Dear all, May I know where to see the order's magic number? I use the following script to send an order with a magic number. The order was submitted successfully. But I cannot find the magic number...Many thanks for your time and consideration. Your sincerely, taozemin. #define...
  End of trend (indicator)  (95   1 2 3 4 5 ... 9 10)
This is the example in the picture where the lines are drawn manually. The indicator counts the targets itself, the middle of the flat, the average targets and the opposite extremum of the flat. A red cross indicates the end of the trend by time. The indicator is used to simplify calculations. Its
Hi on all the indicators i m creating i m using a while loop (below). Lately i came across on this debate on this thread Contradictory information on IndicatorCounted() - MQL4 forum (thanks to WHRoeder for pointing that to me) so questions arise. My code looks like this extern int history=300;.......
Hi just another question, Lets say i have an EA with. extern double  Take_Profit               = 10; extern string  Friday_Close_Time         = "19:30";extern bool    Auto_Lot                  = false;extern int     Max_Orders                = 1; And i change this to not extern, becuase i dont want...
[Deleted]
  Help a girl write a simple advisor  (81   1 2 3 4 5 ... 8 9)
Hello Gentlemen. I've been trading forex for about 4 years and during that time I've lost all my money more than once, but I've also earned quite a bit. I can't say I'm a loser trader, but at the moment I've lost all the money I earned and the gradual loss of my money started with stupidity (from
  Data Type limits  (4)
Just found exceeding the data type max and min values doesn't trigger any kind of error message... just silently wraps around :/ e.g. int a = 2147483647;int b = a+1;  //b is -2147483648 !? Are there are any simple ways of safeguarding against this?
This is the conclusion I came to after spending 4 years studying TA and developing my own systems. Besides, I am well acquainted with several traders who have been trading for 7-10 years. Their conclusions about TA are the same as mine: you won't make money on Forex market with technical analysis. I
Hi, Can anyone help me with the following; I've created a function to search and find the oldest open trade and the output is the ticket number, it works fine....but int FindOlderTrade() { int older_time; int ticket; for (int tomate = OrdersTotal() - 1; tomate >= 0; tomate--) {...
  Help coding ea  (5)
Hi, I want to include the indicator to ea. The logic is: if price close above the red line then op buy and if price close below the green line op sell. Can anybody help me..? Sorry about my english.
Hi everybody! I see there are a couple of tick collectors out there. But before I try which one is ok, I don't see any of them telling how to playback the ticks in Tester, which is supposed to be the primary objective of collecting the ticks. Most collectors save ticks in csv file but Tester is...
i wrote this small EA to modify orders. everytime i launch it, the error "invalid ticket for ordermodify" pops up. can someone please guide me where am i going wrong. :( i am really not able to understand how to use the order select function. any insight would be helpful :) extern int PipSL...
How to visualize volatility? I have gotten information about volatility stop. But, Is there any way of getting volatility as a chart form?
When I'm on an H4 chart, how do I determine when the bar has closed on a D1 chart? Thanks in advance, E
Hi How do i get the OrderOpenprice (), when backtesting. I have tried with this double open = OrderOpenPrice(); And it gives me right price sometimes but not always?
I'm using scripts and also a template with several indicators in MT4. If i want to use them in MT5 do they have to be re-written in MQL5?
Hi, I used simple code to write the ticks to file and found that indicators wrote more ticks than the same code in an EA. I used two EURUSD M1 charts in the same instance of MT4. I swapped the charts and got the same results Here is the results from indicator next to EA: And here is an indicator...
Hi, how could it be, that Volume[0] returns the value 38 pips but the difference between High[0] and Low[0] ist 43 pips. How could this be?
  Order modify  (3)
if( dir == LONG ) {                  if ( OrderModify(ticket, 0, OrderOpenPrice()-sl, OrderOpenPrice()+tp, 0) ) {                      Print("OpenTrade: SL/TP are set...