MQL4 and MetaTrader 4 - page 720

To post a new topic, please log in or register
  zigzag question (23   1 2 3)
Hi all! I am trying to understand the parameters of the custom indicator ZigZag. I am not familiar with it and am currently studying the code to become familiar with it. If anyone has experience with custom indicators specifically ZigZag and has the time to share their knowledge of it please feel...
Hi, I want know how passing string array to DLL. string symm[3]={"R1","R2","R3"}; Mql section: # import name.dll string Paste(string &rr[]); Paste(symm); DLL section: MT4_EXPFUNC char* __stdcall Paste(char* sym){ } how I can read here? Anytime I tried it failed. but when pass only string it works...
In this code snippet, Instead of BuyLots*1, BuyLots*3,BuyLots*9, if i use digits like 0.1,0.3,0.9 respectively. The code works, if not the the below code does not work. can anyone point out what wrong i have done in this code??    extern double SellLots = 0.1;   extern double BuyLots = 0.1;...
Like, in a Moving Average, if the 2 lines cross, i try to take the time of their meet, and try to use in a condition. There is an option called iTime for that, but what about the date??...how can i take out the date too??
  Best EA (1)
Please tell me, which is the best EA, without loss. Thanks.
Default indicators have extra 'apply to' options, namely 'previous indicators data' and 'first indicators data' How do you add this ability to custom indicators such as below ? e.g. Donchian.mq4...
if  (     (c1>0 && c2>0 && c3>0 && (Close[i]>High[i+1])&& (iSAR(NULL,0,0.01,0.2,i)<Low[i])) &&                     ((c4>BB_min_Width && c5<c6 && c5>c7 && (Close[i]<c7)) &&                    (Close[i+1]<(iMA(Symbol(),0,20,0,MODE_SMA,PRICE_CLOSE,i+1)-2*iStdDev(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,i+1)))...
I am looking for EA which can read incoming mail. Thank you for your help, links....
  Debug for mq4 (3)
Good afternoon, I wanted to know if there is some software that can do debug to mq4 program. Thank you.
Hi all, I want to record time[0] and time[1] every tick on individual row of an array, i.e. on every new tick, a new row should be opened to record the figures. here are my code: datetime a[0,dm2,1];int dm2=0;start(){   a[0,dm2,0] = iTime(NULL,0,0);   a[0,dm2,1] = iTime(NULL,0,1);   dm2++;...
Dear all For instance, my EA opened an order of 1 lot and I would like to close 0.5 lot now. If totally 1 lot is closed at final, does it mean that broker does not allow partial close of an order? or I have to adjust any parameter in OrderClose function? Is there any function like IsDemo() which...
  testing EA (2)
It is actually about testing any set of trading parameters, not only for EAs. So, I have an EA and a set of settings for currencies of my choice. Now I checked it for robustness by changing all variables up and down. The results loosely remind the Bell curve. When I am changing variables +/- 5% I am...
Hi Programmers! I can read files on disk using this ReadFile() function: File Operations via WinAPI But, how can I read files from an Internet URL? Do you have any idea? Relative
Can I load any chart? How to? I only have the major charts in my "market watch" how, and if I can do this would I find out where?
I've been trying to have MACD and it's histogram in the same windwo to no availdoes anyone have any suggestion
crystal7
  Problem with iBarShift (22   1 2 3)
Hello, When i use the function iBarShift, if a bar is "plate", I mean there is no price movement, open, close, low, and hight are all the same, this bar is not counted. So the number of bar can be different, of what it is really. Do you know a solution to rule this problem? Thanks.
Hello My metatrader editor does not work. I have tried everything suggested. I can not compile files to get them into EX4 format. I am hoping someone would please do it for me and load the EX4 file up here so I can have access to it. I need the Market Profile for MetaTrader 4 and it can be found on...
Hello MQL Coderz, please help My idea is, I want to show current trades in real time to my webpage, But when I try to get trades details using detailed statement it takes time of 10 to 20 second to process, and it wont work for me. I there any way I can read trades when they are executed and show...
Why don’t we make a template for an EA with code forhandling 4/5 digits brokers and some code to handle the ECN/STP brokers issue, sonewbies like me and others can use that every time we want to create a new EA. Itwill save a lot time for everybody in here. RaptorUK,WHRoeder and other good people...
//------------------------------------------------------------------#property copyright "www.raptor__.cm"#property link      "www.raptor__.cm"//------------------------------------------------------------------#property indicator_separate_window#property indicator_buffers 1#property...
Hello, Can anyone explain to me if Ask = MarketInfo (Symbol(), MODE_ASK) And if OrderSend (..., Ask, ..., ....) = OrderSend (.., MarketInfo (Symbol(), MODE_ASK), ....) ? Thank you.
hi, the following is the code i am trying to use in my EA, i just wanna know how to select the intraday bars alone? High[iHighest(NULL,0,MODE_HIGH,20,4)] i mean, from 0 hour to current hour, i want to select the highest and lowest.
Good afternoon, I wanted to ask a question as I have a problem when making a OrderSend. Is it possible that the same Expert Advisor in MT4 platform from a broker to work properly and the same version but with another broker MT4 me of the error 130 to do OrderSend?
Hello MQL4 community, Four digit broker: "3" is equivalent to 3. Five digit broker: "30" is equivalent to 3. Please confirm that the above two statements are correct. Thank you.
  Pip tracker (8)
if (Bid == Level+5 > Point){   Alert(Symbol() + " is more than 5 points");} Can someone help me with this? By looking at it, I'm sure you get the gist on what I am trying to do. From a given price level, if the price moves 5 pips in my favor or against me, I want to be informed. I also want to be...
fftremblay
Hi, I need your help. How can i retrieve the new ticket number after a partial close within the same loop or do i need to make a new loop. Thanks for(cnt=OrdersTotal();cnt>=0;cnt--) { if (OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) { if(Bid >= TPBuy1 && OrderStopLoss() < OrderOpenPrice()...
I am passing in an array of data to a custom DLL function and modifying it before passing it back to MT4. The function is defined in my DLL as: MT4_EXPFUNC int __stdcall tmpMA(const RateInfo* rates, double* out, int period, int method, int applyTo, int length); And in my mqh file as follows: int...
Dear all If I have 90 variables in an array[3,10,3] (each variable has 6 digits) that I want EA to remember after I log off my computer, apart from adding globalvariable one by one, is there any other method that is more efficient to do it? Would anyone like to help? (I'm not asking for code, but...
Hi, I am trying to code my EA to check if my signal has already appeared in current trend so that I don't enter a trade if its not the first signal in the trend from a custom indicator ""BullPips_CCI"'". Any ideas how I could do this? Trade Entry Part of my Code: double BullPips1 = iCustom(NULL...
Developing a successful strategy is one of the most agonising tasks that a trader can undertake. TradersNow started its project years ago with a mathematically sophisticated algorithm to predict the markets. Yet, even with the advantage of a mathematics professor and a team of market professionals,...