MQL4 and MetaTrader 4 - page 282

To post a new topic, please log in or register
Hi, how can I open an indicator out of my indicator? I see the following functions: ChartIndicatorDelete(), ChartIndicatorsTotal() but no function to open a indicator out of my indicator.
So I've written my first EA, which is designed to alert me whenever a Hanging Man candlestick appears. What I am now struggling to understand is, how to apply it to multiple charts. Do I manually have to drag it onto every chart (currency pair AND time frame) individually, or can I make it apply...
Can anyone help me with this code as the warning is coming up as "Returned value of 'OrderSend' should be checked, //+------------------------------------------------------------------+//|                                                           MA.mq4...
Hi, I have installed on my PC WINDOWS 10 and METATRADER 4 works well. I just had to login again on all my metatrader accounts because all passwords are deleted. Unfortunately, every week there is a new released, and every released i lost all passwords of my accounts! Does anyone know the cause?...
Hello, I have a number of variables like: int v1=1; int v2=0;   ... int v40=65; I want to find the 1st, and 2nd minimum value of these variables. The ArrayMinimum[40]={v1...v40} return error of "constant expression required"   Can you help me to solve this problem? Thank you, SCFX 
Hi there, I have this indicator:   The red line, and the other lines, as you can see stops 2 bars away from where the new line starts. I want the line to go in to the bar that breaks above it.  I've played around to try and get the line to go in to the bar that breaks above it, before the new line...
Im logging trade times using OrderOpenTime() and OrderCloseTime(), which helps me keep track of my trades. However, at times, I need to manually close a trade that has been opened by my EA. But whenever I close a trade manually, the EA does not record the OrderCloseTime().  How can i get my EA to...
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...
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...