MQL4 and MetaTrader 4 - page 1000

Hi guys, I'm trying to plot arrows where the TDI crosses the RSI line but I get extra arrows, anyone got any ideas - it's been driving me crazy. It plots OK if I compile when MT4 is running, but changing time frames or restarting messes things up. Cheers. int start(){if(Bars <= 10)...
I am extracting all trades from account history as well from trades and storing in a MySQL database I would like to get the funding info too like deposits and withdrawals. Is it possible? Did not find any information in the MQL4 documentation.
[Deleted]
Hello i just create a custom indicator and it works well.. i decide to add some function using windows dll.. i use all different variable's name, so i'm 100% sure that no overlapped variable name. But its strange that after i add the function, the procedure affect the indicator calculation... so...
Trying to figure out how to suppress the Trades (TESTDETAILS) in both the Strategy Tester and Optimization reports. The htm files in the Templates folder provides the format for these report, but it is not what generates them. So far I have been unable to find & figure out what is generating them...
Hi, I made one dll that try call some function from metatrader platform.: Collapse | Copy Code  #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers#include <windows.h>#include <stdlib.h>#include <stdio.h>#include <string>#include <vector>#include <iostream>#include...
I have a custom indicator with only one buffer inside it, I want to run another indicator on the first indicator data set ... is any one help me out??
Hello, Does anyone can explain to me what is the problem with the following function ? It says to me : end_of_program : unbalanced left parenthesis. void fStopLimitMin(double iStop, double iLimite) { if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL) iStop = MarketInfo(Symbol(),...
The terminal reports "No Connection" and can't connect to any of my accounts, tried scanning for the company server(s) but still report: "No Connection".. wanted to use the mql platform as against the two from my brokers (ie. have both accounts on the same platform), just turned out that this...
  Undock Charts!  (7)
Hi, Can we undock charts as at times it would be preferable to see multiple charts at the same time on different screens. Thanks.
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
[Deleted]
  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)))...
[Deleted]
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...
[Deleted]
  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
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?
[Deleted]
I've been trying to have MACD and it's histogram in the same windwo to no avail does anyone have any suggestion
[Deleted]
  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...