MQL4 and MetaTrader 4 - page 956

Hi All Experts. I am .net developer looking to integrate MT4 Api(dll) in my application. can somebody provide me some link to begin coding with this. First i think, i will need the HostName & port number to make an object of MetaTraderApi.MetaTrader. Please here me where i can get HostName & port...
WTH, MetaEditor Compiler doesn't give an error or warning but in the experts tab it it says  invalid integer number as parameter 2 for iSeries function    and the Expert hasn't traded or even got a signal for Multi_MovingAverage. Also, there's no level price call for stochastic oscillator with...
Good afternoon all ......Recided to ask the experienced))) How much is a system that gives about 25% a month with a leverage of 1:100 ...... And if there are links to such systems where to buy or where to sell, I ask everyone who visits this thread to insert a link .... and you can do it in private
[Deleted]
  HA candles on MT4  (11   1 2)
Hi,  This is my first post, so sorry if I am asking something I shouldn't be or in the wrong place.. I have 0 programming knowledge but have found some one online that is helping me. I really do not trust programs (as one that knows nothing about programming should).   While trading off the advanced...
Dear all,   Here is my code:      double a[];    SetIndexBuffer(0,a);   SetIndexStyle(0,DRAW_HISTOGRAM);     int limit;   int counted_bars=IndicatorCounted();   if(counted_bars<0) return(-1);   if(counted_bars>0) counted_bars--;   limit=Bars-counted_bars;   for(int i=0; i<limit; i++)...
Greeting, Sometimes, I get a 'zero devide' error while running my EA. I've narrowed the possibility and found out that when I disable a routine called trend_watch( ), the 'zero devide' doesn't happen anymore. I looked into that routine thoroughly but couldn't see anything that might cause deviation...
Could anyone please explain the different between pairs that are followed by v? ie- GBP/JPY to GBP/JPYv? The explanation from my broker was not entirely clear! This was the response: "For those couples who have a name is a symbol "v" you can deals less than one minute. 00:01:28 Trading operations...
  Cycle Operator 'for' questions  (159   1 2 3 4 5 ... 15 16)
Hello MQL4 community, First reference: https://book.mql4.com/operators/for According to the first reference, a format example of the 'for' operator is written as such: for (Expression_1; Condition; Expression_2) // Cycle operator header One operator , cycle body //
[Deleted]
Hello, I'll try to code a breakout, what I call a breakout. If someone have already programmed this function and is willing to share it, he is  welcome. ^ ^  
Hi, does any body knows what is the error  code 4253 mean?
[Deleted]
I have finished writing part of my EA and about to do simulation trading with it.  Question is, how do I tell the MetaTrader which currency I'm applying my EA to? and what time frame am I applying my EA to? and, how do apply my EA to multiple currency?   Thanks    
[Deleted]
Hello, I wish to choose the color of a indicator in a EA. is it possible? How code it ? Thank you. //+------------------------------------------------------------------+//|                                                 CouleurIndic.mq4 |//|                        Copyright 2013, MetaQuotes...
for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()) { if(OrderType()==OP_BUY) // long position is opened { // should it be closed? if(isCrossed == 2) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); //...
[Deleted]
How can I alert the number of seconds that have passed since the EA was initialized?
Is there an easy way to recreate heiken ashi candles using moving averages? The code for heiken ashi candles themselves is a bit involved. As the calculation is basicly working out a moving average cross I wonder if anyone knows the best two ma's and settings to use? I have an alert dashboard...
Hi guys, The Open, Close arrays defined here: https://docs.mql4.com/predefined/variables/open Are they actual prices trades were completed at, or simply the best ask for that bar at open and close? Cheers, Paul.    
Can anyone help me in advising me how i can save the same chart, ie- EUR/JPY for example with 3 different chart set ups. I have to try explain this, i want to be able to access the same chart on 3 to 4 different timeframes, 1m, 1h, daily at the click of a button? I have tried saving a profile under...
I work with two brokers FXCM and Liteforex and noticed that 4 hours bars don't start at the same time. FXCM is UTC and Liteforex is UTC+3. How do I set the chats to UTC, so that the bars are same in both terminals. I need to do it because the indicators shows different results due to this time
Hi, I'm testing my EA on the strategy tester. If I place a sell order, and the current bar reverses immediately, then my stoploss is triggered on the next bar,even if my stoploss is 100000.  My code is : OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+stoploss*Point,Bid-TakeProfit*Point,"sample"...
[Deleted]
I came across this for the first time recently using the MT4 Strategy Tester USDJPY, 1M, no optimization, "Every Tick" model Here is the source data that I used to populate the History Centre open high low  close vol 04.04.2012 03:10:00.000 82.528 82.597 82.520 82.589 242.86...
what i get is 403 - запрещено. Доступ запрещен. Предоставленные учетные данные не дают права на просмотр этого каталога или страницы.
Hi everyone, I just want to insert my history statement into my website (include the graph) exactly as I can see it when I open the *.htm export file. I tried to copy all the source of .htm file and paste into my website but it showed up very ugly (no grey-fill line, no graph, out of border). I see
[Deleted]
int iHighest(   string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)Returns the shift of the maximum value over a specific number of periods depending on type.Parameters:symbol    -     Symbol the data of which should be used to calculate indicator. NULL means the current...
Hi there, Am a newbie in Forex programming,so I have some doubts in Forex programing.I am learning MQL4,MQL5,and Jforex at the same time.I've almost done with MQL4. Sine I've been using C#,JAVA,VB.net for a long time,I'd rather start with MQL5 and JForex as they are object oriented languages,but...
Hello, Is it possible to check if(Open[1]>Close[1]) on multiple pairs of EUR/USD, USD/JPY and GBP/USD, and if true, open a trade with GBP/JPY? could u help me with a link to figure out how to do it if its possible? Thanks
[Deleted]
Hello, a friend of mine wants to use automated scripts. As I have no idea about coding in MQL I would like to ask you if the following scenario is viable: Using Moving Average to combine for buy/sell several indicators like Support and Fibonacci zones. So in fact.. he wants the buy/sell to be done
[Deleted]
I use an indicator which shows a value as the object. The value is calculated on the closed prices for the appointed period as the parameter.  I added some code lines to make it time series chart as below. But it does not work well.  Actually it works only as it is. But does not when the period is...
Hello Forum Hope someone might assist me with the code below. I am tring to produce an indicator that draws the most recent high and low fractal levels as lines to the right of the most recent price bar or candle But I am unsure how to write lines 71 and 81 below, and I suspect the use of 'lookback"
I am a beginner with mql4.  I dabbled with mql4 a couple of months ago but stopped.  I am know back and I am trying to code an EA that uses the AuthorizedSSBODynamicBreakoutBoxFinalEdition indicator from over in ForexFactory.  It was pretty easy to get my ea to trade with the indicator, however,...
Hi, i have set up some demo accts with my broker, they are not updating in page. Acct manager at Avafx has agreed to re-activate the investor passwords, but their are some that are apparently running off the metaquotes servers. is there any way to re-activate those demo accts from the metaquotes...