MQL4 and MetaTrader 4 - page 652

Hi, I just have got two different answers from two broker about partial order closing. One said it is not possible to close 70% of the lots at e.g. target and the residual 30% by a trailed stop,  the other one of course you can but we will close 100% and open a new order with 25% of the initial...
[Deleted]
Hi forum members I'm searching for a solution to replace the confusing MT4 chart price scale using rather big round numbers. However I couldn't find anything about this subject and I conclude this hasn't been required by other traders yet?   On this site I found ID "Chart scale" under  https://docs...
hello, am  new in mql4, and i have a question which is how to do a multiby close acording to orders magic numbers in mql4. Note: i can do it manually in meta trader but how can i do it using mql4 code
I have two versions of the same EA where the only difference is the indicator being called. EAs A and B were both working until I edited the indicator that B calls. Now B gives unmatched errors and doesn't trade but A still runs on the same time period and data. How can the problem be with the data...
Hello,   I am seeing nowadays that the forum has become much less convenient to use. I am referring, as the title says, to the front page , where the stickies, articles and that stuff, have grown up in immense numbers and at the same times new topics are a miniscule 10-15 entries at the very low of...
  OrderSelect behaviour  (15   1 2)
In the manual it is said that The OrderSelect() function copies order data into program environment and all further calls of OrderClosePrice(), OrderCloseTime(), OrderComment(), OrderCommission(), OrderExpiration(), OrderLots(), OrderMagicNumber(), OrderOpenPrice(), OrderOpenTime(), OrderPrint(),...
Hi.  I want to test my EA in offline mode, but having trouble getting the EA to calculate correct lot sizes when in offline mode as you know MarketInfo returns 0 values when in MT4 is in offline mode. There are other posts about this issue, but none of them seem to have a solution for this. One of...
Hey, Using MT4 build 610 from Alpari in offline mode with the /portable runtime switch, I've hit several cases where MarketInfo() don't return meaningful values. These few script lines shows what I get: double tick_value = MarketInfo(Symbol(), MODE_TICKVALUE);Print("Tick value : "...
Please tell me there is a faster method of changing profiles than, File; Profile; Find and select. Please oh please say there is. It would be great if the Currency pairs were easily changeable and the Profile remained the same. I don't know but any thing faster than this situation.
[Deleted]
  Indicator help  (1)
Hi, Is there any who can help on this indicator? Is it possible to have MA period that can be input manually? Many Thanks    
[Deleted]
Not sure where I can submit enhancement requests.. Ever since going to 5 Digits it has been become painful to read the charts... It would be nice to have an option to toggle the display to show only 4 digits (platform still uses 5 digits) on the right hand side of the chart OR emphasize the pips...
Hello, i have a ReadFile Function which does not work any more in the new build 600, can somebody help me or is there another new example for ReadFile function? Here is the Code from my Current Read File function: #property copyright   "MetaQuotes Software Corp."#property link        "https://www...
[Deleted]
Hi, my English not so good, so Sorry. I have written a class. class TEST{   private:            string T_TakeProfit;      ...      ...   public:      const string &GetT_TakeProfit()   {return T_TakeProfit;}      ... And then i  became an Error like " '&' reference cannot used". Can anyone tell me,...
[Deleted]
I was wondering if it's possible for an indicator to remove itself. Currently I use an indicator to create a label on the chart and update it every tick. But if you want to remove it, you have to first remove the indicator, and also remove the label. I know that in the deinit() function I can put...
Hi all, The following code allows me to download data from EURUSD, of timeframe M30, regardless of the timeframe in which it is attached. The data is exported in real time, ie, each new bar is exported at the time that appears in mt4. How I have to modify the code to add a second currency, eg
I am running this inside a for loop, Strangely enough, it keeps giving me "function not defined error." I have defined lookback as an array lookback[i,1]= iClose("USDCHF",PERIOD_M15,param-1-i);
[Deleted]
Hi guys, Is there any way to just keep the bands and remove or hide the 20 MA in MT4? Thanks
So I'm pretty simple. But I tried this and nothing. Just indicator buffer#1 detached???   //+------------------------------------------------------------------+//|                                           bobstrailing stops.mq4 |//|                         Copyright © 2015 Bob All rights reserved...
Good Afternoon at all. With the recent build 830 after that mt4 loses connection it is not able to connect again automatically. In order to reconnect I must close and open the platform manually. In this case I can't trade and most at all i can't use trailing stop. So I have the necessity to use the...
Why is it that within ObjectCreate() parameters when I set enumeration OBJ_TREND it understands anchor points okay and draws the line correctly like so void OnInit() {     // Finding 1st highest high on price (3 bars back)   int highest1 = iHighest(NULL,0,MODE_HIGH,2,0);     double highestHigh1 =...
???? Expert setting i disabled the option please solve my issue!
Hi, i have an EA which runs in 6 charts with different symbols. Sometimes (after Error 136 (Off quotes)) the EA stop working. This means, that the EA don't receive ticks. From there it is also ot possible to go to the EA settings window (click smily top right corner or hit F7). Any Idea? thanks in...
Hi guys, I am trying to get my EA to draw a rectangle a specific time. When it is that specific time, it draws it, but continuously draws it after. I get error code 4200. Any ideas to ensure it draws it once..?   if(DayOfWeek()==5 && Hour()==23 && Minute()==59 && Seconds()>=0)   {//---Drawing the W1...
[Deleted]
Is it possible to test multiple EA's on the strategy tester in a batch? I know that a single EA can be tested by varying its parameters using the optimization tool but i want to batch test lots of different EA's at once (on the order of 10-20,000). Something like the optimization tool would be...
Hi What im trying to do is get the ObjectCreate () function to draw a trendline between 2 highestHighs on the price chart and stochastic on the stochastic chart. Ive managed to code this so far but don't know why ObjectCreate() doesn't draw any object on the sub window specified? <CODE REMOVED>...
May be you can help me? I already (dtd 2015.05.03 14:06) told that: "Since your last update:I have NO options and tools to format text, source code and attaching files seems not to work as well!" (They closed it: Don't double post, but my other error was about two was to crash the terminal - but...
hi,,, how are you i found problem  with metatrader 4 Build 830 problem with tools (Linear Regression Channel) this tools can't ray !!! please fix this problem
Hi everyone, I'm using MT4 version 4.00 build 825. I can't load my template when i using strategy tester. But with version older it's work . Anyone has same problem? How can i use my template in backtest ? Please help me. Thanks .    
In the code below I'm trying to draw a simple object on a sub window : // Input variables input int KPeriod = 14;input int DPeriod = 3;input int Slowing = 3;input ENUM_MA_METHOD StochMethod = MODE_SMA;input ENUM_STO_PRICE StochPrice = STO_LOWHIGH;// OnTick() event handler                void...
Im trying to write a short code that finds the highest value of iStochastic from the last 3 bars using the ArrayMaximum () function.void OnInit() {     double s1 = iStochastic(_Symbol,_Period,KPeriod,DPeriod,Slowing,StochMethod,StochPrice,MODE_MAIN,0);   double s2 = iStochastic(_Symbol,_Period...