MQL4 and MetaTrader 4 - page 34

To post a new topic, please log in or register
Does changing the values on MagicNumber and Identifier give you different results
I'm not getting enough data on my charts. I'm using Oanda as my broker symbol EURUSD-5. On Tool > Options, MAX BARS IN HISTORY is set to max and MAX BARS IN CHART is also set to max. Closed the application and relaunched it, nothing has changed the max historical data on the 4hr chart goes back to
Hello all. excuse me for my english. can anybody help me how to predict RSI level? actually i mean how to use RSI's formull in my code? for example: at EUR/USD chart i have this now: and RSI level with 8 period has 48.4325 value. i want to use RSI formull and see this: if in this candle price go up...
Hello All, I have copied a supposedly working template from MQL4 and studied the codes. First things off, the following have been checked and confirmed: - Autotrading is ON - Tried the template.ex4 on various brokers; gets same results. - Clean slate, no open orders - No server or terminal issues -
I'm sure this has been raised many times before, but I can't find a discussion of the topic. When you 'save' a Profile, I would expect it to be SAVED. However, when a different chart or template is selected, it overwrites the Profile you have just been viewing. When you go back and select that same...
Hello developers of MT5! I use the newest (actual) version of Windows 10, 64 bit. After installation with error, is no possible open MT4/MT5 (of course). I have installed more versions of C++ in PC. It is source of problems? Can you me please help? Can you repair errors in next resale please? (In...
Hi guys, I am (still) confused about the things in the headline. I made a little test indicator which plots a dot in the middle of a candle if the candle's size is larger than its ATR(100). Of course the indicator should only work if a new bar is printed and I still use this old IndicatorCounted()
Hello, I am trying to trap the left and right Square Brackets "[" "]" and the left and right Curly Braces "{" "}". On my keyboard, the curly braces are generated by the Shift+[ and Shift+]. So, two keys on the keyboard should provide the 4 values I need. When I press the keys in an editor, as you
Hi, I am new to forex. i have tried to open a new order on my MT4 desktop version and i noticed that the New Order button is not active. Also i couldnt locate other trading symbols like XAUUSD in the lost of symbols both in the desktop and android version. please i need assistance
HI, DEAR FRIENDS  i am starting here a project for which i require expert suggestions from brilliant minds on " Already available " Scanners for MT4 & we all can work together as a team and build a scanner which can scan all the stocks in your list & sort list the stock meeting your criteria so that...
Hi, please, help to understand this issue. Personally, I myself have not encountered such a situation yet, but it became interesting, because MQL4 seems to make it possible to determine what exactly means a stopout in money or in percent. With percentages, everything is clear and we need to follow
I want to add a for loop to check for consecutive up or down bars before entry. Please help. if(iOpen(Symbol(),timeframe1,4)<iClose(Symbol(),timeframe1,4) && iOpen(Symbol(),timeframe1,3)<iClose(Symbol(),timeframe1,3) && iOpen(Symbol(),timeframe1,2)<iClose(Symbol(),timeframe1,2) &&
New MetaTrader 4 Platform build 1210 The MetaTrader 4 platform update will be released on Friday, September 6, 2019. The new build features the following changes: Optimized "Market" and "Signals" section. In the new version, the product and signal showcases run faster and thus provide a better
Hi friends, I'm going to backtest my EA and converted one of my symbol's tickdata into .hst and .fxt and did a test to see how well it is working and I found out that my .hst and .fxt files are saved on the Data folder where is located in a different directory than the installation folder. I...
Hi, I will release one of my private EAs. It's called Alpha9, it was developed from scratch, this EA is a pure trend following system, with not martingale or any cost averaging scheme, I spend hundred, if not thousand of hours developing, testing and optimizing this system from many months ago It...
  If (2)
Hello. I will ask for help. What's wrong here? if (High[2]+0.0001==Low[1] && Close[2]+0.0001==Open[1]&&2*(Close[2]-Open[2])<Close[1]-Open[1]&& Close[1]-Open[1]>0.0025) This is the code for USDPLN. Why is it not working? Below is the whole code
Hello, I want to take the value of the current _Symbol and convert it to a numeric representation that can be stored as a double in a named global variable. So, a kind of 1-way encryption process that outputs as a double? Is there a way to do this in MQL4? Thanks
merger 2 indicator into 1 and send notification please help me test on nzdusd time H1 , candle red is succesfully
I'm going crazy, I think I checked all google results on how to avoid error 130 but still... hope somebody can point me in the right direction here's the function I use to send orders: -order without Stoploss (0 for longs, 99999 for shorts, actual stoploss to be added only after the order is
//+------------------------------------------------------------------+//|                                                        Ron Greene|//+------------------------------------------------------------------+////  Changed Thresh A to 10 on May 5// #include <stdlib.mqh>//---- input parametersextern...
1 I create a VC6.0 Win32 Dynamic-Link Library project, new one file, the code: #define MT4_EXPFUNC __declspec(dllexport)int a=0; extern "C" MT4_EXPFUNC int __stdcall GetValue() { return a++; } build one lib: DLIB.dll Copy DLIB.dll in the folder:MetaTrader 4\experts\libraries 2 mql code: #import...
  Orderclose not closing (13   1 2)
Is it possible please for someone to help me... I have tried many different ways to get this EA to close an order on the close of an hourly bar. eg : 1 open position..then when the hour bar closes, EA must close the open position no matter if in profit or loss. I have left some code in the ea that I...
Can someone help me to modify this indicator? I don't need text and number of each pivot line
Dear All, I just designed an EA MetaEditor. I am now testing the code, but it will not open any trades even though conditions are met. It makes a sound, meaning that it wants to open a trade, but then it doesn't. I suspect there is something wrong with the portion of the code where I want the EA to
How can I calculate the required margin? Required Margin = Trade Size / Leverage * account currency exchange rate (if different from the base currency of the pair traded) How to calculate 'margin' for a trade + margin for 45 pip SL? Before I open a trade, I think I need to collect this info: -...
Hi there, when I move a SL or TP manually, it takes less than a second until it´s confirmed and the SL or TP is at its new price. When I do the same by OrderModify(), it takes 5-10x more time. How can this be? In my log I can see, that the function is called only one time, not several times, so this...
Hello I have a pb that i can't solve : double ab =iMA("EURUSD",0,1,0,MODE_SMA,PRICE_CLOSE,pos);double bc =iMA("USDCHF",0,1,0,MODE_SMA,PRICE_CLOSE,pos); double ca = 1/(ab*bc); ab is correct (i can see it in a buffer), bc is correct too but 1/(ab*ac) return an error ! Can you explain me wghy
I'm trying to perform back testing with per-tick data in MT4. My MT4 is installed from CityIndex and I'm using the latest version of Tickstory. I'm following the instructions as outlined on this page and in this video. However, on Step 5 ( after I click the "Launch MT4..." button, though MT4 does
I have just discovered that MT4's strategy tester doesn't simulate the behaviour of a stop loss correctly if the price gaps past the sl price (i.e. if a new bar opens and gaps past the sl price). Instead of closing the order at or near the open price of the new bar (which is the correct behaviour)
I am looking for a template which can show entire chart background as a histogram of indicators like CCI, ADC or oscillators like RSI? Thank you