Download MetaTrader 5

MQL4 and MetaTrader 4 - page 98

To post a new topic, please log in or register
  code 100.0 pips (11   1 2)
Hello,   How can I get code for 100.0 pips?   Best, Max 
Hello,   MT4 does not working on Windows 10 build 9926. How can I fix it?   Best, Max 
New article Portfolio trading in MetaTrader 4 has been published: The article reveals the portfolio trading principles and their application to Forex market. A few simple mathematical portfolio arrangement models are considered. The article contains examples of practical implementation of the...
Hey Guys, I have currently two problems. 1. How can I display a name of a horizontal line on the chart? - I tried to create a label and set it with TimePrice to XY to the right position. But there is the problem that it will always be on the same XY... So if I press + or -, the label is somewhere.....
Hi all,    I am trying to find a command/or a systematic way to read into my code the exchange rate of the DEPOSIT CURRENCY to QUOTE CURRENCY (or QUOTE CURRENCY to DEPOSIT CURRENCY whichever is available). I can't find a build in command for this; the closest I could find is 'tick value'  via the...
Hello, I'm newbie, but I'm trying to develop an EA. I would like to open long or short positions on the basis of my signal at determinate price.  in particular: OrderSend with OP_BUY or OP_SELL at price of open current bar. OrderClose at price of close current bar. Thank's  a lot... 
Is there any function to show Positive & Negative Sign for numbers? For example if the result is 5.0 it should display the +5.0 and for negative number -5.0. I tried to use "+ sign" to concatenate but if I use #property strict it gives me warning: implicit conversion from 'number' to 'string'...
I want to make the buying process very easy for my customers. I want to make it after they pay they will download the EA instantly. After they download the EA they will need to enter a product key. Each product key will be allowed to be installed on x amount of platforms and can't be used by more...
The new version of MetaTrader 4 Android features a free built-in chat enabling traders to chat with other MQL5.community members. Specify the desired user's login in a message recipient's section to send a message directly to this user's mobile device. The built-in chat allows you...
I created my indicator then run it but how can I change the input setting? I use extern for MA_Method and Period. Where to find the setting for extern? I want to change it when my indicator is running. If I use the built-in indicator the input setting is easy to change: You have to click the...
Hi all! I was opening new charts and got to a point where it does not open a new chart. How do i increase this limit? thank you! I actually reached this limit because for every pair/instrument, i open 2 of the same chart as i want to have 20 & 50 MA and another with 20 & 50 EMA, instead of...
How do I call this indicator to return the color (red/green) of the volume of the current bar?
extern int MagicNumber=1111;extern double Lots =0.05;extern double StopLoss=100;extern double TakeProfit=100;extern int TrailingStop=0;extern int Slippage=3;//+------------------------------------------------------------------+//    expert start...
Hello there my EA seems to put double the trades when I put it on a DEMO account. (they are entry orders) Does anyone has an idea what could it be? Thank you Luis
Hello, I have a doubt about the back test. I am checking my indicator that points out the candles, making a back test would merely truthfully or I could find a chart with candles position that does not match up with reality? Another doubt, if you increase the speed of the back test execution,...
Hello, While I try to compile the mq4 file, I receive various errors. I attach the corresponding txt file 'research 5 - chart 2 red lines ETI.txt'. I looked up on compiling errors, but could not see an answer.  I have following errors and warnings: * 'ObjectCreate' - variable expected (11, 6)...
How to reset the default value of Global Variable Array inside the function? I use global array to used it in many function but I want to reset it first before using it because I used the global array in different function. bool x[] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL};void aaa(){    x[] =...
Can you please help with this. This indicator has no errors on metaeditor yet when I try adding it to metatrader it doesnt connect.//+------------------------------------------------------------------+//|                                                MA_In_Color.mq4...
Looking to see if theres a irc channel or any chat room for mql programming.
I'm trying to code an indicator that displays a histogram of each hour in the past based of a candlestick's high and close. For example it calculates whether each specific hour in the day has been bearish or bullish based of the past data. For example..   Each bar in the histogram represents each...
Hello I am trying to introduce a "circuit breaker" in my code to suspend EA operation if it detects unsual activity over a defined period of time, e.g. the "flash crash" of GBPUSD on Oct 6, 2016, and June 23 when the Cable fell off a cliff. Obviously with a major currency pair there will be times of...
If I have two points with two different times can I know the time difference in minutes?  
All,  I have write a EA for test, it imports some functions from another DLL, but I could not do the back test, it always said 'the DLL is not allowed', e.g. "2016.10.15 10:28:09.389 2016.09.01 00:00  Cannot call 'ConsoleApplication2.dll::InitPipe', DLL is not allowed.' But, how can I allow the DLL...
Where the best place to put the global variables? Inside init(){...} or outside the function?? My variables will used in many functions repeatedly.  I want to know the best way and efficiently to create indicator. 
I found BUG in Nested if - else if - else if - else. I can't declare same variable name in other blocks.  According to MQL4 documentation: A variable declared inside a block (part of code enclosed in curly brackets) belongs to the local scope. Such a variable is not visible (and therefore not...
void OnStart()  {   double Lots=((1860.03*1.0/100)/(114.542-114.511))/(0.87/0.001);   double NormLotsRound=MathRound(Lots/0.01)*0.01;   double NormLotsDouble=NormalizeDouble(Lots,2);   Print("Lots is, ",Lots);   Print("MathRound(Lots/0.01) is, ",MathRound(Lots/0.01));   Print("Lots with MathRound,...
Hello, I have an EA. I want to insert security code in it. I want to do that the EA works till specific dat and time. Forexample; I want that the EA works till Oct 15, 15:30 pm. Secondly, I want to hide my EA's code. Can you help me, please? Finally, I want tthat the EA works for specific parity....
Is it safe to buy EA from folks you do not really know ?   Can the EA that you buy from some one else online be used to hack into your PC ?   Regards 
The most interesting figures at the Strategy Tester Report are imho Total net result and Relative drawdown. Both figures will be greatly dependant on the choosen Order size. Another valid statement is that the rate between Order size and Account balance together with the Relative drawdown will...
How to remove/clear the candlesticks then put only the indicator in main window? I want to only see the indicator in main chart.