MQL4 and MetaTrader 4 - page 625

To post a new topic, please log in or register
This is kind of a stupid question but I can't find the answer anywhere. I've noticed that on the trade tab in ther terminal the prices, stoplosses and take profits are sometimes highlighted with a green or red background. What does that mean?
Hello, in this ea the number of bars is always zero.how can it be? <SNIP>
Hello MQL4 coderz, One problem is troubling me very much, when I load standard Moving Average Indicator, It ask for "apply to" option, where we can select previous indicator data, But same I tried with my custom indicator, there was no such option, can any one suggest me how to achieve such...
  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...
APeng
Hi, the drawn object shall be visible in different timeframes. If it is drawn in a weekly timeframe it shall be visible in weekly and all smaller timeframes. If it is drawn in daily timeframe, it shall be visible in daily and all smaller timeframes and so on. I use: int visibility;ObjectSet("Weekly...
  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()...