MQL4 and MetaTrader 4 - page 248

Hi guys, I am having a persistent problem, I am trying to select the previous order of the same symbol and type (buy/sell), check if the profit has gone up by certain value (pyramid) before opening a second order. The code below shows what I did, but its not working. UsePoint is either 0.01 or
Hi, I have managed to create a variable for Daily profit, Weekly profit and monthly profit, but can't find the PERIOD_?? for Yearly. I have searched everywhere, but can't find the code for PERIOD_YR double GetBalanceMonthly() // Monthly Start Balance { double _resD=AccountBalance(); datetime
  Can someone help  (1)
Hi Coders, I need your help to finalise the modification of this dashboard originaly developped to display the distance in pips to the MA, I want to modify it to display the RSI value is above/below the BBbands Like in the TDI indicator. My issue is that I can get the RSI value, but when I calculate
Does someone know why all the ex4 indicators are into the editor, and where ex4 should be
Hi all.. I hoping someone can help me.. I am trying to generate a report out of MT4 to which shows me: 1. Max holding time 2. Avg holding time. I can see this (Avg holding time) on the reports for advertised signals.. but I would like this information for my own EA's using MT4. Any suggestions? Greg
Hi, I would like some help to create an indicator which can show monthly/weekly profit. I've got only basics on programming and found some similar topics but none of them really helped me. I found out that the best way to do it is to use iTime() which i struggle to get my head around. Can anyone
I recently created the code for a strategy I have using EMA, RSI, and Bollinger Bands. What I'm having trouble with is getting the correct Bollinger Band entry. What I want to happen is with the EMA and RSI requirements being true I want the Bollinger bands to close outside of the Bollinger Band on
Hi all, Because  i use a lot of small lotsizes 0.01 (martingale) i need a indicator that show my open positions in lotsize. Can somebody help me with that? I already found this code below: //+------------------------------------------------------------------+...
Hi, Bought the <Deleted> indicator, and cannot install... Didn't buy on the terminal but on the website, pressed on install on terminal few times nothing happens... if I go into the toolbox on the terminal and look at purchased, its not there need guidance Please help! Desperate.... Greg
I'm trying to code my strategy on MQL4. A problem I'm running into is how I can set my Take Profit and Stop Loss based on the previous support and resistance. Or setting a take profit based on Fib retracements. Below I attached a picture of how the support and resistance work
Hello everyone, I'm trying to add a simple account licensing restriction for my EA. After searching around the forum for a fix I couldn't seem to find what I'm missing here.... Error warning is marked on the last curly bracket saying: '}'-not all control paths return a value Any help is greatly
[Deleted]
GOOD DAY TRADERS After two months of struggling trying to make expert advisor I was able to achieve it a little finally i have abnormal expert advisor, actually the EA works good but it do place about 20 or more trade but my main idea was, the EA TO PLACE ONE ORDER PER SIGNAL EVEN IF THERE IS
Please can anyone modify this EA so that it will activate trailing stop only when open position is in profit. The EA start trailing immediately the order is trigger but what i want is to trail after the profit of the number of trailing stop given
Last weekend, I saw that my market purchased EA didn't work no more on my VPS. I installed it again and I saw that I already used 2 of 10 activations Bur I installed it on the same VPS I didn't know why my EA didn't work no more on my VPS Could you explain it ? Thanks for your answer Denis
Hi,   is there someone who has experience with mt4 manager and its API somehow please? Would be great it you can contact me.. Thank you very much in advance! 
[Deleted]
  check account type  (17   1 2)
Hi I have a question, how to check account type(standard, mini, micro)
Hello Members, I am new to the Panel. I tried the documentation but failed to find reference to make it work. Here I am trying to add an icon to the caption area before Dialogue box name with bitmap image control . But failed to move it above the clientback area. How to get access to that area
Hi guys I've installed on a single mt4 platform more than 20 accounts. I've checked how to set a proxy to use its ip to connect to the brokers..its easy. What i've not understood if i can set a different proxy for every broker linked to this mt4 istance.... My intention is: When i log on broker 1 =
HI, How can I fix this erroe message on MT4 ? ERROR - TOO SMALL HISTORY, RETURN NOW! Thank you
So, I want to loop through candlesticks and see if they meet my conditions and if they do then I want to draw a line but my problem is with the looping. For example, int counter = 10 ; for ( int i = 0 ; i<counter; i++){ // some other condiitons for example if (High[ 0 ] > High[i] ) { //draw line }
Guys, I am trying to write a simple EA to create an alert based on Heiken Ashi candles and MAs. If Last 3 candles were red (Open > Close) Current candle (candle [0] ) is green Current candle has no lower wick (Low [0] = Open [0]) Current candle has to be above EMA50 and EMA200 I found a function on
It's time to appeal to smarter programmers than myself. I have been working on this ADR (Average Daily Range) indicator, which draws lines at the upper and lower levels of the daily range. I've been running it on 5-minute charts and although it paints the lines just fine when first dropped on the
Hello I first downloaded the data I wanted from the Tickstory software. Then I imported the same data in MetaTrader 4 from icm broker and Alpari broker. Then I started taking back tests (timeframe 5 minutes) from both MetaTrader 4. But I got different results from each, while all the settings and
Hello all, I have tried searching for this answer, but could not find the answer I am looking for. I would like my OBJ_HLINE to update every tick to be at the current bid price. To test if OnTick or OnTimer were working I used these: void OnTick () { Print ( "onTickworking" ); } void OnTimer () {
Hello all, i have found a rather interesting config for a EA but before i whack it on i was wondering if any one knows if the tester takes into account the commissions and swaps etc on the results tab when it shows profit and losses in term currency
Hi! Id like to set up the FTP functionality in MT4, but all I get from the test funtion is "FTP: PORT command failed" and " Publisher: failed ". The address and login works fine in a browser or FileZilla, so it seems to be something in MT4. Anyone have a solution for this (the FTP server is on MS
I would like to obtain a unique ID in indicator code, to ensure that indicators on a chart do not interfere with each other. Originally, I used the MathRand() function , which unfortunately does not return unique numbers as I expected. Probably the random generator runs in every indicator
Hi I have o problem with my EA. It doesn't open BUYSTOP orders. I copied the code to SELLSTOP which works perfectly. Can someone check what's wrong? #property copyright "xxx" #property link "https://www.mql5.com" #property version "1.00" #property strict double OpenPrice; double
Hello, I Have a high-low dashboard indicator that skews to the side and cuts off some of the information from the dashboard. There appear to be no settings to be able to edit this in the dashboard setting. Could someone please help me in fixing this? Have added a screenshot Thanks
Hi everyone, I've been developing an EA that makes use of manually created trendlines and it seemed to work perfectly on my vps since its completion, even though I have like 40 charts opened at the same time with that same EA attached. However, it didn't have any OrderSend() functions in it until