MQL4 and MetaTrader 4 - page 1035

-
Personally, I've been trading for a week and all profits! I wonder how long it will last? Are there any pitfalls?)
Does anyone know whether there is something similar to WindowTimeOnDropped() for indicators? (I know that WindowTimeOnDropped() is for scripts or experts only).I would like to use the info from the bar I dropped the indicator onto in the calculations done by the indicator. I would like to display...
Hello! Me Simon. I have CTRL-C -> CTRL-V coded EA. Then I have bit recoded it, since I have learned bit on the go. Had problem with 'lastIsBE' function. So recoded it again, especialy this mentioned function. But... still have same problem as before - although last open order is break even, EA says...
Hi experts. I am new with MT4 and am trying to pick it up with all the great resources freely available. I tried my hand at putting together a custom indicator but just didn't work. No errors upon attaching to chart but no signal was drawn. The effect I am trying to achieve is to multiply EMA(Vol)...
Hello, I am researching the best options to protect an EA. Any recommendations ? I do realise that 100% protection is impossible, but deterring the 90% is all I am interested in! So, thus far the options I am thinking are : 1/. dll+mql file, with real time license mql file 2/. mql file real time...
[Deleted]
for example when your buy order is in negative profit,send another buy order with increased lot size x2.
Greetings, I use three CCi's - Pink(9), Yellow(19), Green(50) I use the known formula - iCCI(Symbol(),PERIOD_M5,9,PRICE_CLOSE,0); (sorry, in this example it is M5 not M15 - but the difference shows in all periods) Oddly, when I calculate the relative condition between the three CCi(s), I get a...
[Deleted]
Hello, I new member and i learn MQL4 but i don't start where? I need a EA basic can you help me? Thanks for much
[Deleted]
  New Order  (1)
just dowloaded the platform met4 on a demo mode, while clicking the new order icon - the buy and sell icon respectively is not active, hope you can help me go around with this scenario. Thanks in advance :)
Below is the page of the discription of reversal fractal https://www.mql5.com/en/code/10686
Greetings.... In my trading strategy, i'm only allowing a max loss 0f 20% from initial deposit for a specific period, and upon reaching a profit level ..lets say 15%, the trade criteria will follow a new sets of lotsize and other set parameters specific to a higher band and no new trades shall be...
Hello, everybody, i am quite new to MQL4 programming, and i have a problem :)   if(OrdersTotal()==0)  {  double account_ballance=AccountBalance();  GlobalVariableSet("account ballance(start)", account_ballance);  } As a result to the coding above, i would like to have a global variable declared...
  Alert Timing  (2)
I want to be alerted when a variable is met in the LAST time frame. Right now I'm alerted at the end of EVERY time frame because this criteria was met sometime in the past intervals. Not sure how else to explain it. Here is the relevant code. if (bCountdown==13) ~~~Should something go here...
Hello all.. I new to this and learning to code... and it will be a long process with no prior back ground in coding.. However, I'm looking at building an e.a. that trades with the candle patterns: I like the Hammer pattern;Inverted Hammer; for example and of course staying with the trend... Anyone...
I noticed in ArrayResize() the formal parameters are defined as such: int ArrayResize(object &array[], int new_size) Is object&array[] a way to allow the passing an array of any type as a refered parameter and why cant I do that in my own functions ? (I tried and it seems mql4 wont recognise object)...
Hello all. I am bit unsure about the right procedure to retrieve data from an higher timeframe. I was trying to read the value of MACD from an higher timeframe, exactly the 4H chart looping through the data index on the 60 Minutes to show with two arrows where the signal started or not. I had a look...
Hi, I'm looking for a code or indicator provding news event capabilities. which support back tests. (Like the kangaroo EA ) thanks.
Does anyone know if there is a maximum number of bars beyond which the default MT4 ZigZag indicator will not re-paint? After spending a full day trying to understand the code for calculating ZigZag, and reading all the posts I can find, I think I am right in saying that the default MT4 indicator can...
[Deleted]
Decided to move the posts to a separate thread... 1. It all started when I was rereading Williams' book and decided to check the share of interior bars on the chart. Then I decided to compare the portion of interior and exterior bars and, as the result, I detected the following pattern: the portion
Hi all! Yesterday I tried to install MT4 on Windows 2000. But no matter how many times i doubledclicked the setup-file it never started. So i installed it on another computer with XP and copied it to Win2K. (no error here, the setup works fine). when launching the terminal on Win2K, it makes a flash...
[Deleted]
I have created an indicator that plots two trendlines; one from the highest point of last month to the highest point of last week and the other from the lowest point of last month to the lowest point of last week. When the lines are drawn, OBJPROP_PRICE1 & OBJPROP_PRICE2 in both instances appear to...
[Deleted]
Hello, Does anybody have an easy formula to calculate swaps? I'm trying to explain it to someone with no avail. Thanks
Is it true that T/P (and limit order) always executed rather than S/L (and stop order) while GAP happen? I experience the same issue, TP executed on requested price while there is no price available at time cause by GAP after the weekend opening, But on the other time my S/L was not executed on...
[Deleted]
I have been writing EA's for about a year in FXCM's strategy trader. I am new to Mql4. I am trying to duplicate a function I have in my Strategy trader EA, which is to specify a close order (fill or kill) in the total lot volume of open trades in the currency pair chart to which the EA is...
[Deleted]
I just started using this indicator and noticed USD/CAD does not have any data on the 30 minute and 1 hr. charts.All the other pairs work fine and the loonie also is OK in the other time frames. I was wondering if anybody else had a similar problem
Hi experts, I want to see high value and low value of current candle. I know MT4 already show Open, High, Low, Close value (OHLC) on the left corner but it's too small and is not customized. I would like to see the High value on the top right corner and low value in bottom right corner. I am an...
[Deleted]
I am testing my EA on OANDA MetaTrader Broker - Demo account. My ordersend for a buy signal is below. I do not have any problem with the signal execution. The only problem I have is the ordercomment(). As you could see my comment says "MY EA". However, when I print it I get a different comment : "...
New article Limitless Opportunities with MetaTrader 5 and MQL5 is published: In this article, I would like to give an example of what a trader's program can be like as well as what results can be achieved in 9 months, having started to learn MQL5 from scratch. This example will also show how...
hi can any one help me to how i m create a candelstick ea just simple candelstick no any indicator when fullbody candel that works i m attach a chart lets see and my english is too poor
Sorry it sounds so simple but I'd just like to see some sample code - then play around. (Any sample code for dealing with 'objects' would be great.) I just want to place a horizontal line as my own trailing stop. I guess I want to create an object then continually modify. [when I use the search...