MQL4 and MetaTrader 4 - page 375

  System Sync  (1)
This systemwill give you profitable signals on any markets. It works on alltimeframes. You will need the free MetraTrader 4 software and copyall the following indicators and templates into the software. Youwill also need the free QChartist software. We will buy dips onuptrends and sell peaks on...
I have been coding and realized that at some points the Highest High of the time periods fluctuate in interesting manners.  To make my question more understandable:  double d1highest = High[iHighest(_Symbol,PERIOD_D1,MODE_HIGH, PERIOD_D1, 0)],   //The Highest Point that the price has reached in the...
Hi everybody, Please , I need your help. How to read Atr value in Pips? For example on USD/JPY I see : Weekly ATR value = 1.3931 Daily ATR value = 0.7832 What is ATR value in pips in each case? Thank you in advance
I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible. When I run a backtest, change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the...
hi sorry i need a help regarding mq4 code, i have a problem with the arrow of an indicator, it always appears before the candle closed (i mean like appear and dissaper till the condition met). i have set to appear when the candle closed, but it's not work. all i want is only appear after the...
Thanks in advance, I have two questions about one-click-trading window: 1. Is it possible to open and close the one-click-trading window from an EA code? 2. Is it possible to modify the volume on the one-click-trading window from an EA code?
[Deleted]
Hi all, I came across a order entry management software called 4xspinner (Google as I don't know if links here are cool) and they require you to add your MT4 account number for licencing purposes. Given my live account number makes me think twice but they don't have my password so I think this is ok...
I have a 3rd party indicator which generates alerts. I don't have access to its code. How can I create an EA which trades from these alerts?
Hi friends. I hope you are enjoying a good day. I found an indicator from the developer Kaleem Haider from this link (https://www.mql5.com/en/code/15563). I find it helpful to my strategy. When I want to make an EA based on my strategy and this indicator, for Buffer Index number I have a problem....
Hi guys, A coding question. Is it possible to make an MTF indicator, for example the one attached, do the following (with only 1 attached indicator to the chart): on a M15 chart show only the H1 lines; on a H1 chart show only the H4 lines; on a H4 chart show only the D1 lines; on a D1 chart show...
Hey all, I'm trying to display EAs on my MT4 through my Oanda live account... All indicators (like moving average ) show up no problem, but no EA shows up (like the MACD sample). No samples, no downloads show up. in particular, what i'm trying to get working is this: I downloaded the order book EA
How could I place the smiley face and EA name to a different location, say the lower left corner, of the chart?
Hi All.  First time posting on this forum.  So I just set MT4 and for some reason my Candlesticks won't show up on my charts even though (1) I've clicked on the candlestick button above the chart and (2) I've clicked on candlesticks under the properties tab (or F8).   Any advice or suggestions?...
Hi All, Is there any efficient way to create a relationship between two (or more) Arrays that contain different data types? For example, I have an Array of data type string that contains several pairs (e.g. AUDUSD, EURUSD , EURGBP etc) and another array of data type int that contains the Magic
Forex Strategy Builder v2.2.1 http://www.forexstrategybuilder.com Using Forex Strategy Builder (FSB) you can quickly create and test a trading strategy for the internet FOREX market. You can also get better understanding of the technical indicators without writing scripts or using formulas. All...
bool Max_Loss_Daily (double PercentageLoss) {   //datetime startTime = TimeCurrent() - Hour()*3600 - Minute()*60;    double netProfit = 0;    int total = OrdersHistoryTotal();    for(int i=total-1;i>=0;i--)    {           if(!OrderSelect(i,SELECT_BY_POS...
[Deleted]
I have an EA trading up to 4 pairs at a time and would like to know the maximum draw down on the account. Is anyone able to advise if the Strategy Tester will provide this information. If so, how should it be set up? Thank you in anticipation of any assistance
Interactively indicator parameter values can be reset by opening the indicator properties window and pressing the "Standard" button. Especially for indicators in a subwindow, the minimum/maximum values a nullified. Is there an MQL4 function for this Reset?
Hi All, I am trying to change the properties of a Horizontal LIne I have created. I would like to change both color (To Green) and style (To DashDot) of the line and I am using the code below. However the line that appears is still red and the style is "solid", which appears to be MT4 default. Are...
Hi All, I am operating on several crosses and for each one I would need to apply the same EA but with different parameters e.g. for Cross EURUSD the variable leverage is 1, while for USDCAD is 2, for CHFJPY 3 etc I can certainly do it manually although this is quite repetitive and time consuming. Is...
Hi, In my code i have two lines EntryPriceLine and StopLossLine If i drag my EntryPriceLine i would like to have real time feedback of the StopLossLine. So the two lines should always be 12 pips apart. Even while dragging. I thought using a while loop and WindowRedraw() would fix this, but if i let...
I have two indicators like the photo. 1. RSI  2. HMA trend. ***I only have ex4 file, dont have mql4 of both. I need to help to combine two indicators in one as like requirements below: 1. HMA trend indicator has 2 lines, the first line is 12 the second is 80....
Hello, I am working on a polynomial regression indicator ( just did order 1 for the moment ). But I've  two problems I can't solve: 1. The indicator leave a trail after passing ( instead of erasing) 2. The parameters seems to not update correctly. ( When I reload the indicator everything is fine...
I need to check if MACD value is negative or positive... iMACD(NULL, PERIOD_CURRENT, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, i) how do i do that? what function available or what custom code do you suggest?
NewCandle = FALSE; datetime StartBar = iTime(" EURUSD ",PERIOD_M5,0); datetime NewBar = StartBar; while(! NewCandle) { NewBar = iTime("EURUSD",PERIOD_M5,0); if(NewBar != StartBar) { NewCandle = TRUE; StartBar = NewBar; }
Hi, can anyone help me add an alert if a VERIFIED ZONE has been created? Thanks in advance. <ex4 file deleted >
  Issue with StringToDouble()  (25   1 2 3)
Why does the function StringToDouble("1st Actual"); return the value 1.00000000, instead of 0.00000000? Moreover, why does the function StringToDouble("2nd Actual"); return 2.00000000, instead of 0.00000000 ? and so on...
Does anyone has an idea why  all arrow as well as the tick mark are not showing on the chart ?? I tried with many indicator and the outcome is always the same I get a square but not arrow , my windows is installed on ssd card as well as MT4 ,the laptop is working properly no other issue found so I...
Hello, Ive got an indicator that ive been using and like quite a bit. You simply just tell it what kinda MA and periods you want and its to alert you when it happens. Only problem is it does not send an email. It has the option but never does. I know my email is setup correctly b/c I get emails from...
I'm newbie. i have EA use TrappingPrice but in first time it correct but after then it have some problem, it not close pending order and run false