MQL4 and MetaTrader 4 - page 278

Hello, I have the following code: if (upper_cond && bands.bbl_0 == bands.bbl_1 && (bands.bbl_0 == upper || bands.bbl_0 == lower)) { break ; } Where upper_cond = bool, bands.bbl_0 & bands.bbl_1 are double struct members, and upper & lower are doubles
I have tried re downloading history. serveral times. Can anyone help? I do not want to reinstall mt4
MetaTrader 4 Client Terminal build 604 Terminal: improved routing of trade requests when several of them are sent simultaneously from different MQL4 applications.MQL4: fixed operation of ArrayBsearch binary search function for signed integer arrays.MQL4: improved managing Expert Advisor...
I'm trying to show the moving average in 2 colors. Blue if the MA is trending up and red if trend is down. The problem occurs when the trend is changing from up to down or vice versa. When the trend changes, there is a gap in the MA line. In other words the MA line is not continuous. I need some
Hello, The CMF indicators I can download at the moment for MT4 differ from what is currently on Trading View so this obviously makes actual trading a little different in MT4 so does any one have the MT4 indicator that does the same as Trading Views version? Thank You
Having problems downloading demos for MT4, help please
Hi Forum, since last week (2020/10/05) my MetaTrader 4 is not able to connect to any broker server or datacenter anymore. After I start the MetaTrader 4, the login into the MetaQuotes Account works fine, so the internet connection at all is possible, but the login to the broker server is not able
Hi, I'm trying to use EA on H8 but it seem not working in H8 offline chart. So, my idea is to use EA on H1 and get value of H8, just no idea how to check that H8 already closed or not. Thanks in advance :)
Hello, Would anyone tell me why I get zero returns? Here is the code: double highBollingerArray[ 10 ]; double lowBollingerArray[ 10 ]; ArraySetAsSeries (highBollingerArray, true ); ArraySetAsSeries (lowBollingerArray, true ); double highestWaveBollinger = iBandsOnArray(highBollingerArray
Hi, When I try to create an Array Buffer of type 'int' I get the compilation error "'SetIndexBuffer' - no one of the overloads can be applied to the function call": #property version "1.00" #property strict #property indicator_separate_window #property indicator_buffers 1 int BufferIndex[];
I am a US trader, so fifo applies. Using MT4 with IG Broker (us). Goal: Take multiple long positions on EUR/USD Different lot sizes each trade (to get around fifo) Different stop loss and take profit for each trade Issue: New trades update previous trade SL & TP to the current trade Previous trades
Dear all, I hve made my own EA. My idea is to check last 9 bars abd if their bodies is above EMA than it should open order when highest high of those 9 bars +3 pips is reached. When i do a test of strategy (for 3 year period) the result is that there is one pending order sent and it isn't executed
Hallo MQL Team, it is possible to create a yearly Chart botton for this beautyfull platform metatrader 4 ? Kind Regards balduin
Hi i am new to mql4 and EA building and came to know about this Stratergy and build it but there is a bug. Bug is ,it works fine for some day but after the day or two it starts to act strange i build it to take order on open trades SL so it takes lots of it like a lot. so Hoping anyone can fix it or
Hi all. I was wondering if any of you could explain as to why, as seen in the attached gif, in my indicator that as I approach anywhere near the chart shift arrow/triangle pointer thing (i.e. that grey triangle that shows if you have chart shift enabled) - some sort of incorrect, but temporary
hi guys i try to read a memory mapped file with Dll https://www.mql5.com/en/code/download/816/memmap32.zip but i have some problem i try to load with this scriptin mql4 //+------------------------------------------------------------------+ //| Standard
[Deleted]
I’m having issues with my EA that I’ve spent coding over the past few weeks. Simply put, when I run a backtest it works perfectly, but doesn’t open trades when I tried to put it on my live account. My broker is XM (pretty sure it’s STP) I have autotrading enable etc, just wondering if it’s something
Attached MFI-EA. How can I get an existing trade to close when a reverse signal is received? This feature should be optional. I'm waiting for help
ive setup my bot on mt4 and loaded my presets but it keeps reverting back to the original input data. how can i fix this
Hello i got a question about indicators and shift. Using a chart with a 15 min timeframe, i would like to retrieve, - the last rsi value - the 4 last TICK value for the rsi 15 min chart For now i'm using that for ( int i = 0 ; i < IND_RSI_MEM ; i++ ){   drsi[i] = iRSI(Symbol() , 0 , 14 , PRICE_CLOSE...
Does anyone know what the problem is? No arrows appear. #property strict #property indicator_chart_window #property indicator_buffers 2 double UpArrow[]; double DownArrow[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function
[Deleted]
I have following code to get a list of values (double's type) in array. extern double Input_Double = 30.0 ; extern double Max_Tolerable = 2.0 ; extern int Input_Multiplier = 10 ; double iArray, iWaktu, iIndex; double ArrayAspect[][ 2 ]; int start() { int counted_bars=IndicatorCounted();
[Deleted]
Essentially what I'm struggling with is creating a boolean to find when my custom indicator isn't returning a value. To provide context, I'm using a Hull EMA indicator that has 2 modes (Up and Down). when the line is up, there is a HMA up value, and the HMA down is blank, and vice versa. (image
[Deleted]
I am trying to create an EA, and encounter a problem where all if conditions are not satisfied and it still process the code to open the order. //for Buy if (emaT_Slowl > emaT_Slowestl) { if ((Close[ 2 ] > bb_MainLower2) && (Close[ 1 ] < bb_MainLower1)) if (get_VolumeIndicator > 0 )
Hello, Does the slippage parameter in the OrderSend() affect the Stoploss or is it just used in the entry price? (I'm concerned that if the slippage parameter is also used by the StopLoss and the price jumps beyond my (stoploss price + Slippage) the StopLoss order will not be activated) If the
The attached function library and include are used to create a MessageConsole directly on the chart, and the messages scroll upward from the bottom left corner of the chart. The messages can be color coded per user specifications, and the user can specify the type and size of the font, and how many...
#property copyright "Copyright ฉ 2016 Tor" #property link "http://einvestor.ru/" #property version "1.0" #property description "This Expert Advisor loads the News from the site Investing.com without using .dll" #property strict input int AfterNewsStop= 5 ; // Indent after News, minuts
  Range bar chart  (2)
hello, Do you know for reliable indicator/way to use Range Bar Chart type on MT4
How to increase the free space between the MT4 candles? As shown in the chart below (this is not MT4). Could it be possible to create a script for this
Is there any way to code the Bid price that was like 3, 5 , 10 , 20 seconds ago ? ( I mean in less than a minute ). Honestly, I found something similar, but coded in the old mq4 language, here: https://www.mql5.com/en/forum/121764 But what I've found doesn't work in nowadays mq4 language. Can you