Download MetaTrader 5

MQL4 and MetaTrader 4 - page 126

To post a new topic, please log in or register
hey please guys any one can help me with my expert ..   i wanna make a buystop in the upper line of the ibands and a sellstop in the lower line of the ibands ..of the candle of 00:00  every day so i write it like that ..but it wouldnt work.. can u guys pliizz help me double BuyLevel1=iBands(NULL,0...
Hi, assuming that i'm viewing a one hour chart and i would like to know the current candle number from candle of four hours .( Is the current candle in one hour chart equal to (first candle , second candle , Third candle OR fourth candle)) I would like to show only the numbers as a comment....
i wang use an array[300] as indicator buffer and use setindicatorbuffer bind it ,is it allowed? should it use arraysetasseries fuction before use it ?  if  the array copy the data from an standard indicator buffer ,which will be more efficient through use a for loop and copybuffer/copyarray...
Hi i am trying to write a indicator  if previous 3 bars highest should be less than to its previous 3 bars highest. i mean if  previous 1,2,3 bars highest  should less than to previous 4,5,6 bars Highest.   but iam getting arrows for every bar! if( High[iHighest(NULL,0,MODE_HIGH,3,4)] >...
Hello everyone I am a newcomer to programming, I created a simple custom indicator (RSI) in a separate window, with arrows that appear in the graph window to signal me if RSI has crossed the level of overbought or oversold (the arrows have I created with the function ObjectCreate. My problem is that...
How to setup and run 2 correlated pairs  ?
//+------------------------------------------------------------------+//| Pips Indicator.mq4                                    |//| Chua Le                                                          |//| https://www.forex-tsd.com...
Hello guys, I need advice. I have never met with anything like this. I have EA, where in code I have this ( Im using high of previous day in my calculation) [source]  if(den==0) // for historical reason, all is same       {             y_high=iHigh(Symbol(),PERIOD_D1,1);//previous day...
Hi, I mide some change to this EA from  OP_BUY to OP_BUYLIMIT and it work fine expet (Stop loss and tak profit) it is not working? //+------------------------------------------------------------------+//|                                         My Moving Average EA.mq4...
I need help with a sound file problem. I have an indicator that uses the Playsound command to use alert2.wav. But when an alert is triggered it uses alert.wav instead and all other alerts use alert.wav also. If I untick Tools/Options/Events Enable then alert2.wav works but all other alerts do...
Mt4 tester string input field seems to be able to handle 511 characters and possibly more if you input the string into the EA properties window press ok (you'd have to do this each time you load a string. This is the only link I could find, but it is from 2007.  One of the posts say 255 character...
hi guys, got odd issue i hope if anyone can help   i wrote simple ea and noticed no matter what i wrote it endup call margin then i check  report with more detail and i noticed my code doesn't have flaw instead seems something buggy happens while running tester for exam this 23 2016.01.07 23...
This is true for both the tester and live EA properties dialog box.  You cannot adjust the width of the inputs.  Sometimes the input strings can be quite long and I wish to extend the width to better see it.  This would require that the window have horizontal scrolling and auto-arrange is disabled...
Hello, 0.7-0.5 does not equal 0.2. To test it you can use the following code: Print("Test 0.7-0.5==0.2 Result: ", (0.7 - 0.5) == 0.2);  which should print: Test 0.7-0.5==0.2 Result: false I am using: MT4 Version 4.00 Build 920 (26 Nov 2015) and 940 (03 Dec 2015) on Windows 7, 64bit. Installation...
I have 2 pending orders 1 BUY, 1 SELL. If 1 of these trades is triggered and hits its take profit, I want to cancel the other order. If it instead, hits its stop loss, I want to keep the other order. ////////////////////////////////////////////////////////////IT IS NOW after 0700GMT but before...
If myIndicator.mq4 includes: #include "commonInclude.mqh" #include "include1.mqh"  #include "include2.mqh"  and both include1.mqh and include2.mqh include: #include "commonInclude.mqh" // custom code how many times will commonInclude.mqh be included in the compiled version?
I've tried to use other codes and build my heiken ashi smoothed ea but with no success. I need an ea that will follow the heiken asi smoothed indicator, in the blue sign the ea will buy, and in the red sign it will close position. the number of different symbols or stocks I want is 10 that the ea...
Guys, Greetings.   Could anyone enlighten me on the 'Original name of Indicator' in Red circle as above. I received the indicator as 'PowerupR2.ex4' and 'am sure it is not the original name. The about tab displays 'Copyright 2009 <name in scrambled fonts>.   Many thanks in advance.   Cheers. Mutta 
Hi, After update terminal to build 950 (on windows 10) dll's calls from MT4 stops working for me. I got Cannot load some.dll [126] . I was with def file, stdcall, without stdcall etc. nothing want to work. Path to dlls folder i got from: Print( TerminalInfoString(TERMINAL_DATA_PATH) ); Any ideas ?
Hi I was build a Custom Indicator which set buy and sell arrows on the chart with alerts and it was works fine, but when I tried to upgrade the code to MQL4 new build stile with OnCalculate() function the indicator set the arrows to previous bars only in start but not for new bars after it works...
Hi, Is there any linear Regression forecast indicator available on MT4 platform. I tried using this,  ViniI_LRMA_color.mq4 But it didn't plot correct curving after 270 period of LR. I have two screen shot taken from LRF indicator & LRF indicator. Both are completely different after 270 periods, it...
Hi, I want to create an actual metatrader as portable version.  When I download the mt4 installer from metaquotes or fxcm and start it, than I can change the folder, where the mql4 folder is saved. But it isn't possible anymore to remove the check mark so that the metatrader doesn't start...
Hello. I use heikin ashi candles for trading. I just want to put heikin ashi candles on my mobile version of mt4. Can anybody help me out?
EDIT : Look at my most recent reply to this topic... I discovered that there are actually bars MISSING from 12:00 until 12:20!!! Today I open MT4 and I see this HUGE gap between 2 bars, which is almost 200 pts. in price!!! I compared this with another broker (also via MT4 platform), and it was...
how do i find out who is subscribed to my signal?
New article Graphical Interfaces I: Testing Library in Programs of Different Types and in the MetaTrader 4 Terminal (Chapter 5) has been published on mql5.com: This article is the continuation of the first part of the series about graphical interfaces. The first article Graphical Interfaces I:...
In  a bull market, if a pending order is placed with an OP_BUYLIMIT specified, the price is expected to retrace down to the fill level, then rise. Is the order filled if the price drops like a rock and goes past both the fill Price and past the stop loss? Does it also encounter a loss?
hi guys i'm working with the indi https://www.mql5.com/en/code/10351# and i now wonder about the details/behavior of iMAOnArray() and iRSIOnArray().i found some problems in the calculation of indicators that use xxxOnArray() :- i often see that indicator buffers for the calculation are used in this...
Hello everybody, I made this simple indicator couple of months before and it working fine from the very first time, until yesterday that i recompile it. For some reason the signal  array  seems that calculates only the first time and then keeps the same numbers for all others loops. Like the...
Hello forum, Is it possible at all to change the format of arrows (blue, red) and lines (dotted red) used for marking orders on the charts - same for stop-related markings and other objects drawn by default? I was wondering where/what folder/what file the script is and if it is accessible by users....
1...119120121122123124125126127128129130131132133...1245