MQL4 and MetaTrader 4 - page 373

I am not very familiar with coding I have a script to force open 2 position or make 2 pending order on certain price Problem 1 : I can't use that script on broker with suffix, eg : eurusdb. That script make looping, so my position become more than 2. but i can use on broker with symbol like, eg :...
I'm experiencing the problem of 'echo' when placing an order... I try to set one stop order but the EA always set a lot of orders... Very weird. I assume it will be the fact that the ticks come very quick after each other and there needs to be some kind of delay after placing the first order, but I...
I have developed this indicator which generates Arrow buffer... i want to check if last buffer call was before 5 candles ... see my attached screenshot... what i want is to check if previous generated buffer was > last 5 candles... how do i check that
Hi, I'd like to test an own expert advisor using several timeframes. Parameters would be: Shorter_Period = (ex.M15), Longer_Period = (ex.H4). So the strategy will run through all of the periods between. So then, we're going to consider this is for example applied to MACD indicator: double...
  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?
Hello, I'm hoping to find some help here. I've been researching and trying to figure out how to combine two indicators MACD and Stochastic Oscillator into one indicator but haven't had any luck. I'm not looking to overlay them on top of each other in the MT4 chart window but actually combine the...
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?...
Our System: Using: Mozilla Firefox Windows 7 OS MT4 " not" loaded in Program files (Not a UAC issue) Downloading: Email attachment with the .ex4 file,When I click on " Download ",Browse (Program to use to download the file), I use metaeditor.exe . Should I be using something different ? File Looks...
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...
Hi there... So, I developed a very good EA (IMHO), comprised of 5 algos, back tested it for 14 years (using tickstory, even though my algos are not day-trading), run it on a live account for the last year... I like the results. Anyway, I'm finding some investors and will need to open a joint account...
[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...