Expert Advisors and Automated Trading - page 452

Hello, How do I remove a static array to free the memory space? FreeArray only works on dynamic array's not on static and arr = NULL gives an illigal array excess exception tcheers Andre
I have an EA trading on the Daily time frame, however, somedays - like today - it doesn't trade and I don't know why. I tried to solve it by taking out the following part of the code: --------- //--- go trading only for first tiks of new bar if(Volume[0]>1) return; -------------- But it...
  Learning and writing together in MQL5  (453   1 2 3 4 5 ... 45 46)
I suggest that those who would like to try and learn FIVE together. Unfortunately, in the main branch, where beta testing is going on, there is little help in learning a new language. There is really testing for bugs and the branch is intended for PROFISERS. For the other 90% of programmers I
Hello community, I need to catch the event in the "OnTradeTransaction", that the whole postion is going to close (request). I tried to vary with the Trade Operation Types and the Trade Transaction Types, but I cannot manage to create this "event" -> Position Close. I´m sure it is pretty simple,...
I made new ea. it work in my local pc but when I try to install it in vps it is not compiled and not showing ea on expert profile.please any one can help me
Hi, I found that with mt4 if you have a bot and its attached say to AUDUSD on M15 is there any way in code to see if the same bot/version is attached on the same pair but different period? For example: If I have 5 open charts m5, m15, m30, m60, m240, I can run my bot over all of them but because...
  DEAL_ENTRY_STATE  (5)
Hi everyone, can someone explain me the purpose of this DEAL_ENTRY property: DEAL_ENTRY_STATE? The documentation gives no information about it, only the fact, that it exists. What situations will involve using this? Thanks, Benji
Hello community, it consumed some time to get this: Do I understand something wrong, or is this a bug? Kindly, Olle Onkel
Hi, I began buying and selling by The Signal yesterday. I set up yesterday and there was not a action in half day. However, after rebooting MT4, many orders have been carried out suddenly. I was surprised. I confirmed a position holding the signal in www.mql5.com just to make sure. Then an...
When I use a several pairs and run it in strategy tester, the two window will be created, EURUSD D1 and USDJPY D1: MqlRates d1[]; ArraySetAsSeries(d1, true); CopyRates("EURUSD", PERIOD_D1, 0, count_bars+1 ,d1); MqlRates d2[]; ArraySetAsSeries(d2, true); CopyRates("USDJPY", PERIOD_D1, 0,...
Hello, many posts here are about this problem. However, it seems this is not solved and the desk did not answer for this so far or in russian language. The Problem: i do a trade , entry at price p1 and exit at price p2. MetaTrader shows the profit for this trade. I like to calculate this profit...
Hi! I need a simple RSI alert ea in MT5: if the RSI is higher than 70 or lower than 30 then it makes an alert! I've tried to make it, but it's not working properly: input int RSI_Upper_Level = 70;input int RSI_Lower_Level =...
Running MT4 on wine through a mac and getting this message when running any of the experts in metatrader They used to work and now dont but i reinstalled mt4 - can anyone help?
  error  (2)
Hi. I wrote a expert but my custom indicator(ftlm-stlm) is repeated in chart when i want to test it. how can i solve it ?! thanks! #include <Trade\Trade.mqh>// exported variables// local variablesdouble PipValue=1; // this variable is here to support 5-digit brokersbool Terminated =...
http://gifmaker.me/PlayFrameAnimation.php?folder=20140803173NE4ZBodV7NHtAUIIdUoVA In the link posted I created a gif image of 3d optimization graphs. This is an EA trading EURUSD. there are 25 optimization passes/ settings combinations. Starting from january 2012 for every month each graph frame...
I have been thinking what to do in this site to make some money. I am posting currently. What more can i do?
I'm kind of new at this. I was wondering, is it possible to have one single EA trading several currency pairs at the same time in an account? Basically to have the EA scan several predetermined pairs and trade anytime any of them gives the signal. Thanks in advance for any information.
I subribed to a MT 4 signal, but the trade was not executed on my account. In the tutorial I heart that 'your terminal should be up and running' in order to receive the signal. Does it mean that your PC should be switched on and connected to the internet, if you want to follow and copy trades from a
By clicking the right mouse button on the window Metatester, choose the option to start but the agent still "detained". Does anyone know why?
Hi I have free EA and I want to add Trailing stop,Break even ,And max spread in to it. Please anyone help me? #define MAGICMA 20110131#include <stdlib.mqh>extern double Lots = 0.1;extern int Distance = 200;extern int StopLoss = 500;extern int TakeProfit =...
Hi Guys I have a problem, in Metatrader 4 i would like to place an order such that i can place the SL to Entry point (Break Even- BE) when a trade hits the first TP (TP1) and At TP1 close 60% of lot, at TP2 close another 20% and at final TP close remaining 20%. I would also like the order to be...
hello i need to add an rsi filter to ea but i don't know how to add it can any one help me buy above 50 sell blow 50 and rsi 14 apply to median price
I am all new to this page here. I use MetaTrader4 to follow the curves and I use brokers like 24Option and Banc de Binary for my deals. So my MetaTrader is just a demo account from Admiral Markets and not connected to a 'real' account. I usually bet on binary options with EUR/USD and also USD/JPY....
In my MT4 terminal, I can see many signals having a large "Ping" value in the thousands. The values range from 1,000 to 150,000. Overall, the value is about 7,000. Assuming 1 Ping is 1 millisecond, then 1,000 would be 1 second. A 5,000 Ping value would be 5 seconds, which make copy trading useless....
hello. In past I trade at MT4, now I have new ideas on trade strategies and need only a good EA with buying at new bar is created(not tick),on side buy and sell... and only if my SL or PT not hit, close position on my parametres of closing. If you know about this simply EA there or some good
There a lot of changes of constants etc. It breaks a lot of code. Is there a converter? Why doesnt the api deprecates changes instead of completely removing it
I have this weird problem and I can't figure out what I'm doing wrong. I created my own EA and ran a test on it. I have an initial deposit of 100000 (1:100) running over the past month with the optimization disbaled. When the test finished, the Results tab is mostly empty, including the initial...
I have used 'How To Write An Expert Adviser' to create my own Expert Adviser. A recent MT5 update has caused some warnings because I believe I have OrderSend() without OrderCheck(). Does anyone know how to code the OrderCheck() function? The documentation provided is not sufficiently clear to work...
I have a logic that I consider infallible but I cannot achieve it without an ea. Kindly let me know your charge and contact detail
When i do a copy rates with start index=0, count=2, then rates[1] seems to be the latest bar as i tested by a small script. void test2(void){...